dbTalk Databases Forums  

Re: Server Name

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


Discuss Re: Server Name in the microsoft.public.sqlserver.dts forum.



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

Default Re: Server Name - 01-04-2006 , 02:43 PM






Hello Kiran,

You can use WSH-

Set oWshNetwork = CreateObject("WScript.Network")

MsgBox oWshNetwork.ComputerName

This is demonstrated here-

Global variable diagnostic script
(http://www.sqldts.com/default.aspx?303)


Allan


Quote:
Hi All,

How can I get the server name on which the DTS package runs
dynamically. for instance, when a DTS package is success, I want to
send an email, and the email should contain the server name on which
the DTS package is running. Is there a way to get the servername
through an ActiveX Script?

Thanks
Kiran Kumar Pinjala



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.