Re: Pass server name inn global variable dynamically!!!
- From: Test Test <farooqhs_2000@xxxxxxxxx>
- Date: Thu, 30 Jun 2005 07:49:56 -0700
Allan,
Thakns for the respsone. Can you please exlpain how would I repeat it?.
I understand that /S is for server name and /A for global variable.
declare @dtsrun varchar(1000)
set @dtsrun = 'dtsrun /F c:\CM_DTS\TMP.dts /N TMP /E /S ' +
@@servername + '/A gvServer:8=' + @@servername
exec master.dbo.xp_cmdshell @dtsrun
This gives me EXCEPTION_ACCESS_VIOLATION
output DTSRun:
Loading...
Error: -2147221499 (80040005); Provider Error: 0 (0)
Error string: Code execution exception: EXCEPTION_ACCESS_VIOLATION
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 713
NULL
(9 row(s) affected)
The "gvServer" is the global variable I set up in the package properties
(2nd tab).
Thanks!
*** Sent via Developersdex http://www.developersdex.com ***
.
- Follow-Ups:
- Re: Pass server name inn global variable dynamically!!!
- From: Test Test
- Re: Pass server name inn global variable dynamically!!!
- References:
- Re: Pass server name inn global variable dynamically!!!
- From: Allan Mitchell
- Re: Pass server name inn global variable dynamically!!!
- Prev by Date: Using 'Execute SQL Task' to insert rows
- Next by Date: How function a DTS handeld in Visual Basic
- Previous by thread: Re: Pass server name inn global variable dynamically!!!
- Next by thread: Re: Pass server name inn global variable dynamically!!!
- Index(es):
Relevant Pages
|