all groups > sql server (microsoft) > july 2004 >
You're in the

sql server (microsoft)

group:

problem with migrating DTS package from file to server


Re: problem with migrating DTS package from file to server Ilya Margolin
7/15/2004 10:41:01 AM
sql server (microsoft):
Andrew,

(local) means local to the PC. You have to provide either a real server name
or an alias. To create an alias you can either use Client Network Utility or
manipulate the registry.

Ilya

[quoted text, click to view]

problem with migrating DTS package from file to server Andrew Baker
7/15/2004 1:34:34 PM
Sorry about the cross post, but I need an answer by the end of the week.

I am trying to migrate a DTS from a file into the server. I dont know what
user name or password will be on the target PC, so I cant specify them, but
the integrated security gives the user ability to connect. On my
development PC I get the following error.

Code (in VB.net) is:
Imports DTS



Dim pkg As New DTS.Package

pkg.LoadFromStorageFile("W:\temp\testdts.dts", "") *** Works no problems.

pkg.SaveToSQLServer("(local)") **** error occurs here.

Error is:

An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in AppName.exe

Additional information: Invalid authorization specification


I have tried "." as the server name and no joy either. I cant use the real
server name as the idea is I am trying to deploy the DTS package to a number
of PC's.


TIA

Andrew


Re: problem with migrating DTS package from file to server Andrew Baker
7/16/2004 1:08:47 PM
For those that have this problem after me....

Dim pkg As DTS.Package

Dim sServer As String

Dim sUID As String

Dim sPWD As String

Dim iSecurity As DTS.DTSSQLServerStorageFlags

pkg = New DTS.Package

pkg.LoadFromStorageFile("W:\temp\testdts.dts", "")

' Assign parameters

iSecurity = DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedConnection

sServer = "(local)"

sUID = ""

sPWD = ""

' Save package

pkg.SaveToSQLServer(sServer, sUID, sPWD, iSecurity)







[quoted text, click to view]

AddThis Social Bookmark Button