Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Namespace object / DTS / authentication 1

Status
Not open for further replies.

gabs

Programmer
May 28, 2002
4
GB
I am attempting to execute a DTS package from a client computer using visual basic and the SQLNS object.

I wish to use SQLServer authentication.

When I execute a function that calls the DTS package the initialisation of the SQLNamespace object executes successfully. However, when the ExecuteCommandByID method is called & the DTS progress window is displayed i get an error stating that the first task failed due to not having a trusted connection.

When I execute this function when a trusted connection is in place it runs successfully.

I ran a trace to investigate this issue.

It appears that the initialisation runs with the SQLServer login supplied to the Initialize method and the application name of Visual Basic.

When the ExecuteCommandByID method is called, the SQLServer account logs out, a trusted connection logs in and executes the DTS steps with an application name of DTS Designer. Therefore if a trusted connection is not in place the DTS fails.

Can anyone tell me how to make the DTS Designer log in using SQL Server authentication?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top