Some Problem With Database

Jul 1, 2010 at 5:57 AM

i use VS2008 and SQL2005 database it not compatible

do anuone have a script fro create database with sql2005?

thank you for your support

Jul 2, 2010 at 7:12 PM

PS: Please note that I have emulated this based on the schema of the ER

USE [master]
GO

/****** Object:  Database [MVCMusicStore]    Script Date: 07/02/2010 20:11:22 ******/
CREATE DATABASE [MVCMusicStore] ON  PRIMARY 
( NAME = N'MVCMusicStore', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\DATA\MVCMusicStore.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'MVCMusicStore_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\DATA\MVCMusicStore_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO

ALTER DATABASE [MVCMusicStore] SET COMPATIBILITY_LEVEL = 100
GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [MVCMusicStore].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO

ALTER DATABASE [MVCMusicStore] SET ANSI_NULL_DEFAULT OFF 
GO

ALTER DATABASE [MVCMusicStore] SET ANSI_NULLS OFF 
GO

ALTER DATABASE [MVCMusicStore] SET ANSI_PADDING OFF 
GO

ALTER DATABASE [MVCMusicStore] SET ANSI_WARNINGS OFF 
GO

ALTER DATABASE [MVCMusicStore] SET ARITHABORT OFF 
GO

ALTER DATABASE [MVCMusicStore] SET AUTO_CLOSE OFF 
GO

ALTER DATABASE [MVCMusicStore] SET AUTO_CREATE_STATISTICS ON 
GO

ALTER DATABASE [MVCMusicStore] SET AUTO_SHRINK OFF 
GO

ALTER DATABASE [MVCMusicStore] SET AUTO_UPDATE_STATISTICS ON 
GO

ALTER DATABASE [MVCMusicStore] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO

ALTER DATABASE [MVCMusicStore] SET CURSOR_DEFAULT  GLOBAL 
GO

ALTER DATABASE [MVCMusicStore] SET CONCAT_NULL_YIELDS_NULL OFF 
GO

ALTER DATABASE [MVCMusicStore] SET NUMERIC_ROUNDABORT OFF 
GO

ALTER DATABASE [MVCMusicStore] SET QUOTED_IDENTIFIER OFF 
GO

ALTER DATABASE [MVCMusicStore] SET RECURSIVE_TRIGGERS OFF 
GO

ALTER DATABASE [MVCMusicStore] SET  DISABLE_BROKER 
GO

ALTER DATABASE [MVCMusicStore] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO

ALTER DATABASE [MVCMusicStore] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO

ALTER DATABASE [MVCMusicStore] SET TRUSTWORTHY OFF 
GO

ALTER DATABASE [MVCMusicStore] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO

ALTER DATABASE [MVCMusicStore] SET PARAMETERIZATION SIMPLE 
GO

ALTER DATABASE [MVCMusicStore] SET READ_COMMITTED_SNAPSHOT OFF 
GO

ALTER DATABASE [MVCMusicStore] SET HONOR_BROKER_PRIORITY OFF 
GO

ALTER DATABASE [MVCMusicStore] SET  READ_WRITE 
GO

ALTER DATABASE [MVCMusicStore] SET RECOVERY FULL 
GO

ALTER DATABASE [MVCMusicStore] SET  MULTI_USER 
GO

ALTER DATABASE [MVCMusicStore] SET PAGE_VERIFY CHECKSUM  
GO

ALTER DATABASE [MVCMusicStore] SET DB_CHAINING OFF 
GO


Coordinator
Jul 2, 2010 at 7:22 PM
Edited Jul 2, 2010 at 7:22 PM

I added a database create script that should work with SQL Server 2005. Have you tried that? http://mvcmusicstore.codeplex.com/SourceControl/changeset/view/9299484ae233#MvcMusicStore-Create.sql