sab4you
IS-IT--Management
- Jan 30, 2003
- 269
This is quite the newbie question, pritty much because I am one 
I want to create a single SQL database on MS SQL 2000. I want to create it with two different filegroups, but I want the files to be stored in the default location to whatever the SQL Server wants.
I figured out this:
But that obviously puts the file's into the directory C:\ I choose. I need them to go into whatever location the SQL server is defaulting to
but still need to be able to name em.
GO
I want to create a single SQL database on MS SQL 2000. I want to create it with two different filegroups, but I want the files to be stored in the default location to whatever the SQL Server wants.
I figured out this:
Code:
USE master
GO
CREATE DATABASE Database
ON PRIMARY
( NAME = SPri1_dat, FILENAME = 'c:\KJT_OPEN_Primary.mdf' ),
FILEGROUP SECONDARY
( NAME = SGrp1Fi1_dat, FILENAME = 'c:\KJT_OPEN_Secondary.ndf' )
But that obviously puts the file's into the directory C:\ I choose. I need them to go into whatever location the SQL server is defaulting to
GO