Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
cognos79
Posting Yak Master
241 Posts |
Posted - 2007-09-26 : 10:03:05
|
Is it possible to find the SQL Server Name in a DTS package using vbscript. Or is there any other way if not using vbscript.Thanks!!! |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-09-26 : 10:35:01
|
SELECT @@SERVERNAME E 12°55'05.25"N 56°04'39.16" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2007-09-26 : 10:39:16
|
dts is a client aplpication so will have to connect to a sql server. You can get the server name from the connection object.I always set the server from a variable - if you do this it would just be a matter of reading that variable.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
cognos79
Posting Yak Master
241 Posts |
Posted - 2007-09-26 : 11:06:02
|
nr...can you please post a sample code how to do this... |
|
|
|
|
|