![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I change default data directory and default log directory in SQL Server settings to C:\DB_Data\. When I'm creating new DB it's creating everything fine in folder C:\DB_Data\, but if I'm doing DTS with creating new DB on source server then it's creating data file and log file back in C:\Program Files\Microsoft SQL Server\MSSQL$SERVER06\Data\ folder. How I can set default folder for DTS new DB? Alex. |
#3
| |||
| |||
|
|
I'm doing next steps (in the Enterprise Manager): 1) On the destination server right click -> All tasks - Import Data 2) Going throw the steps (chousing source DB on source DBServer) and when it's asking me about destination database name I'm chousing <new> -> Typing name of new DB, but it's not giving me any questions about destination folder (only about name and size). And then after couple more questions about what and how I want to copy it's doing DTS, but it's creating DB in wrong folder (not in the default I setup for the server). -----Original Message----- The default directory is set for the server itself. To stop this happening then make sure you say similar to : (Taken from BOL) USE master GO CREATE DATABASE Sales ON ( NAME = Sales_dat, FILENAME = 'c:\program files\microsoft sql server\mssql\data\saledat.mdf', SIZE = 10, MAXSIZE = 50, FILEGROWTH = 5 ) LOG ON ( NAME = 'Sales_log', FILENAME = 'c:\program files\microsoft sql server\mssql\data\salelog.ldf', SIZE = 5MB, MAXSIZE = 25MB, FILEGROWTH = 5MB ) GO -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Alex Rybalov" <alex (AT) covers (DOT) com> wrote in message news:068201c34f9d$8c2cec80$a001280a (AT) phx (DOT) gbl... I change default data directory and default log directory in SQL Server settings to C:\DB_Data\. When I'm creating new DB it's creating everything fine in folder C:\DB_Data\, but if I'm doing DTS with creating new DB on source server then it's creating data file and log file back in C:\Program Files\Microsoft SQL Server\MSSQL$SERVER06\Data\ folder. How I can set default folder for DTS new DB? Alex. . |
#4
| |||
| |||
|
|
-----Original Message----- One very quick way around this is to use an EXECUTESQL task and do your create in there. You can then simply repoint the connection's Catalog property to the new DB. Why not create the DB outside of DTS ? -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Alex Rybalov" <alex (AT) covers (DOT) com> wrote in message news:099b01c34fa3$5b7d2ea0$a501280a (AT) phx (DOT) gbl... I'm doing next steps (in the Enterprise Manager): 1) On the destination server right click -> All tasks - Import Data 2) Going throw the steps (chousing source DB on source DBServer) and when it's asking me about destination database name I'm chousing <new> -> Typing name of new DB, but it's not giving me any questions about destination folder (only about name and size). And then after couple more questions about what and how I want to copy it's doing DTS, but it's creating DB in wrong folder (not in the default I setup for the server). -----Original Message----- The default directory is set for the server itself. To stop this happening then make sure you say similar to : (Taken from BOL) USE master GO CREATE DATABASE Sales ON ( NAME = Sales_dat, FILENAME = 'c:\program files\microsoft sql server\mssql\data\saledat.mdf', SIZE = 10, MAXSIZE = 50, FILEGROWTH = 5 ) LOG ON ( NAME = 'Sales_log', FILENAME = 'c:\program files\microsoft sql server\mssql\data\salelog.ldf', SIZE = 5MB, MAXSIZE = 25MB, FILEGROWTH = 5MB ) GO -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Alex Rybalov" <alex (AT) covers (DOT) com> wrote in message news:068201c34f9d$8c2cec80$a001280a (AT) phx (DOT) gbl... I change default data directory and default log directory in SQL Server settings to C:\DB_Data\. When I'm creating new DB it's creating everything fine in folder C:\DB_Data\, but if I'm doing DTS with creating new DB on source server then it's creating data file and log file back in C:\Program Files\Microsoft SQL Server\MSSQL$SERVER06\Data\ folder. How I can set default folder for DTS new DB? Alex. . . |
![]() |
| Thread Tools | |
| Display Modes | |
| |