PRB: Error Message "Unspecified Error" When Executing a DTS Package Modified Dynamically (238367)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q238367 SYMPTOMS When Executing a DTS (Data Transformation Server) package
modified dynamically in code, you might see the following error message:
Unspecified Error" -2147958789 from package.Execute
method.
The DTS ScriptPackage tool also fails with the same error
when you try to script that package. CAUSE The ODBC Connection string is not set properly. If you load
that package in DTS Designer and then execute, you get a more detailed error
message: [Microsoft] [ODBC Driver Manager], data
source name not found and no default driver specified
WORKAROUND Set the ODBC connection string in the extended properties:
oConn.ConnectionProperties("Extended Properties").Value
= "Driver={SQL Server};Server=(local);Uid=<User ID>;Pwd=<Strong Password>;Database=myDB"
Modification Type: | Major | Last Reviewed: | 2/24/2004 |
---|
Keywords: | kbDatabase kbprb KB238367 |
---|
|