Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Script not creating database correctly
Message
 
To
26/02/2013 10:59:25
General information
Forum:
Microsoft SQL Server
Category:
Scripting
Miscellaneous
Thread ID:
01566939
Message ID:
01566942
Views:
52
>Hi All
>
>We're trying to transfer a database from one server to another and had SQL create the script to do so. Unfortunately, it's creating the tables within the Master database and not within the new database. In fact, it's not even creating the new database. Here's the script that was generated, could someone point out why it's not doing what it's supposed to do?
>
>USE [master]
>GO
>/****** Object:  Database [DLI_Testing]    Script Date: 02/26/2013 06:41:26 ******/
>CREATE DATABASE [DLI_Testing] ON  PRIMARY 
>( NAME = N'DLI_Testing', FILENAME = N'D:\DLI_Testing.mdf' , SIZE = 78080KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
> LOG ON 
>( NAME = N'DLI_Testing_log', FILENAME = N'D:\DLI_Testing_log.LDF' , SIZE = 470144KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
>GO
>ALTER DATABASE [DLI_Testing] SET COMPATIBILITY_LEVEL = 100
>GO
>IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
>begin
>EXEC [DLI_Testing].[dbo].[sp_fulltext_database] @action = 'enable'
>end
>GO
>
Any error messages?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform