Handle SQL Server Agent in Web Application
Hi,
I have asp.net web application with SQL Server as back end. I have some SQL jobs to handle the transactions. Now the requirement is i need to handle the Agent from the front end.
We can use SMO object for that. But as a newer can you guide me what are the challneges or problems create in this approach. Or any guidlines for correct approach. My scenarios are
1. Can create jobs, shedule the jobs, and set alerts from the front end
2. I need to show the Job execution history in the page
3. I need to show the activity monitor in the page
4. I need rerun the job when it is shown as failed from the page
Also give guidlines to backup the history log so that i can clear the history after some duration
In order to use SMO, you'll need to either install the prerequisite assebmlies. This can be done by installing the SQL Server Client tools SDK from the SQL Server installation media or the SQL Server Shared Management Objects msi from the SQL Server
feature pack. Alternatively, as cmille19 suggested, you can simply call the SQL Agent procs directly from you code. SMO simply calls stored procs under the covers (both documented and undocumented ones) to implement job management functionality.
Dan Guzman, SQL Server MVP, http://www.dbdelta.com
Similar Messages
-
Best way to push change data from sql server to windows/web application
i apologized that i do not know should i ask this question in this forum or not.
i have win apps which will load all data initially from db and display through grid but from the next time when any data will change in db or any data will be inserted newly in db then only change or newly inserted data need to be pushed from db side to
my win apps. now only sql dependency class is coming to my mind but there is a problem regarding sql dependency class that it notify client but do not say which data is updated or inserted.
so i am looking for best guidance and easy way to achieve my task. what will be the best way to push data from sql server to win or web client.
there is two issue
1) how to determine data change or data insert. i guess that can be handle by trigger
2) next tough part is how very easily push those data from sql server end to win apps end.
so looking for expert guide. thanksHello,
Yes, you can create DML trigger on INSERT and UPDATE to get the changed data into a temp table. And then query the temp table from application.
If you are use SQL Server 2008 or later version, you can also try to use
Change data capture, which
can track insert, update, and delete activity that is applied to a SQL Server table and store the changed values on the Change Table.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
SQL Server 2012 license Web Application for Public
Hi,
We have ASP.NET application and planned to host public accessible. So All public users can see my web application, then share the link via twitter,facebook and Linkedin.
Can You suggest me which licensing model is best for me like, SQL 2012 Standard With CAL model or Core Licensing model.
Thanks,
ThangarajYou can call Microsoft 1-800-426-9400 Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to discuss licensing.
Kalman Toth Database & OLAP Architect
SELECT Query Video Tutorial 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Content repository FD does not exist :user agent sap web application server
Hi All
i am using 3rd party software(dms SERVER) and connecting it using archive link interface SAP HTTP 4.5 AL
i have created a new repository with name FD using tcode OAC0.when i give inputs in OACO and click on test connection it gives me information Content repository FD does not exist
here is my HTTP trace at receiver content server side
TRACE:(5) - GET /Default.aspx?serverInfo&pVersion=0045&contRep=FD HTTP/1.0
TRACE:(5) - user-agent: SAP Web Application Server (1.0;700)
TRACE:(5) - host: SERVERIP:PORT
TRACE:(5) - accept-encoding: gzip
TRACE:(5) -
--> C05 --> S06 ==== (15.583) Request <GET /Default.aspx?serverInfo&pVersion=0045&contRep=FD HTTP/1.0>
--> C05 --> S06 GET /Default.aspx?serverInfo&pVersion=0045&contRep=FD HTTP/1.0
--> C05 --> S06 user-agent: SAP Web Application Server (1.0;700)
--> C05 --> S06 host: SERVERIP:PORT
--> C05 --> S06 accept-encoding: gzip
--> C05 --> S06 ==== Body 0 bytes
--> C05 --> S06 Body =>
Sockets 6 of 4,5,6 need checking ####
TRACE:(6) - HTTP/1.1 200 OK
TRACE:(6) - Cache-Control: private
TRACE:(6) - Content-Length: 189
TRACE:(6) - Content-Type: text/plain; charset=utf-8
TRACE:(6) - Server: Microsoft-IIS/7.5
TRACE:(6) - X-AspNet-Version: 2.0.50727
TRACE:(6) - boundary:
TRACE:(6) - X-dateC: 2010-10-22
TRACE:(6) - X-timeC: 07:07:23
TRACE:(6) - X-dateM: 2010-10-22
TRACE:(6) - X-timeM: 07:07:23
TRACE:(6) - X-contentRep: FD
TRACE:(6) - X-numberComps: 1
TRACE:(6) - X-docId: 0
TRACE:(6) - X-docStatus: online
TRACE:(6) - X-pVersion: 0045
TRACE:(6) - X-ContentServer: contentServer=Server ip;contentServerPort='9025;pVersion='0045';id='DMSSRV1'
TRACE:(6) - X-Powered-By: ASP.NET
TRACE:(6) - Date: Fri, 22 Oct 2010 13:37:23 GMT
TRACE:(6) - Connection: close
TRACE:(6) -
TRACE:(6) - serverType='DMSSRV1';1;serverVersion=12;serverPatch=0;serverBuild=180;pVersion='0045';serverStatus=running;serverStatusDescription=;serverDate='2010-10-22';serverTime='07:07:23';startUpDate='2010-10-22';startUpTime='07:07:23';lastAccessDate='2010-10-22';lastAccessTime='07:07:23';contRep='FD';contRepStatus=defined;contRepStatusDescription=;contRepDescription=Content-Repository Test;contentStorageHost=localhost;contentStorageName=FD;secKeyVerification=y;defaultDocProt=rucd;
one change which i have observed in this trace is .. this trace is showing trace agent as SAP Web application server ... ideally it should show user agent :SAP HTTP
Please suggest me some solution.
Thanks
sandeepDear all,
my issue is resolved.I solved my issue myself
solution: SAP sends HTTP request in the form of URL like
http://serverip:port/GET /Default.aspx?serverInfo&pVersion=0045&contRep=FD HTTP/1.0
Now your response should contain string contRep="FD"
dont forget double quotes on repository name coz SAP program matches string with double quotes. if you will return value like this contRep=FD
this will through error.
Thanks
sandeep sharma -
I have a web application developed through VS 2012 which has a button on a form that when operated starts a SQL Server agent job on the server that runs an SSIS package. The website and the instance of SQL Server with the agent and SSIS package are
on the same windows 2008 r2 server. When the button is operated no exceptions are raised but the SSIS package did not execute.
When I look in the logfileviewer at the job history of the sql server agent job I see that the job failed with message...
The job failed. Unable to determine if the owner (DOMAINNAME\userid) of job runWebDevSmall has server access (reason: Could not obtain information about Windows NT group/user 'DOMAINNAME\userid'<c/> error code 0x6e. [SQLSTATE 42000] (Error 15404)).,00:00:00,0,0,,,,0
...even though DOMAINNAME\userid is in the logins for the sql server and has admin authorities.
Could someone show me what I need to do to get this to run? Thanks tonnes in advance for any help, RoscoeThis can happen when the network is too slow to allow a timely completion of the verification. Or the account running has no such right.
I suggest you try using the SA account for the job as it does not require to poll the AD.
Arthur My Blog -
Received an error in SQL Server Agent and none of the Job executed as per schedules and attaching a screen shot of the Error Message while expanding the Job Folder under SQL Server Agent. Additionally, need to find the RCA for this issue to avoid the re-occurrence.
Pls share your experience if any such issue which you have faced earlier.
As usual, after re-starting the Windows Server the issue got fixed and no RCA captured. Please let me know how to drill down and find out the RCA for this issue.Hi,
the exact issue what i had is as in below URL.
https://connect.microsoft.com/SQLServer/feedback/details/243790/sql-server-agent-exception-in-the-tsql-subsystem-agent-hangs-unresponsive
And in the another reference URL i can feel that could be the solution but not able to identify the exact Root Cause.
http://mssqlwiki.com/sqlwiki/sql-server-agent/sql-agent-maxworkerthreads-and-agent-subsystem/
Additionally, attaching the Application Log event details for further Analysis in HTML format.
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:22:09.000000000Z" />
<EventRecordID>10509692</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:52:09 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:22:09.000000000Z" />
<EventRecordID>10509690</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:52:00 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:22:00.000000000Z" />
<EventRecordID>10509678</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:52:00 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:22:00.000000000Z" />
<EventRecordID>10509676</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:52:00 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:22:00.000000000Z" />
<EventRecordID>10509674</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:51:13 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:21:13.000000000Z" />
<EventRecordID>10509652</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:51:13 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:21:13.000000000Z" />
<EventRecordID>10509650</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:51:13 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:21:13.000000000Z" />
<EventRecordID>10509648</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:46:09 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:16:09.000000000Z" />
<EventRecordID>10509545</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:46:09 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:16:09.000000000Z" />
<EventRecordID>10509543</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:46:09 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:16:09.000000000Z" />
<EventRecordID>10509541</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:46:03 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:16:03.000000000Z" />
<EventRecordID>10509529</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:46:03 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:16:03.000000000Z" />
<EventRecordID>10509527</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:46:03 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:16:03.000000000Z" />
<EventRecordID>10509525</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:44:46 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] CheckServiceAlive: Service is dead
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:14:46.000000000Z" />
<EventRecordID>10509513</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] CheckServiceAlive: Service is dead
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-26 4:44:46 AM
Event ID: 53
Task Category: (5)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 53 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
[sqagtres] SvcStop: service did not stop; giving up.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="16384">53</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T23:14:46.000000000Z" />
<EventRecordID>10509511</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>[sqagtres] SvcStop: service did not stop; giving up.
</Data>
<Binary>35000040010000000A00000042004C005500530051004C00410043004300000000000000</Binary>
</EventData>
</Event>
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: 2014-10-26 4:01:10 AM
Event ID: 1530
Task Category: None
Level: Warning
Keywords:
User: SYSTEM
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.
DETAIL -
1 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-1216:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-1216\Printers\DevModePerUser
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1530</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T22:31:10.210213900Z" />
<EventRecordID>10508265</EventRecordID>
<Correlation />
<Execution ProcessID="924" ThreadID="12052" />
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData Name="EVENT_HIVE_LEAK">
<Data Name="Detail">1 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-1216:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-1216\Printers\DevModePerUser
</Data>
</EventData>
</Event>
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: 2014-10-26 3:37:38 AM
Event ID: 1530
Task Category: None
Level: Warning
Keywords:
User: SYSTEM
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.
DETAIL -
1 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-1434:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-1434\Printers\DevModePerUser
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1530</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T22:07:38.056728700Z" />
<EventRecordID>10507688</EventRecordID>
<Correlation />
<Execution ProcessID="924" ThreadID="12052" />
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData Name="EVENT_HIVE_LEAK">
<Data Name="Detail">1 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-1434:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-1434\Printers\DevModePerUser
</Data>
</EventData>
</Event>
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: 2014-10-26 3:12:07 AM
Event ID: 1530
Task Category: None
Level: Warning
Keywords:
User: SYSTEM
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.
DETAIL -
1 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-1434:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-1434\Printers\DevModePerUser
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1530</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T21:42:07.367675100Z" />
<EventRecordID>10507058</EventRecordID>
<Correlation />
<Execution ProcessID="924" ThreadID="18292" />
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData Name="EVENT_HIVE_LEAK">
<Data Name="Detail">1 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-1434:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-1434\Printers\DevModePerUser
</Data>
</EventData>
</Event>
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: 2014-10-26 12:59:12 AM
Event ID: 1530
Task Category: None
Level: Warning
Keywords:
User: SYSTEM
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.
DETAIL -
3 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-500:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-500
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-500\Printers\DevModePerUser
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-500\Software\Microsoft\Windows NT\CurrentVersion\Windows
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1530</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T19:29:12.118229900Z" />
<EventRecordID>10503856</EventRecordID>
<Correlation />
<Execution ProcessID="924" ThreadID="17644" />
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData Name="EVENT_HIVE_LEAK">
<Data Name="Detail">3 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-500:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-500
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-500\Printers\DevModePerUser
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-500\Software\Microsoft\Windows NT\CurrentVersion\Windows
</Data>
</EventData>
</Event>
Log Name: Application
Source: Application Error
Date: 2014-10-25 11:10:49 PM
Event ID: 1000
Task Category: Application Crashing Events
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
Faulting application name: mmc.exe, version: 6.1.7600.16385, time stamp: 0x4a5bc808
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x0000000000000000
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T17:40:49.000000000Z" />
<EventRecordID>10501239</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>mmc.exe</Data>
<Data>6.1.7600.16385</Data>
<Data>4a5bc808</Data>
<Data>unknown</Data>
<Data>0.0.0.0</Data>
<Data>00000000</Data>
<Data>c0000005</Data>
<Data>0000000000000000</Data>
</EventData>
</Event>
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: 2014-10-25 11:09:59 PM
Event ID: 1530
Task Category: None
Level: Warning
Keywords:
User: SYSTEM
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.
DETAIL -
1 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-1434:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-1434\Printers\DevModePerUser
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1530</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T17:39:59.818023100Z" />
<EventRecordID>10501214</EventRecordID>
<Correlation />
<Execution ProcessID="924" ThreadID="6232" />
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData Name="EVENT_HIVE_LEAK">
<Data Name="Detail">1 user registry handles leaked from \Registry\User\S-1-5-21-771433644-1862610895-1113058290-1434:
Process 1004 (\Device\HarddiskVolume3\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-771433644-1862610895-1113058290-1434\Printers\DevModePerUser
</Data>
</EventData>
</Event>
Log Name: Application
Source: SQLSERVERAGENT
Date: 2014-10-25 7:15:00 PM
Event ID: 209
Task Category: (3)
Level: Error
Keywords: Classic
User: N/A
Computer: GSGLOBAL-CN07.GSGLOBAL.local
Description:
The description for Event ID 209 from source SQLSERVERAGENT cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
1
Copy_ESHOP_GBR_GT
0x4644461009F9A840BEC1F3FE774C400A
TSQL
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SQLSERVERAGENT" />
<EventID Qualifiers="49152">209</EventID>
<Level>2</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-10-25T13:45:00.000000000Z" />
<EventRecordID>10495566</EventRecordID>
<Channel>Application</Channel>
<Computer>GSGLOBAL-CN07.GSGLOBAL.local</Computer>
<Security />
</System>
<EventData>
<Data>1</Data>
<Data>Copy_ESHOP_GBR_GT</Data>
<Data>0x4644461009F9A840BEC1F3FE774C400A</Data>
<Data>TSQL</Data>
</EventData>
</Event>
I could not able to attach as Application Event Log file instead just pasted the detailed content of the log details otherwise that would be easier to analyse.
Thanks,
Mohanraj -
Reporting Services 2012 for SharePoint and SQL Server Agent "Subscriptions and Alerts"
After installing Reporting Services for SharePoint (Denali) in my test farm, I'm trying to configure the "SQL Server Agent" access for Reporting Services. From Central Admin I'm going to the Reporting Service applicaiton configuration screen and selecting
"Provision Subscriptions and Alerts". I've tried both options on this screen. I've manually executed the "download sql script" in SQL Server, as well as entering a user with SQL sys admin rights on the SQL server into the login fields on the screen.
The role and permissions have been created for the application pool service account, but Reporting Services is still trying to connect with the annonymous login because I'm getting the following alert each time I open the "Provision Subscriptions and Alerts"
screen:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
The "status" on the screen still shows "SQL Server Agent State cannot be determined". Has anyone else seen this?
Thanks!!Thanks for your reply!
1) Looks like the new Reporting Services does not run as a Windows Service so it's not listed in the "Configure Service Accounts" pulldown. As a result, I don't see how to set the service account. It's only assigned to an application pool.
I installed it into an existing application pool and that application pool "is" in the list and has a domain service account already assigned.
2) Which users need to be in here in order to configure the "Provision Subscriptions and Alerts" screen? I already have the farm admin account which is the account I use when running Central Admin.
3) As mentioned in #1, I've installed Reporting Services into an existing application pool with other service apps.
4) This link is for Reporting Services 2008 R2 which is very different install process. But I did follow the SQL Server Reporting Services 2012 RC0 installation instructions and the Reporting Services is functioning correctly with no errors.
I'm just not able to configure the sceduling the alerting with interfaces with the SQL Server Agent.
Thanks! -
Unable to view SQL Server Agent while logged in as user
Hello Everyone,
I have granted SQLAgentUserRole permission to one of the user and using enterprise edition of SSMS. still user is not able to view SQL Server Agent. Any help will be greatly appriciated.There is no Enterprise Edition of SSMS. There is SSMS Basic and SSMS Complete. Prior to 2012 sp1, only SSMS Basic were available with Express Edition - but as of 2012 sp1 Expredd also offers SSMS Complete. SSMS Complete is selected bu default when you install
SSMS (unless you are prior to 2012 sp1 and are using Express, of course).
However, even SSMS Basic *should* show Agent assuming you have permissions for that. This is hearsay, but from trusted sources. Here is what to do:
Check what is installed for the machine from where you are running SSMS. You can do that using SQL Server Installation Center - see this blog post: http://sqlblog.com/blogs/tibor_karaszi/archive/2011/02/10/what-does-this-express-edition-look-like-anyhow.aspx
(towards the end).
On that machine try both this problematic account as well as an account which is sysadmin. Does the sysadmin account see Agent? If so, you know permissions aren't granted properly. If not, then you know the tool is the problme.
Also try the problematic account from a machine where you know you see Agent normally. Again, this will help you assess whether the problem is the tool (SSMS) or permissions for the account.
Tibor Karaszi, SQL Server MVP |
web | blog -
I've seen some conflicting things in terms of dynamic Excel commands running in a SSISDB Package and a scheduled SQL Server Agent Job...things like that it's not supported...that it won't work...etc...
It's a pretty simple script...to open up a .xlsx file and save it as a .xls file. I am trying to be proactive here and the reason I did it this way is because I could not source the .xlsx file and then I couldn't use OLE DB sourcing because I think the .xlsx
file wants you to use Microsoft.ACE.OLEDB.12.0 and that entails installing the 64-bit Microsoft Access Database Engine and I cannot do that because our network version of Microsoft Office 2010 is 32-bit and in order to install the 64-bit Microsoft Access Database
Engine 2010 it's prompting me to uninstall Microsoft Office 2010 and that is not possible.
Ugh!
So I'm hoping that I can promote and deploy this current SSIS Package to Production and create a SQL Server Agent Job that will successfully run this and its dynamic Excel commands.
Do you know of any hurdles with this? Any anomalies...struggles...
Thanks for your review and am hopeful for a reply.
Here's the C# Script...which works perfectly client side...
string StrFileName = (Dts.Variables["User::FileName"].Value.ToString());
StrFileName = Path.GetFileNameWithoutExtension(StrFileName);
string StringSourceFile = (Dts.Variables["User::FilePath"].Value.ToString()) + StrFileName + ".xlsx";
string StringDestinationFile = (Dts.Variables["User::FilePath"].Value.ToString()) + StrFileName + ".xls";
// This initiates the Excel Application
Microsoft.Office.Interop.Excel.Application excelApplication = new Microsoft.Office.Interop.Excel.Application();
// This Opens the Source .xlsx File from Emdeon ePaySmart
Workbook workbook = excelApplication.Workbooks.Open(StringSourceFile, XlUpdateLinks.xlUpdateLinksNever, true, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
// This will Save the Source .xlsx Emdeon ePaySmart File as a .xls File...note xlFileFormat.xlExcel5
workbook.SaveAs(StringDestinationFile, XlFileFormat.xlExcel8, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
// This will Close the Source
workbook.Close(false, Type.Missing, Type.Missing);
// This shuts down the Excel Application
excelApplication.Quit();This should work if you use a proxy to run this package in the Agent; see:
http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
Arthur
MyBlog
Twitter -
SSIS package fails under SQL Server Agent job
Hi All
I have designed a SSIS package to encrypt a file using Cipher (EFS) it works fine from BIDS & Package Execution Utility.
But SQL Server Agent job is failing to do this. I am getting the error as
" In executing C:\Windows\System32\Cipher.exe /e /a C:\Test.txt at "",The Process Exit code was 1 while the expected was 0."
Please help me.
ThanksTwo things that usually come to mind when this happens from BIDS locally to the SQL Agent are
1. Security is not
adequate under the SQL Agent Service Account
Rule the security problem out by setting up a proxy account that you know ahs security to run the needed tasks in the package. Either that or give the service account the permissions needed.
2. 32bit BIDS development and running under a 64bit Platform in your SSIS installation
This can be fixed by selecting run in 32bit more or running the package with the 32bit installed version of DTEXEC found in the Program Files (x86) folder where you installed tools.
Next, setup logging in the package so you get a more detailed error message. Event handlers on the tasks will be much more detailed using the OnError event. you can write that to either a flat file with a data flow in the event handler or simply
insert the event into a table using the ? as the parms. If you need assistance setting that up, here are basic steps for a SQL Server table
1) Select the task and click the event handler tab in BIDS
2) Select OnError event handler in the list
3) Click the enable link and drag a Execute TSQL Task over to the window
4) Create a table in your SQL Server database (create one so you don't litter your user DBs if needed)
5) Open the task and add the connection as needed. Then add this statement
INSERT INTO dbo.TableYouCreated
(PackageName, SourceName, EventInfo)
VALUES (?,?,?)
6) Go to parameter mappings and add 4 new mappings as following
System::PackageName
Input
nvarchar
0
System::SourceName
Input
nvarchar
1
System::ErrorDescription
Input
nvarchar
2
Save and reimport the package and then the event of the errors should insert into the table in detail
Ted Krueger
Blog on lessthandot.com @onpnt on twitter -
Hi All,
I have started receiving this error in the logs for the last 10 days and the Schedules Jobs for the database have stopped running. My MS CRM application is working fine.
Can anyone guide me what could be the problem.
Date 17/4/2014 2:04:20 PM
Log SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
Message
[298] SQLServer Error: 10061,
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct
and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001]
Date 17/4/2014 2:11:55 PM
Log SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
Message
[298] SQLServer Error: 10061,
A network-related or instance-specific error
has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
see SQL Server Books Online. [SQLSTATE 08001]
Date 7/4/2014 11:00:31 AM
Log SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
Message
[298] SQLServer Error: 10061,
A network-related or instance-specific error
has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
see SQL Server Books Online. [SQLSTATE 08001]Check this link
http://social.msdn.microsoft.com/Forums/en-US/906da9b5-2482-468c-a424-ae099da2d96b/sql-server-agent-service-account-error?forum=sqlsetupandupgrade
Regards, RSingh -
SQL Server Agent and OpenDataSource failing
I have a stored procedure that is using an OpenDataSource query to export data from SQL Server into a excel file for download. I’ve installed the “Microsoft Access database engine 2010”, and can see it listed in SQL Server Management Studio under Server
Objects > Linked Servers > Providers > Microsoft.ACE.OLEDB.12.0.
If I manually run the stored procedure (when logged in as the OS’s administrator), the stored procedure runs fine, and the export is completed successfully.
The stored procedure is set up to be run periodically by a SQL Server Agent job.
However, if I start the SQL Server Agent job (when logged in as the OS’s administrator), the job fails with the following error message:
Executed as user: NT SERVICE\SQLSERVERAGENT. Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)". [SQLSTATE 42000] (Error 7303) OLE DB provider "Microsoft.ACE.OLEDB.12.0"
for linked server "(null)" returned message "Unspecified error". [SQLSTATE 01000] (Error 7412). The step failed.
I have given the “NT SERVICE\SQLSERVERAGENT” user full control permissions on the destination directory where the export file resides (note that it starts out as an empty file just with the column headers defined).
I’ve applied the following configuration settings to SQL Server:
sp_configure 'show advanced options', 1;
RECONFIGURE;
GO
sp_configure 'Ad Hoc Distributed Queries', 1;
RECONFIGURE;
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1
GO
What am I missing? Can anyone shed any light on what might be causing the failure?
This is running on SQL Server Web Edition 2012 on Windows Server 2012 Standard.
Thanks!Hi JonathanT1,
First, I want to inform that, if SQL Server Agent log on account is “NT SERVICE\SQLSERVERAGENT”, we need to grant read and write permission to the destination folder to this account (you have done). From the following message:
Executed as user: NT SERVICE\SQLSERVERAGENT
It seems that you filled “NT SERVICE\SQLSERVERAGENT” in job step properties, “Run as user” option. I suggest changing it to another account who is in SQLAgentUserRole, SQLAgentReaderRole or SQLAgentOperatorRole. For more detail information, you can refer
to the following link:
Create a Transact-SQL Job Step
http://technet.microsoft.com/en-us/library/ms187910.aspx
SQL Server Agent Fixed Database Roles
http://technet.microsoft.com/en-us/library/ms188283.aspx
Allen Li
TechNet Community Support -
500 Internal Server Error BEx Web Application
Hello,
can everybody help for the fault, or had the same error ?
500 Internal Server Error
BEx Web Application
Failed to process request; contact your system administrator
Error Summary
Exception occured while processing the current request; this exception cannot be handled by the application or framework
If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
Root Cause
The initial exception that caused the request to fail was:
Cannot get connection for 60 seconds. Possible reasons: 1) Connections are cached within SystemThread(can be any server service or any code invoked within SystemThread in the SAP J2EE Engine), 2) The pool size of adapter "SAPFactory" is not enough according to the current load of the system or 3) The specified time to wait for connection is not enough according to the pool size and current load of the system. In case 1) the solution is to check for cached connections using the Connector Service list-conns command, in case 2) to increase the size of the pool and in case 3) to increase the time to wait for connection property. In case of application thread, there is an automatic mechanism which detects unclosed connections and unfinished transactions.
Log ID 0014C265209B005B000007300000610A000473C4612CBCB9
thanksHi,
I am getting similar kind of error.Can you please tell me how you resolved the issue.
Regards,
Priyanka -
So I was using dynamic Excel commands to open and save as using...
Microsoft.Office.Interop.Excel.Application
and
workbook.SaveAs(StringDestinationFile, XlFileFormat.xlExcel8, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
which worked all fine and dandy client side. Then when I attempted to create a SQL Server Agent Job, this failed as a result of SQL Server side not being able to execute dynamic Excel commands.
So do I need to therefore try and do this function via Microsoft.ACE.OLEDB.12.0 commands? And where can I find the commands and syntax to open and save as? I have to Open a .xlsx file, save it as a .xls file, and then open this newly created .xls file and
then save it as a .csv file.
Thanks for your review and am hopeful for a reply.
ITBobbyP85I think you might be over complicating things.
You can use SSIS with Excel Source/Destination connections to read in, or output to an excel sheet/file. -
Run the SSIS Package using sql server Agent--Memory utilization Problem
Hi,
I have Created one SSIS Package it was working fine in BIDS but in SQL Server Agent it takes all the server memory and server gets very slow now.
in that ssis package i am using merge join,sorting tasks.Can you please suggest me how to handle in the memory usage for this..pls refer the below screenHi aravindhrm,
You can enable BufferSizeTuning logging event on the Data Flow Task to get how many rows in buffer. Or you can use Performance Counter to obtain more details about the buffers.
http://microsoft-ssis.blogspot.com/2013/04/performance-best-practice-more-rows-per.html
http://www.sql-server-performance.com/2009/ssis-an-inside-view-part-3/
Then, you can tweak the DefaultBufferMaxRows and DefaultBufferMaxSize size settings.
Besides, you can also go through the blog mentioned by Visakh and try suggestions such as increase OS pagefile size.
Regards,
Mike Yin
TechNet Community Support
Maybe you are looking for
-
I am beginner to sun one studio and sun one application server
How can i access a cmp from a jsp page. in sun one application server. thanx in advance
-
Update Tariff Number,Export Control List and Grouping in /sapsll/product_02
Hi Experts, I am trying to update/change Tariff Number(CCNGN) in Classification tab and Legal Regulation(LGREG) and Grouping(CONGR) in Legal Control tab. Can i use class : /SAPSLL/CL_PR for updating the above fields? In class /SAPSLL/CL_PR - in any
-
I just started making an iWeb site recently, but I've stopped way before it's finished. I really love the software, but I'm worried about the file sizes (photos). The welcome page is really slow to load, and the photo on there is apparently a png. I'
-
Standalone Shared services console
Hi, We have installed Foundation services in EPM 11.1.2.3 version. When we try to open the shared services URL using http://<servername>:19000/interop/index.jsp, the Workspace login page is getting opened. My question is - is it not possible to open
-
Which one is efficient???
I have a text file with huge data. I need to generate Oracle report from this file. I have two options... 1. Creating External table and query the data from external table 2. Directly accessing data from text file. Which one is efficient? Thank you,