Hi,
I have a DTS package which when I execute it manually, it executes perfectly. I need to schedule it and therefore had to use the scheduler which would creata a job for the package. The problem is that job. It does not execute; it fails every time. The error message is: Sql server does not exist or access is denied.
I have tried to trouble-shoot by setting up an alias for the server in the client network utility for sql server. I also create a new dsn with the new alias. It still failed with the same error message. I edited the properties of the dts package to connect to the server's ip instead of it's alias or logical name. Still fails.
Any ideas anyone?
MariaIs sa the owner of the job ? If not make sa the owner
Showing posts with label perfectly. Show all posts
Showing posts with label perfectly. Show all posts
Wednesday, March 21, 2012
Friday, February 24, 2012
DTS jobs hang
Hi Experts out there,
I would like to know find out from you, I created a package in SQL 2000 DTS
module. When i execute the package it runs perfectly well. Unfortunately when
I execute it by scheduling, the package will hang there. The status is always
"Executing...step (1)...". Perhaps when I execute manually, it takes less
than 30 seconds to complete...but when I schedule it, it just hang there for
many minutes and it doesn't continue..There is no error message prompt at all.
Can some one please give me some tips on how should I go about scheduling
the package and run successfully.. Many Thanks in advance...
Regards,
Rachael Lim
When you say you run it manually, how do you do this? Where and how are you
logged in? Do you run the job manually or do you load and execute the DTS
package manually?
Sincerely,
Anthony Thomas
"Rachael Lim" <Rachael Lim@.discussions.microsoft.com> wrote in message
news:BB8EB37D-25C1-4F8B-BF87-D5263131B9ED@.microsoft.com...
Hi Experts out there,
I would like to know find out from you, I created a package in SQL 2000 DTS
module. When i execute the package it runs perfectly well. Unfortunately
when
I execute it by scheduling, the package will hang there. The status is
always
"Executing...step (1)...". Perhaps when I execute manually, it takes less
than 30 seconds to complete...but when I schedule it, it just hang there for
many minutes and it doesn't continue..There is no error message prompt at
all.
Can some one please give me some tips on how should I go about scheduling
the package and run successfully.. Many Thanks in advance...
Regards,
Rachael Lim
|||WHen I execute it manually means I am in the design mode of the package and
execute the package.
I created the scheduled job by right-clicing on the package and select
schedule package.
"AnthonyThomas" wrote:
> When you say you run it manually, how do you do this? Where and how are you
> logged in? Do you run the job manually or do you load and execute the DTS
> package manually?
> Sincerely,
>
> Anthony Thomas
>
> --
> "Rachael Lim" <Rachael Lim@.discussions.microsoft.com> wrote in message
> news:BB8EB37D-25C1-4F8B-BF87-D5263131B9ED@.microsoft.com...
> Hi Experts out there,
> I would like to know find out from you, I created a package in SQL 2000 DTS
> module. When i execute the package it runs perfectly well. Unfortunately
> when
> I execute it by scheduling, the package will hang there. The status is
> always
> "Executing...step (1)...". Perhaps when I execute manually, it takes less
> than 30 seconds to complete...but when I schedule it, it just hang there for
> many minutes and it doesn't continue..There is no error message prompt at
> all.
> Can some one please give me some tips on how should I go about scheduling
> the package and run successfully.. Many Thanks in advance...
> Regards,
> Rachael Lim
>
>
|||Enable package level logging and rerun from the scheduled job. If you have
to cancel the job, that's ok. The logging happens at each step within the
package. This will give you more verbose execution state information.
I suspect you have a permissions issue but the logging should help you
determine this.
Keep in mind that the package runs under the permissions of the executor,
not the storage location and from the location of the executor. When you
run, your permissions and your workstation, when the SQL Agent job runs, the
service account that the SQL Agent is running under and from the SS server's
location. This is an important consideration for local drives and maps as
well as installed executibles, like the WSH ActiveX components.
Sincerely,
Anthony Thomas
"Rachael Lim" <RachaelLim@.discussions.microsoft.com> wrote in message
news:95D6E3CD-EDD7-4D01-88AE-213BCE343C7F@.microsoft.com...
WHen I execute it manually means I am in the design mode of the package and
execute the package.
I created the scheduled job by right-clicing on the package and select
schedule package.
"AnthonyThomas" wrote:
> When you say you run it manually, how do you do this? Where and how are
you
> logged in? Do you run the job manually or do you load and execute the DTS
> package manually?
> Sincerely,
>
> Anthony Thomas
>
> --
> "Rachael Lim" <Rachael Lim@.discussions.microsoft.com> wrote in message
> news:BB8EB37D-25C1-4F8B-BF87-D5263131B9ED@.microsoft.com...
> Hi Experts out there,
> I would like to know find out from you, I created a package in SQL 2000
DTS
> module. When i execute the package it runs perfectly well. Unfortunately
> when
> I execute it by scheduling, the package will hang there. The status is
> always
> "Executing...step (1)...". Perhaps when I execute manually, it takes less
> than 30 seconds to complete...but when I schedule it, it just hang there
for
> many minutes and it doesn't continue..There is no error message prompt at
> all.
> Can some one please give me some tips on how should I go about scheduling
> the package and run successfully.. Many Thanks in advance...
> Regards,
> Rachael Lim
>
>
I would like to know find out from you, I created a package in SQL 2000 DTS
module. When i execute the package it runs perfectly well. Unfortunately when
I execute it by scheduling, the package will hang there. The status is always
"Executing...step (1)...". Perhaps when I execute manually, it takes less
than 30 seconds to complete...but when I schedule it, it just hang there for
many minutes and it doesn't continue..There is no error message prompt at all.
Can some one please give me some tips on how should I go about scheduling
the package and run successfully.. Many Thanks in advance...
Regards,
Rachael Lim
When you say you run it manually, how do you do this? Where and how are you
logged in? Do you run the job manually or do you load and execute the DTS
package manually?
Sincerely,
Anthony Thomas
"Rachael Lim" <Rachael Lim@.discussions.microsoft.com> wrote in message
news:BB8EB37D-25C1-4F8B-BF87-D5263131B9ED@.microsoft.com...
Hi Experts out there,
I would like to know find out from you, I created a package in SQL 2000 DTS
module. When i execute the package it runs perfectly well. Unfortunately
when
I execute it by scheduling, the package will hang there. The status is
always
"Executing...step (1)...". Perhaps when I execute manually, it takes less
than 30 seconds to complete...but when I schedule it, it just hang there for
many minutes and it doesn't continue..There is no error message prompt at
all.
Can some one please give me some tips on how should I go about scheduling
the package and run successfully.. Many Thanks in advance...
Regards,
Rachael Lim
|||WHen I execute it manually means I am in the design mode of the package and
execute the package.
I created the scheduled job by right-clicing on the package and select
schedule package.
"AnthonyThomas" wrote:
> When you say you run it manually, how do you do this? Where and how are you
> logged in? Do you run the job manually or do you load and execute the DTS
> package manually?
> Sincerely,
>
> Anthony Thomas
>
> --
> "Rachael Lim" <Rachael Lim@.discussions.microsoft.com> wrote in message
> news:BB8EB37D-25C1-4F8B-BF87-D5263131B9ED@.microsoft.com...
> Hi Experts out there,
> I would like to know find out from you, I created a package in SQL 2000 DTS
> module. When i execute the package it runs perfectly well. Unfortunately
> when
> I execute it by scheduling, the package will hang there. The status is
> always
> "Executing...step (1)...". Perhaps when I execute manually, it takes less
> than 30 seconds to complete...but when I schedule it, it just hang there for
> many minutes and it doesn't continue..There is no error message prompt at
> all.
> Can some one please give me some tips on how should I go about scheduling
> the package and run successfully.. Many Thanks in advance...
> Regards,
> Rachael Lim
>
>
|||Enable package level logging and rerun from the scheduled job. If you have
to cancel the job, that's ok. The logging happens at each step within the
package. This will give you more verbose execution state information.
I suspect you have a permissions issue but the logging should help you
determine this.
Keep in mind that the package runs under the permissions of the executor,
not the storage location and from the location of the executor. When you
run, your permissions and your workstation, when the SQL Agent job runs, the
service account that the SQL Agent is running under and from the SS server's
location. This is an important consideration for local drives and maps as
well as installed executibles, like the WSH ActiveX components.
Sincerely,
Anthony Thomas
"Rachael Lim" <RachaelLim@.discussions.microsoft.com> wrote in message
news:95D6E3CD-EDD7-4D01-88AE-213BCE343C7F@.microsoft.com...
WHen I execute it manually means I am in the design mode of the package and
execute the package.
I created the scheduled job by right-clicing on the package and select
schedule package.
"AnthonyThomas" wrote:
> When you say you run it manually, how do you do this? Where and how are
you
> logged in? Do you run the job manually or do you load and execute the DTS
> package manually?
> Sincerely,
>
> Anthony Thomas
>
> --
> "Rachael Lim" <Rachael Lim@.discussions.microsoft.com> wrote in message
> news:BB8EB37D-25C1-4F8B-BF87-D5263131B9ED@.microsoft.com...
> Hi Experts out there,
> I would like to know find out from you, I created a package in SQL 2000
DTS
> module. When i execute the package it runs perfectly well. Unfortunately
> when
> I execute it by scheduling, the package will hang there. The status is
> always
> "Executing...step (1)...". Perhaps when I execute manually, it takes less
> than 30 seconds to complete...but when I schedule it, it just hang there
for
> many minutes and it doesn't continue..There is no error message prompt at
> all.
> Can some one please give me some tips on how should I go about scheduling
> the package and run successfully.. Many Thanks in advance...
> Regards,
> Rachael Lim
>
>
Sunday, February 19, 2012
DTS in Sproc help....
I have been trying to schedule a DTS package that executes perfectly fine
when fired with Enterprise Manager. However, I need this package to run
during a run-time process inside my application. So, I have added the exec
params inside a StoredProc -- everything is working as expected. But, the
affected table is not getting populated with the data from the .xls file.
So - I am pretty sure that it's a connection/filepath/user issue. But I am
not sure how to handle this problem. The process goes like this:
1. Drop existing dbo.SR_Traps
2. Create dbo.SR_Traps
3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
4. Data Pump from excel table into dbo.SR_Traps table
Looking at the DTS Package Logs, it seems to fail on number 4. above. Here
is the actual error message contained within the log:
Step Error Source: Microsoft JET Database Engine
Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
2005.xls' is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file
resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Any input/suggestions are greatly appreciated.
j
Message posted via http://www.droptable.com
Can you send us the string you think is blowing up?
"j c via droptable.com" <forum@.nospam.droptable.com> wrote in message
news:70ef433752634d96a99ea2a3916fa27a@.droptable.co m...
>I have been trying to schedule a DTS package that executes perfectly fine
> when fired with Enterprise Manager. However, I need this package to run
> during a run-time process inside my application. So, I have added the
> exec
> params inside a StoredProc -- everything is working as expected. But, the
> affected table is not getting populated with the data from the .xls file.
> So - I am pretty sure that it's a connection/filepath/user issue. But I
> am
> not sure how to handle this problem. The process goes like this:
> 1. Drop existing dbo.SR_Traps
> 2. Create dbo.SR_Traps
> 3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
> 4. Data Pump from excel table into dbo.SR_Traps table
> Looking at the DTS Package Logs, it seems to fail on number 4. above.
> Here
> is the actual error message contained within the log:
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
> 2005.xls' is not a valid path. Make sure that the path name is spelled
> correctly and that you are connected to the server on which the file
> resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
>
> Any input/suggestions are greatly appreciated.
> j
> --
> Message posted via http://www.droptable.com
|||Ok - here is the StoredProc:
****
CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
"SR_Trapping_Data"'
GO
****
Here is the VB code I am using to fire the SP (which it is firing! But,
the resulting table gets dropped then recreated, and the last step of data
pump is not populating the table. It's empty after the DTS runs).
VB Code:
****
Dim pConn As New ADODB.Connection
pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
"Initial Catalog=; User Id=; Password="
pConn.Open
Dim pDTSCommand As New ADODB.Command
pDTSCommand.ActiveConnection = pConn
pDTSCommand.CommandType = adCmdStoredProc
pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
pDTSCommand.Execute
*****
Thanks for your input!
James
Message posted via http://www.droptable.com
|||If you run the sp in query anylyzer, do you have the same outcome?
"j c via droptable.com" <forum@.droptable.com> wrote in message
news:c7fcc5e00f7243d4a2774c44dc1c37d0@.droptable.co m...
> Ok - here is the StoredProc:
> ****
> CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
> EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
> "SR_Trapping_Data"'
> GO
> ****
> Here is the VB code I am using to fire the SP (which it is firing! But,
> the resulting table gets dropped then recreated, and the last step of data
> pump is not populating the table. It's empty after the DTS runs).
> VB Code:
> ****
> Dim pConn As New ADODB.Connection
> pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
> "Initial Catalog=; User Id=; Password="
> pConn.Open
> Dim pDTSCommand As New ADODB.Command
> pDTSCommand.ActiveConnection = pConn
> pDTSCommand.CommandType = adCmdStoredProc
> pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
> pDTSCommand.Execute
> *****
>
> Thanks for your input!
> James
> --
> Message posted via http://www.droptable.com
|||Hi Chris,
I ran the following in QueryAnalyzer...
****
EXEC master..xp_cmdshell 'DTSRun /S "MMSQL1" /U "mms" /P "mmspass" /N
"SR_Trapping_DataNoNulls"'
****
This is the actual string used in the StoredProc. The error in QA is:
" Error string: The specified DTS Package ('Name =
'SR_Trapping_DataNoNulls'; ID.VersionID = {[not specified]}.{[not
specified]}') does not exist. "
After looking in the Data Transformation Services/ Local Packages area, I
can see that it is there. If I "Execute" the DTS package from Enterprise
Manager, there is no problem.
James
Message posted via http://www.droptable.com
when fired with Enterprise Manager. However, I need this package to run
during a run-time process inside my application. So, I have added the exec
params inside a StoredProc -- everything is working as expected. But, the
affected table is not getting populated with the data from the .xls file.
So - I am pretty sure that it's a connection/filepath/user issue. But I am
not sure how to handle this problem. The process goes like this:
1. Drop existing dbo.SR_Traps
2. Create dbo.SR_Traps
3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
4. Data Pump from excel table into dbo.SR_Traps table
Looking at the DTS Package Logs, it seems to fail on number 4. above. Here
is the actual error message contained within the log:
Step Error Source: Microsoft JET Database Engine
Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
2005.xls' is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file
resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Any input/suggestions are greatly appreciated.
j
Message posted via http://www.droptable.com
Can you send us the string you think is blowing up?
"j c via droptable.com" <forum@.nospam.droptable.com> wrote in message
news:70ef433752634d96a99ea2a3916fa27a@.droptable.co m...
>I have been trying to schedule a DTS package that executes perfectly fine
> when fired with Enterprise Manager. However, I need this package to run
> during a run-time process inside my application. So, I have added the
> exec
> params inside a StoredProc -- everything is working as expected. But, the
> affected table is not getting populated with the data from the .xls file.
> So - I am pretty sure that it's a connection/filepath/user issue. But I
> am
> not sure how to handle this problem. The process goes like this:
> 1. Drop existing dbo.SR_Traps
> 2. Create dbo.SR_Traps
> 3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
> 4. Data Pump from excel table into dbo.SR_Traps table
> Looking at the DTS Package Logs, it seems to fail on number 4. above.
> Here
> is the actual error message contained within the log:
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
> 2005.xls' is not a valid path. Make sure that the path name is spelled
> correctly and that you are connected to the server on which the file
> resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
>
> Any input/suggestions are greatly appreciated.
> j
> --
> Message posted via http://www.droptable.com
|||Ok - here is the StoredProc:
****
CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
"SR_Trapping_Data"'
GO
****
Here is the VB code I am using to fire the SP (which it is firing! But,
the resulting table gets dropped then recreated, and the last step of data
pump is not populating the table. It's empty after the DTS runs).
VB Code:
****
Dim pConn As New ADODB.Connection
pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
"Initial Catalog=; User Id=; Password="
pConn.Open
Dim pDTSCommand As New ADODB.Command
pDTSCommand.ActiveConnection = pConn
pDTSCommand.CommandType = adCmdStoredProc
pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
pDTSCommand.Execute
*****
Thanks for your input!
James
Message posted via http://www.droptable.com
|||If you run the sp in query anylyzer, do you have the same outcome?
"j c via droptable.com" <forum@.droptable.com> wrote in message
news:c7fcc5e00f7243d4a2774c44dc1c37d0@.droptable.co m...
> Ok - here is the StoredProc:
> ****
> CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
> EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
> "SR_Trapping_Data"'
> GO
> ****
> Here is the VB code I am using to fire the SP (which it is firing! But,
> the resulting table gets dropped then recreated, and the last step of data
> pump is not populating the table. It's empty after the DTS runs).
> VB Code:
> ****
> Dim pConn As New ADODB.Connection
> pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
> "Initial Catalog=; User Id=; Password="
> pConn.Open
> Dim pDTSCommand As New ADODB.Command
> pDTSCommand.ActiveConnection = pConn
> pDTSCommand.CommandType = adCmdStoredProc
> pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
> pDTSCommand.Execute
> *****
>
> Thanks for your input!
> James
> --
> Message posted via http://www.droptable.com
|||Hi Chris,
I ran the following in QueryAnalyzer...
****
EXEC master..xp_cmdshell 'DTSRun /S "MMSQL1" /U "mms" /P "mmspass" /N
"SR_Trapping_DataNoNulls"'
****
This is the actual string used in the StoredProc. The error in QA is:
" Error string: The specified DTS Package ('Name =
'SR_Trapping_DataNoNulls'; ID.VersionID = {[not specified]}.{[not
specified]}') does not exist. "
After looking in the Data Transformation Services/ Local Packages area, I
can see that it is there. If I "Execute" the DTS package from Enterprise
Manager, there is no problem.
James
Message posted via http://www.droptable.com
DTS in Sproc help....
I have been trying to schedule a DTS package that executes perfectly fine
when fired with Enterprise Manager. However, I need this package to run
during a run-time process inside my application. So, I have added the exec
params inside a StoredProc -- everything is working as expected. But, the
affected table is not getting populated with the data from the .xls file.
So - I am pretty sure that it's a connection/filepath/user issue. But I am
not sure how to handle this problem. The process goes like this:
1. Drop existing dbo.SR_Traps
2. Create dbo.SR_Traps
3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
4. Data Pump from excel table into dbo.SR_Traps table
Looking at the DTS Package Logs, it seems to fail on number 4. above. Here
is the actual error message contained within the log:
Step Error Source: Microsoft JET Database Engine
Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
2005.xls' is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file
resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Any input/suggestions are greatly appreciated.
j
Message posted via http://www.droptable.comCan you send us the string you think is blowing up?
"j c via droptable.com" <forum@.nospam.droptable.com> wrote in message
news:70ef433752634d96a99ea2a3916fa27a@.SQ
droptable.com...
>I have been trying to schedule a DTS package that executes perfectly fine
> when fired with Enterprise Manager. However, I need this package to run
> during a run-time process inside my application. So, I have added the
> exec
> params inside a StoredProc -- everything is working as expected. But, the
> affected table is not getting populated with the data from the .xls file.
> So - I am pretty sure that it's a connection/filepath/user issue. But I
> am
> not sure how to handle this problem. The process goes like this:
> 1. Drop existing dbo.SR_Traps
> 2. Create dbo.SR_Traps
> 3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
> 4. Data Pump from excel table into dbo.SR_Traps table
> Looking at the DTS Package Logs, it seems to fail on number 4. above.
> Here
> is the actual error message contained within the log:
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
> 2005.xls' is not a valid path. Make sure that the path name is spelled
> correctly and that you are connected to the server on which the file
> resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
>
> Any input/suggestions are greatly appreciated.
> j
> --
> Message posted via http://www.droptable.com|||Ok - here is the StoredProc:
****
CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
"SR_Trapping_Data"'
GO
****
Here is the VB code I am using to fire the SP (which it is firing! But,
the resulting table gets dropped then recreated, and the last step of data
pump is not populating the table. It's empty after the DTS runs).
VB Code:
****
Dim pConn As New ADODB.Connection
pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
"Initial Catalog=; User Id=; Password="
pConn.Open
Dim pDTSCommand As New ADODB.Command
pDTSCommand.ActiveConnection = pConn
pDTSCommand.CommandType = adCmdStoredProc
pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
pDTSCommand.Execute
*****
Thanks for your input!
James
Message posted via http://www.droptable.com|||If you run the sp in query anylyzer, do you have the same outcome?
"j c via droptable.com" <forum@.droptable.com> wrote in message
news:c7fcc5e00f7243d4a2774c44dc1c37d0@.SQ
droptable.com...
> Ok - here is the StoredProc:
> ****
> CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
> EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
> "SR_Trapping_Data"'
> GO
> ****
> Here is the VB code I am using to fire the SP (which it is firing! But,
> the resulting table gets dropped then recreated, and the last step of data
> pump is not populating the table. It's empty after the DTS runs).
> VB Code:
> ****
> Dim pConn As New ADODB.Connection
> pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
> "Initial Catalog=; User Id=; Password="
> pConn.Open
> Dim pDTSCommand As New ADODB.Command
> pDTSCommand.ActiveConnection = pConn
> pDTSCommand.CommandType = adCmdStoredProc
> pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
> pDTSCommand.Execute
> *****
>
> Thanks for your input!
> James
> --
> Message posted via http://www.droptable.com|||Hi Chris,
I ran the following in QueryAnalyzer...
****
EXEC master..xp_cmdshell 'DTSRun /S "MMSQL1" /U "mms" /P "mmspass" /N
"SR_Trapping_DataNoNulls"'
****
This is the actual string used in the StoredProc. The error in QA is:
" Error string: The specified DTS Package ('Name =
'SR_Trapping_DataNoNulls'; ID.VersionID = {[not specified]}.{
[not
specified]}') does not exist. "
After looking in the Data Transformation Services/ Local Packages area, I
can see that it is there. If I "Execute" the DTS package from Enterprise
Manager, there is no problem.
James
Message posted via http://www.droptable.com
when fired with Enterprise Manager. However, I need this package to run
during a run-time process inside my application. So, I have added the exec
params inside a StoredProc -- everything is working as expected. But, the
affected table is not getting populated with the data from the .xls file.
So - I am pretty sure that it's a connection/filepath/user issue. But I am
not sure how to handle this problem. The process goes like this:
1. Drop existing dbo.SR_Traps
2. Create dbo.SR_Traps
3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
4. Data Pump from excel table into dbo.SR_Traps table
Looking at the DTS Package Logs, it seems to fail on number 4. above. Here
is the actual error message contained within the log:
Step Error Source: Microsoft JET Database Engine
Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
2005.xls' is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file
resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Any input/suggestions are greatly appreciated.
j
Message posted via http://www.droptable.comCan you send us the string you think is blowing up?
"j c via droptable.com" <forum@.nospam.droptable.com> wrote in message
news:70ef433752634d96a99ea2a3916fa27a@.SQ
droptable.com...
>I have been trying to schedule a DTS package that executes perfectly fine
> when fired with Enterprise Manager. However, I need this package to run
> during a run-time process inside my application. So, I have added the
> exec
> params inside a StoredProc -- everything is working as expected. But, the
> affected table is not getting populated with the data from the .xls file.
> So - I am pretty sure that it's a connection/filepath/user issue. But I
> am
> not sure how to handle this problem. The process goes like this:
> 1. Drop existing dbo.SR_Traps
> 2. Create dbo.SR_Traps
> 3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
> 4. Data Pump from excel table into dbo.SR_Traps table
> Looking at the DTS Package Logs, it seems to fail on number 4. above.
> Here
> is the actual error message contained within the log:
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
> 2005.xls' is not a valid path. Make sure that the path name is spelled
> correctly and that you are connected to the server on which the file
> resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
>
> Any input/suggestions are greatly appreciated.
> j
> --
> Message posted via http://www.droptable.com|||Ok - here is the StoredProc:
****
CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
"SR_Trapping_Data"'
GO
****
Here is the VB code I am using to fire the SP (which it is firing! But,
the resulting table gets dropped then recreated, and the last step of data
pump is not populating the table. It's empty after the DTS runs).
VB Code:
****
Dim pConn As New ADODB.Connection
pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
"Initial Catalog=; User Id=; Password="
pConn.Open
Dim pDTSCommand As New ADODB.Command
pDTSCommand.ActiveConnection = pConn
pDTSCommand.CommandType = adCmdStoredProc
pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
pDTSCommand.Execute
*****
Thanks for your input!
James
Message posted via http://www.droptable.com|||If you run the sp in query anylyzer, do you have the same outcome?
"j c via droptable.com" <forum@.droptable.com> wrote in message
news:c7fcc5e00f7243d4a2774c44dc1c37d0@.SQ
droptable.com...
> Ok - here is the StoredProc:
> ****
> CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
> EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
> "SR_Trapping_Data"'
> GO
> ****
> Here is the VB code I am using to fire the SP (which it is firing! But,
> the resulting table gets dropped then recreated, and the last step of data
> pump is not populating the table. It's empty after the DTS runs).
> VB Code:
> ****
> Dim pConn As New ADODB.Connection
> pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
> "Initial Catalog=; User Id=; Password="
> pConn.Open
> Dim pDTSCommand As New ADODB.Command
> pDTSCommand.ActiveConnection = pConn
> pDTSCommand.CommandType = adCmdStoredProc
> pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
> pDTSCommand.Execute
> *****
>
> Thanks for your input!
> James
> --
> Message posted via http://www.droptable.com|||Hi Chris,
I ran the following in QueryAnalyzer...
****
EXEC master..xp_cmdshell 'DTSRun /S "MMSQL1" /U "mms" /P "mmspass" /N
"SR_Trapping_DataNoNulls"'
****
This is the actual string used in the StoredProc. The error in QA is:
" Error string: The specified DTS Package ('Name =
'SR_Trapping_DataNoNulls'; ID.VersionID = {[not specified]}.{
[not
specified]}') does not exist. "
After looking in the Data Transformation Services/ Local Packages area, I
can see that it is there. If I "Execute" the DTS package from Enterprise
Manager, there is no problem.
James
Message posted via http://www.droptable.com
DTS in Sproc help....
I have been trying to schedule a DTS package that executes perfectly fine
when fired with Enterprise Manager. However, I need this package to run
during a run-time process inside my application. So, I have added the exec
params inside a StoredProc -- everything is working as expected. But, the
affected table is not getting populated with the data from the .xls file.
So - I am pretty sure that it's a connection/filepath/user issue. But I am
not sure how to handle this problem. The process goes like this:
1. Drop existing dbo.SR_Traps
2. Create dbo.SR_Traps
3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
4. Data Pump from excel table into dbo.SR_Traps table
Looking at the DTS Package Logs, it seems to fail on number 4. above. Here
is the actual error message contained within the log:
Step Error Source: Microsoft JET Database Engine
Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
2005.xls' is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file
resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Any input/suggestions are greatly appreciated.
j
--
Message posted via http://www.sqlmonster.comCan you send us the string you think is blowing up?
"j c via SQLMonster.com" <forum@.nospam.SQLMonster.com> wrote in message
news:70ef433752634d96a99ea2a3916fa27a@.SQLMonster.com...
>I have been trying to schedule a DTS package that executes perfectly fine
> when fired with Enterprise Manager. However, I need this package to run
> during a run-time process inside my application. So, I have added the
> exec
> params inside a StoredProc -- everything is working as expected. But, the
> affected table is not getting populated with the data from the .xls file.
> So - I am pretty sure that it's a connection/filepath/user issue. But I
> am
> not sure how to handle this problem. The process goes like this:
> 1. Drop existing dbo.SR_Traps
> 2. Create dbo.SR_Traps
> 3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
> 4. Data Pump from excel table into dbo.SR_Traps table
> Looking at the DTS Package Logs, it seems to fail on number 4. above.
> Here
> is the actual error message contained within the log:
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
> 2005.xls' is not a valid path. Make sure that the path name is spelled
> correctly and that you are connected to the server on which the file
> resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
>
> Any input/suggestions are greatly appreciated.
> j
> --
> Message posted via http://www.sqlmonster.com|||Ok - here is the StoredProc:
****
CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
"SR_Trapping_Data"'
GO
****
Here is the VB code I am using to fire the SP (which it is firing! But,
the resulting table gets dropped then recreated, and the last step of data
pump is not populating the table. It's empty after the DTS runs).
VB Code:
****
Dim pConn As New ADODB.Connection
pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
"Initial Catalog=; User Id=; Password="
pConn.Open
Dim pDTSCommand As New ADODB.Command
pDTSCommand.ActiveConnection = pConn
pDTSCommand.CommandType = adCmdStoredProc
pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
pDTSCommand.Execute
*****
Thanks for your input!
James
--
Message posted via http://www.sqlmonster.com|||If you run the sp in query anylyzer, do you have the same outcome?
"j c via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:c7fcc5e00f7243d4a2774c44dc1c37d0@.SQLMonster.com...
> Ok - here is the StoredProc:
> ****
> CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
> EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
> "SR_Trapping_Data"'
> GO
> ****
> Here is the VB code I am using to fire the SP (which it is firing! But,
> the resulting table gets dropped then recreated, and the last step of data
> pump is not populating the table. It's empty after the DTS runs).
> VB Code:
> ****
> Dim pConn As New ADODB.Connection
> pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
> "Initial Catalog=; User Id=; Password="
> pConn.Open
> Dim pDTSCommand As New ADODB.Command
> pDTSCommand.ActiveConnection = pConn
> pDTSCommand.CommandType = adCmdStoredProc
> pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
> pDTSCommand.Execute
> *****
>
> Thanks for your input!
> James
> --
> Message posted via http://www.sqlmonster.com|||Hi Chris,
I ran the following in QueryAnalyzer...
****
EXEC master..xp_cmdshell 'DTSRun /S "MMSQL1" /U "mms" /P "mmspass" /N
"SR_Trapping_DataNoNulls"'
****
This is the actual string used in the StoredProc. The error in QA is:
" Error string: The specified DTS Package ('Name ='SR_Trapping_DataNoNulls'; ID.VersionID = {[not specified]}.{[not
specified]}') does not exist. "
After looking in the Data Transformation Services/ Local Packages area, I
can see that it is there. If I "Execute" the DTS package from Enterprise
Manager, there is no problem.
James
--
Message posted via http://www.sqlmonster.com
when fired with Enterprise Manager. However, I need this package to run
during a run-time process inside my application. So, I have added the exec
params inside a StoredProc -- everything is working as expected. But, the
affected table is not getting populated with the data from the .xls file.
So - I am pretty sure that it's a connection/filepath/user issue. But I am
not sure how to handle this problem. The process goes like this:
1. Drop existing dbo.SR_Traps
2. Create dbo.SR_Traps
3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
4. Data Pump from excel table into dbo.SR_Traps table
Looking at the DTS Package Logs, it seems to fail on number 4. above. Here
is the actual error message contained within the log:
Step Error Source: Microsoft JET Database Engine
Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
2005.xls' is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file
resides.
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:5003044
Any input/suggestions are greatly appreciated.
j
--
Message posted via http://www.sqlmonster.comCan you send us the string you think is blowing up?
"j c via SQLMonster.com" <forum@.nospam.SQLMonster.com> wrote in message
news:70ef433752634d96a99ea2a3916fa27a@.SQLMonster.com...
>I have been trying to schedule a DTS package that executes perfectly fine
> when fired with Enterprise Manager. However, I need this package to run
> during a run-time process inside my application. So, I have added the
> exec
> params inside a StoredProc -- everything is working as expected. But, the
> affected table is not getting populated with the data from the .xls file.
> So - I am pretty sure that it's a connection/filepath/user issue. But I
> am
> not sure how to handle this problem. The process goes like this:
> 1. Drop existing dbo.SR_Traps
> 2. Create dbo.SR_Traps
> 3. Connect to H:\Shared\Monitoring 2005 Data\S.R. Data Prep. 2005.xls
> 4. Data Pump from excel table into dbo.SR_Traps table
> Looking at the DTS Package Logs, it seems to fail on number 4. above.
> Here
> is the actual error message contained within the log:
> Step Error Source: Microsoft JET Database Engine
> Step Error Description:'H:\Shared\Monitoring 2005 Data\S.R. Data Prep.
> 2005.xls' is not a valid path. Make sure that the path name is spelled
> correctly and that you are connected to the server on which the file
> resides.
> Step Error code: 80004005
> Step Error Help File:
> Step Error Help Context ID:5003044
>
> Any input/suggestions are greatly appreciated.
> j
> --
> Message posted via http://www.sqlmonster.com|||Ok - here is the StoredProc:
****
CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
"SR_Trapping_Data"'
GO
****
Here is the VB code I am using to fire the SP (which it is firing! But,
the resulting table gets dropped then recreated, and the last step of data
pump is not populating the table. It's empty after the DTS runs).
VB Code:
****
Dim pConn As New ADODB.Connection
pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
"Initial Catalog=; User Id=; Password="
pConn.Open
Dim pDTSCommand As New ADODB.Command
pDTSCommand.ActiveConnection = pConn
pDTSCommand.CommandType = adCmdStoredProc
pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
pDTSCommand.Execute
*****
Thanks for your input!
James
--
Message posted via http://www.sqlmonster.com|||If you run the sp in query anylyzer, do you have the same outcome?
"j c via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:c7fcc5e00f7243d4a2774c44dc1c37d0@.SQLMonster.com...
> Ok - here is the StoredProc:
> ****
> CREATE PROCEDURE AO_EXESRTrapLocsDTS AS
> EXEC master..xp_cmdshell 'DTSRun /S "server" /U "user" /P "password" /N
> "SR_Trapping_Data"'
> GO
> ****
> Here is the VB code I am using to fire the SP (which it is firing! But,
> the resulting table gets dropped then recreated, and the last step of data
> pump is not populating the table. It's empty after the DTS runs).
> VB Code:
> ****
> Dim pConn As New ADODB.Connection
> pConn = "Provider=SQLOLEDB.1; Data Source=;" & _
> "Initial Catalog=; User Id=; Password="
> pConn.Open
> Dim pDTSCommand As New ADODB.Command
> pDTSCommand.ActiveConnection = pConn
> pDTSCommand.CommandType = adCmdStoredProc
> pDTSCommand.CommandText = "AO_EXESRTrapLocsDTS"
> pDTSCommand.Execute
> *****
>
> Thanks for your input!
> James
> --
> Message posted via http://www.sqlmonster.com|||Hi Chris,
I ran the following in QueryAnalyzer...
****
EXEC master..xp_cmdshell 'DTSRun /S "MMSQL1" /U "mms" /P "mmspass" /N
"SR_Trapping_DataNoNulls"'
****
This is the actual string used in the StoredProc. The error in QA is:
" Error string: The specified DTS Package ('Name ='SR_Trapping_DataNoNulls'; ID.VersionID = {[not specified]}.{[not
specified]}') does not exist. "
After looking in the Data Transformation Services/ Local Packages area, I
can see that it is there. If I "Execute" the DTS package from Enterprise
Manager, there is no problem.
James
--
Message posted via http://www.sqlmonster.com
Subscribe to:
Posts (Atom)