Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





SQL Server Agent Fails The Job While Executing The Package


H!

Very critical!!!! some body help..

I am execute paakge correctly from my local machine through Agent and Command line. but when i try to execute in another server it fails. I am invoking and executing as an administrator. when i run through the command prompt or as an individual pacakge in file system it works fine.

I am exceuting the package with Protection level Don'tSaveAsSensitive.

I also want to know a way to fine out what the error is exactly.not just the View History. If i set the logging for the package where do i view them???

Thanks,

Jas

 




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Executing SSIS Package Through SQL Server Agent Fails
Hello,

I try to run a job from SQL Server Agent to execute an SSIS package, but it always fails. However, if I execute the SSIS package directly, it will succeed.

The SQL Agent Job History shows "Unable to start execution of step 1 (reason: Error authenticating proxy DB1DB1_CREDENTIAL, system error: Logon failure: unknown user name or bad password.).  The step failed."

P.S. DB1 is my server name, DB1_CREDENTIAL is the account creating the credential

The SQL Server Agent Error Log shows "[298] SQLServer Error: 22046, Impersonation error. [SQLSTATE 42000]"


I've created an account on OS and assigned it to a credential.
Then, I created a proxy with the credential and then created the SQL Server Agent job with that proxy.

P.S. My SSIS package protection level is created as "Rely on server storage and roles for access control", because if it is set as "Do not save any sensitive data", package execution will fail even I run it directly.

How can I successfully run SSIS package from SQL Server Agent?
Do I lose any setting steps?

Thanks for help.

Lilia

View Replies !   View Related
Executing SSIS Package From Agent Fails
Hi,
 
I have an SSIS package that utilises a 3rd party ftp program to transfer files (over HTTPS). This software stores details in the users profile relating to addresses, user names and password for transfers. As this is the case the Package needs to be executed by the domain user who has the details set in their profile. The package needs to be executed at a scheduled interval - so I have set up an Agent job to do this, and have the the 'Run As' setting, as a proxy which maps to the required domain user.
 
The package works fine when executing manually when the required user is logged in. If, however, the user is not logged in - ie when the job kicks off at the schecduled time, the file transfer fails. On debugging I can see that the agent job does not load the user's profile -but instead uses the 'Default User' profile.
 
The job owner is set as the same domain user that the Run As setting for the step is set. The SQL Server Agent services runs as a different Domain user.
 
Has anyone else had similar problems - Are there any extra permissions I need to set?
 
cheers..

View Replies !   View Related
Package Fails When I Use ODBC Connection (Fails On SQL Server Agent, OK In Visual Studio)
I did a small package with only one ODBC connection (Merant 3.70 32-Bit Progess).  This package runs well in Visual Studio and fails when runs by SQL Server Agent.

Configuration:

SQL Server Agent on a 32Bit server. 

The ODBC connection configuration in available on System DSN on this server.

The user of Server Agent have full access (Admin).

Connect Manager Provider: ".Net ProvidersOdbc Data Provider"

SQL Server version: 9.0.3042

 

Error Message:

Executed as user: TEKCON cadmin. ...ion 9.00.3042.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  16:50:33  Error: 2007-06-11 16:50:33.62     Code: 0xC0047062     Source: Data Flow Task DataReader Source [1]     Description: System.Data.Odbc.OdbcException: ERROR [HYC00] [MERANT][ODBC PROGRESS driver]Optional feature not implemented.  ERROR [HY000] [MERANT][ODBC PROGRESS driver]msgOpen: unable to open message file: PROMSGS  ERROR [IM006] [MERANT][ODBC PROGRESS driver]Driver's SQLSetConnectAttr failed.  ERROR [HYC00] [MERANT][ODBC PROGRESS driver]Optional feature not implemented.  ERROR [HY000] [MERANT][ODBC PROGRESS driver]msgOpen: unable to open message file: PROMSGS  ERROR [IM006] [MERANT][ODBC PROGRESS driver]Driver's SQLSetConnectAttr failed.     at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)     at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcCon...  The package execution fa...  The step failed.


I created a .bat file with this instruction and It's run well:

dtexec /f "C:Program FilesMicrosoft SQL Server90DTSPackagesIntegration Services Project estcom.dtsx"
pause

Why it's not running with SQL Server Agent???

View Replies !   View Related
Package Fails When Run Under SQL Server Agent
Hi,

I have a SSIS package that I developed using Business Intelligence Development Studio. I imported it into our SQL Server database and it runs fine (when I connect to Integration Services within SQL Server Management Studio, and run the package). But when I created a SQL Server Agent job comprising 1 step, to run this package, it fails. The failing step attempts to read data from a MS Access 2000 DB into SQL Server 2005.

I added logging to the package, and got the following error logged to the Event Viewer:
"The AcquireConnection method call to the connection manager "CurrentYearPCStats" failed with error code 0xC0202009."

I then created a new Operating System (CmdExec) step, calling DTEXEC with the command line copied from that generated by the SSIS step. The command line is:
"C:Program FilesMicrosoft SQL Server90DTSBinnDTEXEC.EXE" /SQL "AFAReductionAFA Reduction Integration" /SERVER <ourservername> /MAXCONCURRENT " -1 " /CHECKPOINTING OFF

This failed with the same error in the Event Viewer, but for some reason also produced a meaningful error in the SQL Server Agent job's View History:
Description: An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft JET Database Engine"  Hresult: 0x80004005  Description: "The Microsoft Jet database engine cannot open the file '\<anotherservername>PCStatsliveCurrData.mdb'.  It is already opened exclusively by another user, or you need permission to view its data."

Please note that the SQL Server Agent runs using user id sqlservice, by default, and I have amended this user's Windows account to make it a Domain Admin.

Please let me know why I might get this error, when the package runs OK on its own.

Many thanks,
Keith.

View Replies !   View Related
Executing SSIS Package Using Jobs In SQL Server Agent Infinite Loop
I'm trying to execute my package using schedule in SQL Server Agent, I've already tested my package by run it manually in Integration services and it works. The table created, the data from my flat file also inserted into the table correctly and the result return with success.
 
The question is why when I execute my package using SQL Server Agent, the  SQL Server Agent keep executing my package like infinite loop until I stop the job. after I stop the job there is no error generated by sql server. Could you figured why this happen?? I've already tried to upgrade into SP2 and set the package protection level and still not get good result from it. thank you.

View Replies !   View Related
Scheduling SSIS Package From SQL Server Agent Job Fails.
 

HI,
 
I am having a strange error coming in SQL server 2005.
 
I had a DTS package developed in SQl server 2000. Then i had migrated that DTS package to SSIS package using Execute DTS 2000 package. The conversion is successfull.
 
Then when i manullt execute this package it runs successfully without giving any error.
But then wheh i schedule a SQL server agent job for the same above SSIS package it fails giving me some cryptographic error as follows:
 
Message
Executed as user: CATOS-CGDBTUW02SYSTEM. ....3042.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  11:00:00 PM  Error: 2008-02-20 23:00:00.66     Code: 0xC0016016     Source:       Description: Failed to decrypt protected XML node "PackagePassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.  End Error  Error: 2008-02-20 23:00:00.66     Code: 0xC0016016     Source:       Description: Failed to decrypt protected XML node "SQLPassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.  End Error  Error: 2008-02-20 23:00:01.00     Code: 0x00000000     Source: Execute DTS 2000 Package T...  The package execution fa...  The step failed.
 
Not sure why is this happening.
 
Manually running the SSIS package from Visual studio does not gives error, but the same SSIS package when is been schedule from SQL server 2005's SQL server agent job it fails giving above error.
 
Please help me out how to rectify whith this.
 
Thanks.. in advance
 
Regards,
Ashok
 

View Replies !   View Related
SQL Server Agent Fails SSIS Package Execution At The End.
I have an SSIS ETL Package that runs perfectly in debugger.
 
It is saved to the local SQL Server using "rely on server security".
 
The SQL Server Agent job runs at night and the job fails right at the last step.  It is actually loading the data, because I write a record with row counts to an audit table, and they are successfully incrementing.
 
The real issue to me is that it is failing randomly, sometimes it will run 7 times then fail once, others it will go 2 or 3 days then fail.   The job runs at the same time every night, and takes within a minute or two variance.
 
I've looked at the logs, and done a trace, and I can't seem to find anything that would cause the failure.  The closest thing to an error is a join parameter note in the trace that's on tthe MSDB database.

Not a lot to work with, I know... but does anybody have any advice for me?  Thank you in advance!

View Replies !   View Related
DTS Package Error Executing In SQL Agent
Hi everyone,

I just got assigned to help out with a couple of problems with the running of DTS packages using the SQL Server Agent, this is the problem and a list of what I've done so far:

There are 4 packages that:

a) Deletes all records from a table and then populates it using a flat file that contains that day's transactions.

b) Creates a report in Excel

c) Creates a summary report in Excel

d) Does a), b) and c) for another table.

All these packages are scheduled to run weekdays starting at 8:00 am, and they were owned by sa. Last month we had a massive change of passwords thanks to an audit and unfortunately the dba left without letting us know that password. After the massive change, these packages started failing with errors like:

The job failed. The Job was invoked by Schedule 18 (DLYINVDT_XLS). The last step to run was step 1 (DLYINVDT_XLS).

The job failed. The Job was invoked by Schedule 22 (AGAR830_dts). The last step to run was step 1 (AGAR830_dts)


Yesterday I went into all the packages and changed the connection properties from user sa to another user that has permission over the tables and ran the 4 of them at least 10 times each, both using my personal laptop and directly in the server (just wanted to check remote and local, even though I know it really has nothing to do with the execution that its always local to the server).

Now, the funny thing is that I came in this morning and guess what..... yeap, the packages failed, I can run them manually with NO problem at all, but if I run them using the SQL Server Agent then they just will not run.

At the time I was writing this I found out the password for sa, so now I'm using it but unfortunately no change, the errors now are :

The job failed. The Job was invoked by User sa. The last step to run was step 1 (AGAR830_dts)


I'm an informix dba and I started training myself in sql a couple of months ago so I'm confortable with what I'm doing, but at this point in time I'm about to throw something to the screen :) Since I can execute the packages manually then the users are happy, but I would really like to find out why the Agent is not working right.

Any help will be GREATLY appreciated

Luis Torres

View Replies !   View Related
SSIS Package Fails While Executing
 

While executiing an SSIS package i get the follwoing error:
 
Executed as user: <User>. Microsoft (R) SQL Server Execute Package Utility  Version 9.00.3042.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  11:00:00 PM  Error: 2008-03-06 23:00:01.02     Code: 0x00000000     Source: Execute DTS 2000 Package Task      Description: System.Runtime.InteropServices.COMException (0x80040427): Execution was canceled by user.     at DTS.PackageClass.Execute()     at Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask.ExecuteThread()  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  11:00:00 PM  Finished: 11:00:01 PM  Elapsed:  0.859 seconds.  The package execution failed.  The step failed.

 
The SSIS package contains one "Execute DTS 2000 package" which is written in SQL server 2000. The DTS written in SQL server 2000 and then i made the SSIS package for the same to be executed as "Execute DTS 2000 package" BUt the package execution fails.

 
I have seen some workaround also for same where it was saying to install some dll files for SQL server 2000 Meta data services. SQL server 200 meta data services is required for running DTS packages in SQL server 2005 server.
 
I installed that also but still the same error.
 
I have done all but all in vain.
Your help will be very helpfull since this is the production issues.
 
Thanks,
Ashok

View Replies !   View Related
SSIS Package Fails In SQL Agent
Okay, I see that dozens of posters have this problem, but none of the threads has a solution:  Why does an SSIS package run perfectly fine in VS and in Integration Services, but fail with no details in SQL Agent?  Is there another way to have an SSIS package run regularly?

Thanks.

View Replies !   View Related
SSIS Package Fails From SQL Agent Job
Hi,
I created a SSIS Package and now i want to run this package from SQL Agent Job. I set up the job and when i run it, it failed

Job Properties:
Type: SQL Server Integration Services Package
Run As: SQL Agnet Service Account
Package Source: File System
Package: \pc17917c$Documents and Settingskdesai1DesktopSSISTest1Test1Package.dtsx

Error i got when i execute the job.

Description: Fauiled to decrypt protected XML node "PassWord" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2008-03-12 10:50:54.48 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2008-03-12 10:50:55.07 Code: 0xC0048006 Source: Drop Table ActiveX Script Task ... The package execution fa... The step failed.


I'm new to the SQL 2005 SSIS. Can you please help resolve this problem?

Thanks,
KD

View Replies !   View Related
SSIS Package Scheduled In SQL Agent Fails On Occasion
I have one SSIS package that fails on occasion.  And I can then run this in the job by itself after it fails and it runs fine. Any ideas? Any ideas on what is causing this.  It is not every day but about once a week lately but it just happened again today to this is 2nd time in 4 days this has happened. It is always on this same part in the SSIS that it fails when it does fail.  4 times in last 2 weeks.
 
This step it is on here has a OLE DB -  DB2 source and SQL server as destination. It does a couple data conversion, derived columns and then just copies the data from the db2 table to the sql server table.
 
 
Message
Executed as user: PERFORMANCEstacyadmin. Microsoft (R) SQL Server Execute Package Utility  Version 9.00.3042.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  6:06:12 AM  Error: 2008-05-13 06:09:22.84     Code: 0xC0202071     Source: Copy SalesTender Retail TmpSalesTenderRetail [97]     Description: Unable to prepare the SSIS bulk insert for data insertion.  End Error  Error: 2008-05-13 06:09:23.42     Code: 0xC004701A     Source: Copy SalesTender Retail DTS.Pipeline     Description: component "TmpSalesTenderRetail" (97) failed the pre-execute phase and returned error code 0xC0202071.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  6:06:12 AM  Finished: 6:09:23 AM  Elapsed:  191.157 seconds.  The package execution failed.  The step failed.


Stacy
 

View Replies !   View Related
Executing VBS File Through Server Agent
I want to execute a vbs file through SQL server agent using following command using operating system command exec .

wscript E:website est.jewelexonline.comReadFile.vbs F:sqlbackDiffljewelexgroupcom,,3

It does not execute and the status remains executing only .
What could be the problem .

View Replies !   View Related
Sql Server Agent Stops Executing Jobs
Hello everyone.  I'm having a problem with the sql server agent occasionally not executing its scheduled jobs, and unless the sql server agent is restarted they will not execute according to their schedule.  I've read many posts on people having problems with running a package manually and then not being able to run it in a job, although that is not my problem since these are jobs that have all run successfully historically, and only until the agent is restarted do they start working again.  It is the strangest thing.....we have many different jobs on this server and all of them will just mysteriously stop being executed.  Two other things of note, the agent and server processes both run on AD accounts, and we receive this error:

 

SQL Server Scheduled Job 'X' - Status: Failed - Invoked on: 2007-10-27 02:00:00 - Message: The job failed.  Unable to determine if the owner (ADadacct) of job 'X' has server access (reason: Unable to connect to server - check SQL Server and SQL Server Agent errorlogs).

 

Any help would be greatly appreciated.
 
 
 

View Replies !   View Related
How To Pass Parent Package Parameters To A Package Executed By SQL Server Job Agent
Hi,

I'd like to know if there's a way to pass parent package parameters to a package executed by SQL Server Job Agent? It appears that sp_start_job doesn't have any variable that could accomodate this.

Hope to hear your ideas.

View Replies !   View Related
Mailing DBA When Sql Server Agent Fails
Hello

I would like to know a script which mails the DBA mail box when the sql server agent fails ( I am working on sql server 2000) using SMTP. I have got SMTP server configured for all my other job failure notifications.

Please let me know any scripts that can be run on the command prompt or any ideas of how I can do it.



Thanks

View Replies !   View Related
Job Fails To Communicate With SQL Server Agent
Hi,

Just need some help on a job issue.

The job in question gives the below mentioned error when run

Error 22022: Unable to post notification to SQL
ServerAgent (reason: OpenFileMapping()returned error
2, 'The system cannot find the file specified')

This seems to have started after I changed the owner for the Agent and MSSQL service from local service to a domain ID.

FYI, I have also changed the job owner from sa to the domain ID and have tried restarting the agent service in the hope that the Job can speak to the agent .. but it doesnt :(

Microsoft suggests to change some registry entries but I am not sure if that'd work
http://support.microsoft.com/default.aspx?scid=kb;en-us;911841&sd=rss&spid=2852

The server on which this job is hosted is a production box .. so am a litle apprehensive about making any registry changes

Any Suggestions ?

Thanks.

Warm Regards,
Ranjit.

View Replies !   View Related
Run Package On Server CPU Is Done Through SQL Agent: How To Set User Variable In Package Then?
Hi,

 

I have packages stored in SQL store. I was letting users run the packages from a .net app that I made with

Microsoft.SqlServer.Dts.Runtime

Now I have noticed this causes the packages to run on the client pc cpu, as well as the network traffic is done via the client pc, in my particular case this is slow.

From the doc and in this forum I have found that you can run a package on the Server cpu through sql agent, let packages be run in a sql job. after that you can start a package from an application with the SQL sp_start_job .

But How do you set a user::varibale in a package if you have to start the package from a sql agent job ?

 

View Replies !   View Related
SQL Server Agent - Steps Succeed But Job Fails
Hello,I have a SQL Server Agent job that has two steps. The job fails when I run it normally, with both steps. However, when I tried to troubleshoot, I ran each step individually, and both succeeded without errors. The first step runs an SSIS package under a proxy. The second is a T-SQL statement that simply runs a stored procedure. (There is no option for "Run As" for the T-SQL statement.) Again, each step runs fine when I run it under SQL Server Agent; also, the SSIS package runs fine when I run it from the file system, and the T-SQL statement completes successfully when I run it as a query.Does anyone have an idea why this is happening? Thanks! 

View Replies !   View Related
SQL Server Agent Fails To Start. Install ?
Two NT accounts have been created on the server.
MSSQLSERVER
MSSQLSERVERAGENT

These accounts have been given:
a. logon rights
b. unchangeable passwords
c. passwords which never expire
d. NT admin rights

Questions:

a. Do I have to create a login account within SQL Server 7 itself for these accounts?
b. Must the properties for "this account' box on the general tab include the domain name?
c. If the answer to (b) is yes, then can I use ".MSSQLSERVERAGENT" in the "this account"
box on the general tab?
d. Does the SQL Server Agent function require the "BUILTINadministrators" login in order
to work?

Any help in figuring out why I can't get my SQL Server Agent to startup will be appreciated!!

View Replies !   View Related
FTP Task Fails - SSIS Scheduled With SQL SERVER AGENT As JOB
Hi,
I have created a SSIS package and tested it in V.Stdio where it runs fine and uploads file on the remote server.

Now I have scheduled it to run as a job in SQL SERVER AGENT as JOB, but it fails when it comes to the upload task?

I am quite sure as it is something with FTP connection string or security, but can't figure it out.

I have simply added the IP/login/password in the connection manager for upload task.

Any help/ guidance would be great.

Thanks,
Ad

View Replies !   View Related
SQL Server Agent Job Fails Because Of Wrong Log Provider Type?
I created a SSIS package which logs to the event log (containing a script task and a file system task). I deployed the package using the manifest utility on a 2003 server. If I run the package using the DTexec utility logged on with a domain user account it works fine but if I use the same domain account as credential for my proxy used to run a job with the SQL Server Agent, the job fails. The log viewer tells me the following:
Started:  13:07:19  Error: 2008-01-10 13:07:19.97     Code: 0xC001403D     Source:       Description: The log provider type "DTS.LogProviderEventLog.1" specified for log provider "SSIS log provider for Windows Event Log" is not recognized as a valid log provider type. This error occurs when an attempt is made to create a log provider for unknown log provider type. Verify the spelling in the log provider type name.  End Error  Error: 2008-01-10 13:07:19.97     Code: 0xC0010018     Source:       Description: Error loading value "<DTS:LogProvider xmlnsTS="www.microsoft.com/SqlServer/Dts"><DTSroperty DTS:Name="ConfigString"></DTSroperty><DTSroperty DTS:Name="DelayValidation">0</DTSroperty><DTSroperty DTS:Name="ObjectName">SSIS log provider for Windows Event Log</DTSrop" from node "DTS:LogProvider".  End Error  Could n...  The package could not be lo...  The step failed.
The job succeeds if I grant the domain account local administrative rights.
What's wrong, who can help? Thanks.

View Replies !   View Related
Executing The Package On Another Server
hi!

I am able to run the pacakge in command line but when i try running the package through agent . The it starts the pacakge it says that it has been started by me local user and fails in next step saying that it has been execute by administrator.

I understand that there is a miss match between the permissions. Cos the SQL server Agent uses my login in but the SQL server agent on the Server that i am trying to execute has the Administrator log in. How to solve the issue?

Thanks in advance

jasmine

 

 

View Replies !   View Related
Default Database Brought Offline SQL Server Agent Job Fails!!!
Hi All,

There is this SQL Server agent job that was calling a SSIS package (uses windows authentication) which was executing fine till the default database for the user was brought ofline, and now the job fails citing authentication failure for the user as the reason.

I have tried pointing master as the Default database for the user and now able to connect to SSMS using the users authentication, but the SQL Agent job wont succeed.

Any pointers ?

View Replies !   View Related
SQL Server Agent And X64 Using OraOLEDB.Oracle.1: Dtexec From Cmd Works, But Job Fails
I am extracting data from an Oracle database and have installed the latest x64 ODAC. When I run the 64 bit dtexec in cmd the package runs fine with no errors, but when creating and executing a SSIS job in the agent it fails. I've tried creating the job using CmdExec as well and I get the same errors:
 
Microsoft (R) SQL Server Execute Package Utility
Version 9.00.3042.00 for 64-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
Started:  11:12:43 AM
Error: 2007-08-15 11:12:45.63
   Code: 0xC0202009
   Source: Load Dimension Data Connection manager "ora"
   Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x800703E6.
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x800703E6  Description: "Invalid access to memory location.".
End Error
Error: 2007-08-15 11:12:45.65
   Code: 0xC020801C
   Source: CopyCustomers CustomerSource [1]
   Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "ora" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
End Error
Error: 2007-08-15 11:12:45.65
 
The CmdExec job step uses the _exact_ same command as the one I execute successfully in cmd:
"c:Program FilesMicrosoft SQL Server90DTSBinnDTExec.exe" /FILE "C:PackagesLoad Dimension Data.dtsx"  /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EW

 
 I have managed to find two work arounds, but they are quite ugly:
 
1) Schedule the package execution using Windows Task Scheduler, basically create a bat file which runs the package.
2) Schedule the package in SQL Server agent, but as T-SQL script and use xp_cmdshell, i.e. EXEC xp_cmdshell 'dtexec /FILE "C:PackagesLoad Dimension Data.dtsx"  /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EW'
 
Both work and use the 64 bit dtexec. Not that elegant though..
 
CmdExec and the 32 bit version of dtexec works, but is not good enough for me since we bought new hardware and 64 bit software just to be able to address more memory. Has anyone managed to execute a SSIS package successfully using the agent and the 64 bit OraOLEDB.Oracle.1?

 
Any help would be greatly appreciated. Thanks!
 
Btw, I am using Windows Server 2003 x64 and SQL Server with SP2.

View Replies !   View Related
Executing SSIS Package In SQL SERVER 2005
Hi, here is my problem :

I want to run ssis package in sql server 2005 agent.
i've made a new JOB with 3 steps ( 3 ssis package)

But when i run the job, i see only 2 "actions step" in the windows :

Start job .....
Execute job ....

I would like to see at least the execution status of every ssis package and if it's possible,
the execution of every task ( to see quickly if there's some error and what's wrong)

What's the best solution to doing that

Thank for helping
BG.

View Replies !   View Related
SQL Server 2000 Standard Edition - Distribution Agent Dieing When Network Connection Fails
Hi,

 
We have replication setup on a sql server 2000. We encountered issue that the distribution agent goes down (distrib.exe stop running) in the event of network connection broken. We would like to know:

is this the expected result that the distribution agent will go down in the event of communication failure between the distribution server and subscriber server?
if not, is there a way to programmatically control and restart the agent?
Is there any sp in SQL server which can monitor the replication communication error message?
is there any sp in SQL server which can be run to restart the agent?
For the best practice, what do you think we can do to achieve an €˜event-driven€™ kind of mechanism so when an communication breaks, the agent can be restarted by the triggered event (or at least a simple way to automatically restart)?

 

Thanks

Bill

View Replies !   View Related
The Device Is Not Ready Error When Executing Package On The Server
Hi,

I have a package which reads an XML file from a certain folder and parses it.

I deployed my package onto the server. Copied XML files on the D: drive the following folder on the server.

Dim reader As New Xml.XmlTextReader("D:AppsRequestClientsClientsStatus.xml") is fine.

But

Do While (reader.Read())

generates "The Device is not ready"

I think it is still trying to read it from my desktop on which I don't have a D drive.

Any help is appreciated.

 

 

 

View Replies !   View Related
Failure When Executing SSIS Package From C# On Machine Different Then SQL Server
Hi everybody,
I'm newby in SSIS. I have been using DTS in SQL 2000.
Trying to learn how to execute SSIS package from C# code of ASP.NET web server.
Here's my case:
1. SSIS package with simple data transformation from one table to CSV is stored in SQL Server 2005 storage
2. CSV is for simplicity placed in C: .txt
3. I haven't used SSIS configuration files
4. Protection level of package = EncryptSensitiveWithUserKey
5. Executes OK from Bussiness inteligence studio
6. I've created console application with this code:
 
...
sqlServeruser = "sa"
...

Package package = app.LoadFromSqlServer("Export_vw_TestConsumerPerson", sqlServer, sqlServerUser, sqlServerPassword, null);  
 DTSExecResult result = package.Execute();
 Console.WriteLine("Package Execution results: {0}",result.ToString());
...

7. When I connect through Remote Desktop Connection I successfully execute this console application on SQL server host machine.
8. When I try execution from computer where I develop package and where I successfully executed it from Bussiness inteligence studio I'm geting    FAILURE was a result
 
Connection params for SQL are same in console application and in SSIS project of Bussiness inteligence studio.
 
Thanks for any hints
 
Sinisa

View Replies !   View Related
Executing (from Sql Server 2000) Procedures From Oracle Package Through Linkserver
Hello,

I deaply need to know how to execute procedures from package in oracle, from sqlserver 2000 using linkserver.

Thank you very much,
Victor
DBA

View Replies !   View Related
Executing Job Through SQL Agent
Hi,

 

I am facing typical issue related to permission after running DTSx package through SQL Server Agent. Jobs is running fine if i loggin with same user privileges on the box i.e. suppose i am running SQL Server Agent Job on ''A'' account privileges by login on the same with ''A'' and running package through Run->Open->C:SSISStrokesRef.dtsx,  using this package runs fine and display no error but when i am trying to execute the same package through Job, it is display me following error

''Executed as user: DomainA. The package could not be loaded.  The step failed.'' and after investigating event viewer i can see below failure audit event,

 

Event Type: Failure Audit
Event Source: Security
Event Category: Object Access
Event ID: 560
Date:  20/07/2007
Time:  09:02:28
User:  DomainA
Computer: ABC
Description:
Object Open:
  Object Server: Security
  Object Type: Key
  Object Name: REGISTRYUSER.DEFAULTSoftwareMicrosoftSystemCertificatesDisallowed
  Handle ID: -
  Operation ID: {0,19851373}
  Process ID: 5852
  Image File Name: C:Program FilesMicrosoft SQL Server90DTSBinnDTExec.exe
  Primary User Name: A

 Primary Domain: Domain

 Primary Logon ID: (0x0,0x12E5666)
  Client User Name: -
  Client Domain: -
  Client Logon ID: -
  Accesses: DELETE
   READ_CONTROL
   WRITE_DAC
   WRITE_OWNER
   Query key value
   Set key value
   Create sub-key
   Enumerate sub-keys
   Notify about changes to keys
   Create Link
   
  Privileges: -
  Restricted Sid Count: 0
  Access Mask: 0xF003F


Please help me in case any one come across such issue

Note: DomainA user has normal user access on the box.

View Replies !   View Related
The SSIS Package Does Not Run Using SQL Server Agent Job
Dear All,

 
I'm using SSIS package to extract text file, and load into SQL Server. I test the SSIS package import manually, it works. Then I'm using SQL Server Agent to set up schedule. According to the log, the job agent work at the scheduled time, yet job agent throw out the error message.

Message1:
The job failed.  The Job was invoked by User sysAdmin.  The last step to run was step 1 (Extract Data).

Message2:
Executed as user: SQLSERVERsysAdmin. The package could not be loaded.  The step failed.

Now I only have 1 step and set up "on success action" then "quite the reporting success".  Any clue? Thanks 

 
will

View Replies !   View Related
SSIS Package - SQL Server Agent
Hi Everyone:

I would like to find out, if there is something I can implement/or should I need to implement to avoid running two concurrent processes of 1 SSIS Package. I mean by default, I will schedule the SSIS package to run utilizing SQL Server Agent. But How I avoid/prevent it to run concurrently or what do I need to setup where I only allow 1 instance of my package to run. Thanks.

 

 

View Replies !   View Related
The SSIS Package Does Not Run Using SQL Server Agent Job
Dear All,

 

 

My SSIS package is "Extract" data from Oracle and Load into SQL Server.

The SSIS package does not run when I call the SSIS package from a SQL Server Agent job step

I have gone through all the steps in the doc http://support.microsoft.com/kb/918760, but it still doesn't work.


Is it because of connection to "Oracle" database? and SQL Server Agent service could not recognise the Authentication information to Oracle?

Why I am saying this is becuase it works if I change the package to "Extract" data only from SQL Server.

Anyone has experience on this problem?

Many Thanks in Advance

 

John

 

View Replies !   View Related
SQL Server Agent Not Finding The Package To Run
Hi, I have been searching through the posts hoping to find an answer to my problem. Most errors and problems seem to deal with Agent not being able to run packages because of permission issues.

My problem has to do with SQL Server Agent not finding the package to run. I have a proxy with a high enough level of permissions (SqlAgentOperatorRole).

The error message I get is:

Executed as user: ___/____. The package could not be found. The step failed.

The package is in a folder on our network. When I create the step I use the browser to go find and select the package. So why does it not find it at runtime? I can run it manually

My group is using 2005 for the first time. Any help you can provide would be very much appreciated.

Ricardo

View Replies !   View Related
Errror Sql Server Package Agent Job
 

I create a package in SSIS and I can run it without any problem in BI studio. However, if I deploy it to a sql agent package and run it thru sql agent job.. I keep getting an error one of lookup transfomation is invalide..
 
I don;t understadn I can run the package in debug mode but why i keep getting an error when I deploy to a sql agent job?

View Replies !   View Related
DTSX Package Will Not Run From SQL Server Agent
When I try to run a DTSX package from SQL server agent, I get this error message:
 
Started:  3:59:42 PM  Error: 2007-08-13 15:59:42.39     Code: 0xC0016016     Source:       Description: Failed to decrypt protected XML node "DTSroperty" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.  End Error  Error: 2007-08-13 16:00:00.98     Code: 0xC001602A     Source: CFASerialNoExport Connection manager "FTP Connection Manager"     Description: An error occurred in the requested FTP operation. Detailed error description: The password was not allowed  .  End Error  Error: 2007-08-13 16:00:00.98     Code: 0xC002918F     Source: FTP Task FTP Task     Description: Unable to connect to FTP server using "FTP Connection Manager".  End Error  DTExec: The packag...  The package execution fa...  The step failed.

 
All my other packages run fine.  This one contains an FTP task and will not run, although it will run if I execute it through the visual studio.

View Replies !   View Related
Error Stating Package Failure While Executing SSIS Package In Standard Edition
Hi,

      I have developed an SSIS package for ETL purpose. I am invoking the SSIS package through .Net console application by referencing the ManagedDTS Assembly. I am able to execute the package in Sql Server 2005  Developer Edition and it runs fine till completion.

But when i try to execute the packahe in Sql Server 2005 Standard edition, by invoking the package  through .Net console application the status of the package is failure.

 Can any one help me how to over come this problem.

 

 

View Replies !   View Related
Passing The Xml Configuration File To The Package As An Input Parameter While Executing The Package
Hi,

I am planning to develop a single package that will download files from ftp server, move the files to internal file server and upload it in the database. But I want to run this package for multiple ftp file providers. For each provider the ftp server might be different and the transformation to upload the files into a database table might be different.

So can I create a single package and then multiple configuration files (xml), which will contain the details fo the ftp file providers and then pass the xml file as a parameter while executing the package. The reason being that the timings of fetching the files is different for each ftp file provider and hence cannot be combined into one.

Is this possible?

Thanks for your help.

$wapnil

View Replies !   View Related
SQL Server Agent Job Step Fails When Creating A SQL Server Integration Serveices Type Of Step
Hi
 
I posted this on the sql server security forums too. Here is the error that i get when i change the type of the step to ssis
 
Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)
Additional information:
An exception occured while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction.(Microsoft SQL Server, Error: 3930)
 
This error pops up right after i change the type of the step to "SQL Server Intergration Services Package"
 
I have made the following configurations:
 
The user group (windows group) that the user belongs has the following roles in msdb :
 
db_dtsadmin
db_dtsltuser
db_dtsoperator
SQLAgentOperatorRole
SQLAgentReaderRole
SQLAgentUserRole
 
i have made a proxy to sql server agent which has the following subsystems :
 
"SQL Server Integration Services Provider" the proxy is tied to the same login which has those SQLagent and dts roles in msdb database.
 
Im using windows authentication and the user that logs into the sql server is in the same group that i have set all of the rights.
 
Ps. Clearly im missing some role or right somewhere because as soon as i give the group sysadmin role then all the users in that group can create SSIS steps in the agent.
 
Ps. Ps. I have been living under the impression that i dont have to give sysadmin rights to people that create ssis packages and schedule then with the agent.

View Replies !   View Related
DTSRun Fails While Executing From COM
Hi,
i wrote a VB function that runs DTS by DTSRUN command, its working fine but when i copy the same code in COM and run it from ASP page and VB it fails to execute.


Function ExeDTSRun(DTSName, mKey As String)
Dim mDTS, spServerName, spUid, spPwd As String

spUid = "sa"
spPwd = "test"
spServerName = "server"


mDTS = "DTSRun /S " & spServerName & " /U " & spUid & " /P " & spPwd & " /N " & DTSName & " /G " & mKey & " /W ""0"""
Shell mDTS, vbNormalFocus
ExeDTSRun = "Successfully Run DTS : " & DTSName
End Function


Regards
Adi

View Replies !   View Related
SQL Agent Executing 32bit Code
There is no SQL Agent forum so if this isn't the correct place please move this post.

Windows 2003 R2 x64 with SQL Server x64.

One of the steps in a SQL job I have setup requires me to run an exe. I can run this exe from the command line or by double-clicking it on this same server but when running it from a SQL job it does not run, the job just has the status 'executing' but does not do anything. I have enabled xp_cmdshell. I have also tried calling a bat file which then runs the exe and I have tried calling the bat file with SysWOW64cmd.exe. Same problem.

It seems to me the the operating system recognises the 32bit exe and runs it in that context but the SQL Agent thread keeps trying to run it as a 64bit exe and hence never gets anywhere. (My best guess)

Is there a way to force SQL job/steps to run an exe or bat file in a 32bit thread? Any other ideas.

Thanks
Scott

View Replies !   View Related
SSIS Package Fails On Another Server
hi !

I was able to run the PAckage successfully under local server. but when i deployed to another server and tried to run it fails.

When i run through the command line in another server -

I also tried running under File system and through Agent

Failed to decrypt protected XML node "PackagePassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.
The configuration file name "D:Program FilesMicrosoft SQL Serv
er90DTSPackagesTahoe Archiving ProjectEnvironment.dtsConfig" is not valid.
Check the configuration file name.

 
 It does not execute the pacakge itself
 
When i run the package from my machine it executes the pacakge but fails at the end saying
The configuration file name "D:Program FilesMicrosoft SQL Serv
er90DTSPackagesTahoe Archiving ProjectEnvironment.dtsConfig" is not valid.
Check the configuration file name.
 
Any help!!
 
Thanks,
Jasmine
 

View Replies !   View Related
Running A Dtsx Package As A SQL Server Agent Job
I get the following error:

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "'I:MyFolderMyRptsMyApplicationMyDatabase.mdb' 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.".

The above path "I:...." is mapped on the server that SQL Server is running on.

This package runs with NO problems in MS Visual Studio.

View Replies !   View Related
Execute SSIS Package Using SQl Server Agent
Hi

I hv created a new Job for my SSIS Package... but when i start the job manually it gives me this error below:

"Executed as User:localhost/SYSTEM. THe package could not be loaded.the Step Failed".

i have my package deployed in Storage Packages[MSDB]...

Could you help me on this....

THanks!

Karthik

View Replies !   View Related
SSIS Package Vs SQL Server Agent Jobs
Hello All,
My database application has certain stored procedures which are scheduled to run at certain predefined interval (say once everyday). Now to implement this logic I have two options with me, first being to use the EXECUTE SQL TASK of the SSIS package and schedule it using the windows scheduler and the other is to use the SQL Server Agent Jobs and schedule it there itself. Now the current implementation is using the SSIS packages and I even know that the second approach of using the SQL Server Agents Job is better.
The only thing I want to know is whether it makes sense to invest time in converting my SSIS packages (20 in all) to SQL Server Agent jobs or not. Can somebody briefly explain or give some pointers regarding the performance benefits of Agent Jobs over the SSIS packages.

Thanks in Advance
Mitesh

View Replies !   View Related
Calling SQL Server Agent JOB From A SSIS Package
Hello

do ne one know how to call a SQL SERVER agent job from a SSIS package?

regards,

Anas

View Replies !   View Related
SSIS Package Works, But Not In SQL Server Agent Job
I have a problem running an SSIS package in a SQL Server job. The package runs fine if I run it from the MSDB location, but if I try to run the job it fails. The job is set to Run as: SQL Agent Service Account. The SQL Service Agent service runs as a domain user SQLExec. I have logged in as this user and run the SSIS package and it runs fine, but if I create a job with only this step it fails. There isn't much information about where there is a problem. Any ideas or ways to troubleshoot this problem would be very much appreciated.

Thanks, john

View Replies !   View Related
Forcing A Package To Run As 32 Bit On A X64 Machine Using SQL Server Agent?
I have a need to force a package to run using the 32-bit runtime from the SQL Server Agent. The machine is a x64 unit. I'm having to use an ODBC driver to extract data from our ERP package that will only run in 32 bit. Any help would be appreciated.

View Replies !   View Related
Package Execution With SQL Server Agent Or DTEXEC
 

Hello,

I want execute package with SQL Server Agent. I create a job and I try all the solutions : my job doesn't want to work.

I success to launch the package but the execution failed.

I try the same job launching from the server : it doesn't work either.

So, I copy the command line (/FILE, /DTS or /SQL) and with DTEXEC utility it works when this command is executed on the server (on a client computer, the problem "the product level is insufficient" appears).

 

Why is it working with this utility and not with a job ?

I try to change every secured option (credential --> proxy --> Run as ; change the owner of the job ; etc.)

What options must be checked and modified ?

 

Thanks for your help !

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved