MSSQL Problem [database]

Results 1 to 3 of 3
  1. #1
    Account Upgraded | Title Enabled! BGRick is offline
    MemberRank
    Oct 2010 Join Date
    The NetherlandsLocation
    437Posts

    MSSQL Problem [database]

    Hey,

    I just got my VPS and installed MSSQL correctly.
    But then I make a database called GunzDB and want to execute a sql file in it, it gives errors...

    This is what I did:
    1. Databases > Create Database > GunzDB > OK
    2. File > Open > File > Database_GunzDB.SQL
    3. Then I click GunzDB and EXECUTE

    Then this error appears:
    Msg 1801, Level 16, State 3, Line 2
    Database 'GunzDB' already exists. Choose a different database name.
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    And I run this SQL:
    USE [GunzDB]
    GO
    /****** Object: Database [GunzDB] Script Date: 12/23/2010 18:05:06 ******/
    CREATE DATABASE [GunzDB] ON PRIMARY
    ( NAME = N'GunzDB', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\GunzDB.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
    LOG ON
    ( NAME = N'GunzDB_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\GunzDB_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
    GO
    EXEC dbo.sp_dbcmptlevel @dbname=N'GunzDB', @new_cmptlevel=90
    GO
    IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
    begin
    EXEC [GunzDB].[dbo].[sp_fulltext_database] @action = 'enable'
    end
    GO
    ALTER DATABASE [GunzDB] SET ANSI_NULL_DEFAULT OFF
    GO
    ALTER DATABASE [GunzDB] SET ANSI_NULLS OFF
    GO
    ALTER DATABASE [GunzDB] SET ANSI_PADDING OFF
    GO
    ALTER DATABASE [GunzDB] SET ANSI_WARNINGS OFF
    GO
    ALTER DATABASE [GunzDB] SET ARITHABORT OFF
    GO
    ALTER DATABASE [GunzDB] SET AUTO_CLOSE OFF
    GO
    ALTER DATABASE [GunzDB] SET AUTO_CREATE_STATISTICS ON
    GO
    ALTER DATABASE [GunzDB] SET AUTO_SHRINK OFF
    GO
    ALTER DATABASE [GunzDB] SET AUTO_UPDATE_STATISTICS ON
    GO
    ALTER DATABASE [GunzDB] SET CURSOR_CLOSE_ON_COMMIT OFF
    GO
    ALTER DATABASE [GunzDB] SET CURSOR_DEFAULT GLOBAL
    GO
    ALTER DATABASE [GunzDB] SET CONCAT_NULL_YIELDS_NULL OFF
    GO
    ALTER DATABASE [GunzDB] SET NUMERIC_ROUNDABORT OFF
    GO
    ALTER DATABASE [GunzDB] SET QUOTED_IDENTIFIER OFF
    GO
    ALTER DATABASE [GunzDB] SET RECURSIVE_TRIGGERS OFF
    GO
    ALTER DATABASE [GunzDB] SET ENABLE_BROKER
    GO
    ALTER DATABASE [GunzDB] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
    GO
    ALTER DATABASE [GunzDB] SET DATE_CORRELATION_OPTIMIZATION OFF
    GO
    ALTER DATABASE [GunzDB] SET TRUSTWORTHY OFF
    GO
    ALTER DATABASE [GunzDB] SET ALLOW_SNAPSHOT_ISOLATION OFF
    GO
    ALTER DATABASE [GunzDB] SET PARAMETERIZATION SIMPLE
    GO
    ALTER DATABASE [GunzDB] SET READ_WRITE
    GO
    ALTER DATABASE [GunzDB] SET RECOVERY SIMPLE
    GO
    ALTER DATABASE [GunzDB] SET MULTI_USER
    GO
    ALTER DATABASE [GunzDB] SET PAGE_VERIFY CHECKSUM
    GO
    ALTER DATABASE [GunzDB] SET DB_CHAINING OFF
    Someone know the solution?

    Thnx


  2. #2
    Banned RevolutioN is offline
    BannedRank
    Jun 2010 Join Date
    United KingdomLocation
    440Posts

    Re: MSSQL Problem [database]

    I think it's because you allready have a DB named GunzDB, try finding it and deleting it than make a new one.

  3. #3
    Account Upgraded | Title Enabled! BGRick is offline
    MemberRank
    Oct 2010 Join Date
    The NetherlandsLocation
    437Posts

    Re: MSSQL Problem [database]

    Well I used the modded db.sql from Phoenix his topic and it worked with injecting.
    Hope it still works on the website to ^^



Advertisement