![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Running MS SQL Server Personal. In the properties for the local server group, Database Settings, I have D:\MS SQL Server\Data\ set for the data and log files. If I create new db in EM, the files go to the above directory. If I do a create db in QA, the files go to the above directory. However, if I use DTS to copy one db (located anywhere) into "new" on this server, the files always end up in D:\Program Files\Microsoft SQL Server\MSSQL\Data. That directory contains the master, model, tempdb, etc non-movable system dbs. I have searched a bunch, but have not found how to fix this. My workaround is to first create new db in EM, then copy the db using DTS to the existing db. Can anyone point me towards a fix? -- Thanks, Mike. |
#3
| |||
| |||
|
|
That is because when DTS does it then what it says is "This guy wants to create a DB" "He wants to name it X" "I have not shown him where to put it, just that he sould give me a name" "Let me get the location of the master database and I shall concatenate that path onto the name of his DB" |
#4
| |||
| |||
|
|
On Wed, 8 Sep 2004 21:22:13 +0100, Allan Mitchell wrote: That is because when DTS does it then what it says is "This guy wants to create a DB" "He wants to name it X" "I have not shown him where to put it, just that he sould give me a name" "Let me get the location of the master database and I shall concatenate that path onto the name of his DB" OK, we have a feature and not a bug or operator problem. Since you did not say anything about a config change that would change that behavior, one must not exist. Just create the db first, and then use DTS. Is it correct to say that to move the system dbs (master, tempdb, etc) one would need to uninstall and reinstall the server? -- Thanks, Mike. |
#5
| |||
| |||
|
|
It would be incorrect to say that. http://www.databasejournal.com/featu...le.php/3379901 |
#6
| |||
| |||
|
|
After moving the Master, Model, MSDB and Tempdb databases I still found that a new DB created through DTS was still placed in the old location. I found that the Master database location within the (Master) Sysdatabases table was for the old path. Correcting the location resolved my problem. (Direct modification to system tables isn?t allowed unless you start SQL using the -m option. BOL Search: Allow Updates Option / Administering SQL Server) Hope this helps!! |
![]() |
| Thread Tools | |
| Display Modes | |
| |