Re: Settig SQL Agent pwd thru code
From: Jasper Smith (jasper_smith9_at_hotmail.com)
Date: 05/15/03
- Next message: Jasper Smith: "Re: SQL2000 SA Account"
- Previous message: Bart Duncan [MSFT]: "Re: Define column as nchar (unicode) to store encrypted data?"
- In reply to: Michael M: "Settig SQL Agent pwd thru code"
- Next in thread: Michael Mazza: "Re: Settig SQL Agent pwd thru code"
- Reply: Michael Mazza: "Re: Settig SQL Agent pwd thru code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 15 May 2003 17:56:47 +0100
This is for MSDE2000 on NT based platforms only
http://sqldev.net/download/sqlagent/sp_sqlagent_set_connection.sql
-- HTH Jasper Smith (SQL Server MVP) I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Michael M" <mike@kressa.com> wrote in message news:0d3a01c31a82$c3986140$a001280a@phx.gbl... > I'm trying to develop a turnkey installation process that > will distribute and setup MSDE automatically for an > application that uses it as a backend. > > The database is "locked" from end user access so I've > removed the BUILTIN\Administrators Login and other such > things to give easy access to the db through Windows Auth. > > However, installing MSDE seems to setup SQl Agent > Connection parms to Windows Auth by default. I need to > programmatically set that to SQL Auth and set the userid > and pwd. > > For the life of me I can't figure out a way to do it. > Using the following code doesn't work. I assume because > of encrpytion algorithms that I have no access to. > Declare @pa VarBinary(256) > Select @pa = password from master..sysxlogins Where > name='sa' > Execute msdb.dbo.sp_set_sqlagent_properties > @regular_connections = 1, > @host_login_name = 'sa', > @host_login_password = @pa > > Anyone have any suggestions? Thanks in advance > > Mike M.
- Next message: Jasper Smith: "Re: SQL2000 SA Account"
- Previous message: Bart Duncan [MSFT]: "Re: Define column as nchar (unicode) to store encrypted data?"
- In reply to: Michael M: "Settig SQL Agent pwd thru code"
- Next in thread: Michael Mazza: "Re: Settig SQL Agent pwd thru code"
- Reply: Michael Mazza: "Re: Settig SQL Agent pwd thru code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|