all groups > sql server dts > april 2004 >
You're in the

sql server dts

group:

Find ServerName inside DTS


Find ServerName inside DTS josefszeliga NO[at]SPAM hotmail.com
4/29/2004 6:21:49 PM
sql server dts: My DTS package requires that parameters be set depending on which of
our sql 2000 servers the package runs on. ie the servername determins
the name of the database in development, testing and production.

I created a dynamic property task and used the Environment Variable
"SERVERNAME" to retrieve the SQL servername. The worked out the
database name base on the value returned

This works fine if the DTS is exectued local on one the server it sits
on. Howerver, if i open Enterprise manager on my pc and point it at a
DTS package on one of the servers and exectue the DTS this way. It
says the SERVERNAME is my local PC's name.

Is there a way to capture inside a DTS the name of the sql server
where the package you are trying to run is actually located on ? Not
Re: Find ServerName inside DTS Allan Mitchell
4/30/2004 6:05:49 AM
No not as far as I know. The storage location is simply that. DTS is
client side. You will have to code the logic another way.

Maybe you could use a query to set things up inside the DP task. The query
would be something like

SELECT paramName FROM table WHERE PCName in (<list of names>)



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Re: Find ServerName inside DTS Christoph Seck
5/4/2004 8:44:52 AM
Hi Erik,

you could call your package from a SQL Server-Agent job. When you execute
the
the job (from your local pc's EM) it schould run your package on the server.

Christoph Seck


"Erick" <josefszeliga@hotmail.com> schrieb im Newsbeitrag
news:e109c9fd.0404291721.4dba2d12@posting.google.com...
[quoted text, click to view]

AddThis Social Bookmark Button