Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 14th, 2005, 10:52 AM
Registered User
Join Date: Sep 2005
Location: Barcelona, , Spain.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run DTS with a windows user, not a SQL user


I have next code that run without problems:

    Dim objPackage2 As New DTS.Package2

    objPackage.FailOnError = True
    objPackage.LoadFromSQLServer "BCN01SERVER", _
        "sa", "", _
        DTSSQLStgFlag_Default, , , , "Package01"

But when I change LoadFromSQLServer line and subst "sa" user with a windows 2000 user, something is wrong:

    objPackage.LoadFromSQLServer "BCN01SERVER", _
        "DOMAIN\User01", "aaaaa", _
        DTSSQLStgFlag_UseTrustedConnection, , , , "Package01"

I have an "Login failer for user 'DOMAIN\Kalli'" error, when I hint "DOMAIN\User01".
What is wrong?

Thanks very much to all

  #2 (permalink)  
Old September 15th, 2005, 11:53 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

If you created the package using sa or dbo, the user will need to use that password to run it. When you save the package you can specify a owner pw and a user pw.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding User Forms at Run time RichRansom BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 0 May 30th, 2008 11:49 AM
How to get user name from windows authentication? su C# 1 December 9th, 2006 02:58 AM
User cannot run reports NeosEcho Reporting Services 0 June 21st, 2006 02:51 PM
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM

All times are GMT -4. The time now is 07:44 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.