Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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

Hi,

I have next code that run without problems:

    Dim objPackage2 As New DTS.Package2

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

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

JC
  #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
Default

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.



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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.