dbTalk Databases Forums  

Re: modify user account for dts connections

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


Discuss Re: modify user account for dts connections in the microsoft.public.sqlserver.dts forum.



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

Default Re: modify user account for dts connections - 10-13-2004 , 01:01 PM






http://www.sqldts.com/default.aspx?209


dim cn

For each cn in DTSGlobalvariables.Parent.Connections
if cn.ProviderID = "SQLOLEDB" then

cn.UserID = "John"
cn.Password = "Gue55"
End if
Next

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


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

Quote:
thanks, Allan,

what I'm looking for here is really the code (any way
other than VB code?) that can modify the user account for
dts connections. sorry for wasn't being clear enough.

'Is there an automated way (by code) that I can change this
employee's account into another account for all
connections in any dts packages?

do I have to correct this manually?'

-----Original Message-----
If you are using Windows Authentication then the account
used will be the
executor.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"JJ Wang" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:0e5001c4a817$db79c000$a501280a (AT) phx (DOT) gbl...
hi,

another question about sql server 2000 dts.

before we drop an employee's account, we would want to
make sure that his accounts won't be used in any dts
package connections on all of our sql servers.

is there an automated way (by code) that I can change
this
employee's account into another account for all
connections in any dts packages?

do I have to correct this manually?

many thanks!

JJ


.




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.