dbTalk Databases Forums  

Using metadata table to call database name

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


Discuss Using metadata table to call database name in the microsoft.public.sqlserver.dts forum.



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

Default Using metadata table to call database name - 10-16-2003 , 11:36 AM






How can I have the database name in this sp to look into a
metadata table so I don't need to change the database name
each time I move this script to a different db. Thanks is
advance for your help. Daizy

exec
master.dbo.xp_cmdshell 'dtsrun /Smy_server /Umy_login /Pmyp
assword /Nmy_dts_pkg /Mdtspassword'

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

Default Re: Using metadata table to call database name - 10-16-2003 , 04:35 PM






Are you using 2000 ? If not then you can't. If you are then look at Global
Variables and the /A switch to DTSRUN. Better yet use a Dynamic Properties
task.

In 7 you will need to do inside the package using a piece of ADO in
VBScript and assign the correct recordset fields to the correct parts of the
object model.



--
--

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

"Daizy" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
How can I have the database name in this sp to look into a
metadata table so I don't need to change the database name
each time I move this script to a different db. Thanks is
advance for your help. Daizy

exec
master.dbo.xp_cmdshell 'dtsrun /Smy_server /Umy_login /Pmyp
assword /Nmy_dts_pkg /Mdtspassword'



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.