dbTalk Databases Forums  

Default folder for DTS.

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Default folder for DTS. in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alex Rybalov
 
Posts: n/a

Default Default folder for DTS. - 07-21-2003 , 10:34 AM






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.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Default folder for DTS. - 07-21-2003 , 10:41 AM






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

Quote:
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.



Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Default folder for DTS. - 07-22-2003 , 02:02 AM



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

Quote:
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.


.




Reply With Quote
  #4  
Old   
Alex Rybalov
 
Posts: n/a

Default Re: Default folder for DTS. - 07-22-2003 , 07:03 AM



I can create DB outside DTS, and usualy I'm creating
script from old DB, chancing paths (if necessary) and
creating DB from this script, and then doing DTS.
Yesterday I desided to make it without script... Hehe...

For me this is look's like a bug...

Quote:
-----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.


.



.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.