Using the SQL Server Agent for the first time
I have set up several jobs to run automatically throughout the day. Each job just does one thing: executes an SSIS package.
The packages themselves run perfect when I test them in Visual Studio 2005, but when the SQL Server Agent tries to run the job I am getting failed jobs.
Is there any tutorials or walkthroughs that can teach my about using the SQL Server Agent? If I wanted extensive help troubleshooting my SQL Server Agent problems which part of the message boards would I post that too?
Thanks for the info!
Anyone?
I really need some resources for SQL Server Agent 2005.
Refer these links,
http://technet.microsoft.com/en-us/library/ms141701(v=sql.90).aspx
http://stackoverflow.com/questions/10489392/permissions-issue-running-ssis-package-from-sql-job
Regards, RSingh
Similar Messages
-
While i am trying to start the sql server agent job getting the error
Hi,
when ever i am trying to executing the sql server agent job's through manual that time i am getting the below error.Hi,
when ever i am trying to executing the sql server agent job's through manual that time i am getting the below error.
I searched net for this type of error and found that Latest SP can fix this issue.See below link
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/12181324-bc51-41a5-a8a5-608bfe2725e9/could-not-load-type-smoagentjobbasecollection?forum=sqlsmoanddmo
Can you also refer to this link
http://www.sqldbadiaries.com/2010/12/20/could-not-load-file-or-assembly-error-while-using-tdp-makes-a-come-back/
Also please see this connect also
http://connect.microsoft.com/SQLServer/feedback/details/280907/sql-agent-job-actions-fail-from-job-activity-monitor
hope this helps
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Using MS SQL Server 2000 for WLCS 3.50 DB
I'm using WebLogic 6.0sp1 with Commerce Server 3.5 and I've successfully
installed the demo. I would like to create another commerce server
installation, this time using Microsoft SQL Server 2000 as the database
instead of Cloudscape. I've downloaded and installed the BEA jDriver
for MS SQL 7/2000 and tested it using dbping. My question is: where are
the db scripts for creating and populating the commerce database? I've
found the WLCS_320_DB_DDL_1.1.zip file on the BEA downloads site, but
I'm concerned that this schema is for Version 3.20 of Commerce Server.
Is there a similar file for WLCS 3.50? If not, is it safe to use this
one?
If this is posted in the wrong place, please let me know and I'll repost
to the appropriate newsgroup as required.
Sincerely,
Michael SchulzHi Michael,
At this time SQL Server 2000 is not certified for WLCS 3.5. Since the
schema has changed between 3.2 and 3.5, running the 3.2 scripts is not a
good idea.
I can tell you that certification is in progress for SQL Server 2000. Your
best bet is to contact your Sales Representative to get an idea of when
certification might be coming.
I hope this helps.
- Ginny
"Michael Schulz" <[email protected]> wrote in message
news:[email protected]..
I'm using WebLogic 6.0sp1 with Commerce Server 3.5 and I've successfully
installed the demo. I would like to create another commerce server
installation, this time using Microsoft SQL Server 2000 as the database
instead of Cloudscape. I've downloaded and installed the BEA jDriver
for MS SQL 7/2000 and tested it using dbping. My question is: where are
the db scripts for creating and populating the commerce database? I've
found the WLCS_320_DB_DDL_1.1.zip file on the BEA downloads site, but
I'm concerned that this schema is for Version 3.20 of Commerce Server.
Is there a similar file for WLCS 3.50? If not, is it safe to use this
one?
If this is posted in the wrong place, please let me know and I'll repost
to the appropriate newsgroup as required.
Sincerely,
Michael Schulz -
SQL Server Agent Job Scheduler- Set time less than 10 seconds
Hi,
Could any one please let me know how to change the SQL server agent Job scheduler time to less than 10 secs?
I wan to schedule a SSIS package run for every 5 secs.
Thanks..Be careful, it is a bad idea to blindly just issue a new package run without knowing whether the previous package ended.
It may lead to locking/dead-locking.
Now re the Agent: the seconds are not exposed at all, why you say 10?
But, there is a way, not through the UI, explained there:http://stackoverflow.com/questions/5569415/is-there-a-way-to-set-a-sql-server-job-scheduled-to-run-every-30-seconds + http://www.sqlservercentral.com/articles/Administration/sqlserverjobscheduling/2288/
PS you can have it every sec
Arthur My Blog -
SCOM 2012 Installation does not show the SQL Server Instance for reporting services
I have an issue when I try to install SCOM 2012 with the Reporting Server feature, so in the step that I have to select a SQL Server Instance I cannot do that, because as you can see in the picture no one option appears.
In my scenario I have a DCSERVER, SQLSERVER2008 R2, SCCMSERVER 2012 and in other server I are trying to install SCOM 2012. I are trying to use the same SQLSERVER to SCOM 2012.
Should I do other procedure on SQL Server before to continue? I will apreciate someone could say me what I need to do to resolve this issue.
Regards,
Paul Mendoza.Hi Paul
Can you confirm that SQL Reporting Services is installed on the server that you are doing the install.
For a lab environment where you have SCOM Management Server, Web Server on one server and SQL Server on another you need to:
- run setup on the SCOM Server and choose NOT to install reporting. The install here will create the OperationsManager database and OperationsManagerDW (reporting) database.
- run setup on the SQL Server where SQL Reporting Services is installed. Then choose to install reporting. You should then see the SQL Reporting Services instance on the above window which is blank in your screenshot.
Take note of the warning in that window - SCOM uses its own role based security within SQL Reporting Services and this can break other reporting. E.g. you can't install SCOM and SCSM reporting (SQL RS component) together.
Cheers
Graham
New SCOM 2012 Blog! - http://www.systemcentersolutions.com/blog/
View OpsMgr tips and tricks at
http://systemcentersolutions.wordpress.com/ -
Want to change the SQL Server Agent Job History Text Files Location
We have SQL Server 2014 installed on a couple servers, but they were not consistent on directory paths during the installs. I am trying to get the servers to all match.
On one server, SQL Server the Agent Log and Job History files were being written to [H:\Data Root Directory\MSSQL12.MSSQLSERVER\MSSQL\Log].
I want to change that to [H:\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log] to match the other server.
I have ALREADY gone into SSMS - [SQL Server Agent] - [Properties] and changed the "Error Log " "Fle Name" to [H:\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log\SQLAGENT.OUT]. And that is working great.
In [SQL Server Configuration Manager] - [SQL Server (MSSQLSERVER)] - [Properties] - Startup Parameters entries have been changed to the new path (-d, -e, and -l), and under [Advanced] both Data Path and Dump Directory are pointing to the new path.
In [SQL Server Configuration Manager] - [SQL Server Agent (MSSQLSERVER)] - [Properties] - [Advanced] Dump Directory is pointing to the new path.
However, the job's History text files are still being written to the old path.
There is no setting in the Jobs or the Maintenance Plans that controls the history file location.
I have searched the registry and changed three settings from the old path to the new path. The registry does NOT contain any more references to the old path.
I rebooted the server, but when the jobs run their history text files are still be written to the old path.
Does anybody have any ideas?? ThanksI checked the [Job] - [Step] - [Advanced ] - "Output File", and the field is blank.
I then reviewed all the tabs and left menu items in the Job...I cannot find any where the references the old path.
I then went to the Maintenance Plan and checked every thing there. Still cannot find what is referencing this old path.
SQL Server is also still writing xel files to this old path...if that offers any clues.
The text file being generated is the recap of the Job run. Starts with this:
Microsoft(R) Server Maintenance Utility (Unicode) Version 12.0.2430
Report was generated on "xxxxxxxxxxxxxxx".
Maintenance Plan: SQL_Backups_Log
Duration: 00:00:03
Status: Succeeded.
Details:
Thanks for the ideas.... -
Sql Server Script for the List of all Country State and City
I am searching for the Sql Server Script of all country State and City with the Following type
For the Country only 2 Columns are there i.e. CountryId and CountryName(CountryId is primary Key)
For the State 3 Columns are there i.e. CountryId, StateId and StateName(StateId is Primary Key and CountryId is Foreign Key)
For the City 3 Columns are there i.e. StateId ,CityId and CityName(CityId is PrimaryKey and StateId is foreign Key).
I need this type of Script with Column name. plzzz help me out i m stuck i didnt get the list as i want.
Thanx and Regrads,Hi Vishnu,
According to your description, you want to list all countries, states and cities, right?
I have tested it on my local environment, here is a sample script for you reference.
select
[dbo].[Country].[CountryId]
, [dbo].[Country].[CountryName]
, [dbo].[State].[StateId]
, [dbo].[State].[StateName]
, [dbo].[City].[CityId]
, [dbo].[City].[CityName]
from
[dbo].[Country]
left join [dbo].[State] on [dbo].[Country].[CountryId]=[dbo].[State].[CountryId]
left join [dbo].[City] on [dbo].[State].[StateId]=[dbo].[City].[StateId]
Regards,
Charlie Liao
TechNet Community Support -
DBACOCKPIT uses MS SQL Server Agent service?
Hello
I am trying to make backup from DBACOCKPIT to a netowrk location.
If i go to MS SQL SERVER AGENT and define log on by a domain user i get the error
"Executed as user: GOLDENFOODS\kkoulis. Must declare the scalar variable "@location1". [SQLSTATE 42000] (Error 137) "
anybody can help with the solution?
thxHello
Yes i have created it to the location which you mention and it works fine.
After if i go to SAP at the transaction DBACOCKPIT and try to run a FULL or LOG backup there, i have the following error:
SQL Job information ******************************
Jobname: SAP CCMS Log Backup of GDW [20110802094537-2-094537]
Type: TSQL
DB-Name: GDW
For Run: 20110802 09:45:37
Job history information *****************************
Stepname: CCMS-step 1
Command: declare @exeStmt nvarchar(2000) exec gdw.sap_backup_databases @dbList=
"GDW",@r3Db="GDW",@bDev="@FisticLOG2",@expDays= 27,@jobName= "SAP CCMS
Log Backup of GDW [20110802094537-2-094537]",@bkupChecksum="N",@bkupC
ompress="N",@bkupType="L",@nativeBkup="N",@exeDate = "20110802094537",
@bkupSim = "N",@format = 0,@init = 0,@bkupDb = "GDW",@unload = 0,@exeS
tmt = @exeStmt OUTPUT
Status: (failure)
Message: 2528
Severity: 15
Duration: 0 hours(s) 0 min(s) 0 sec(s)
Last msg: Executed as user: GOLDENFOODS\kkoulis. Must declare the scalar variabl
e "@FisticLOG2". [SQLSTATE 42000] (Error 137) Incorrect syntax near t
he keyword 'with'. If this statement is a common table expression, an
xmlnamespaces clause or a change tracking context clause, the previous
statement must be terminated with a semicolon. [SQLSTATE 42000] (Erro
r 319) DBCC execution completed. If DBCC printed error messages, cont
act your system administrator. [SQLSTATE 01000] (Error 2528). The ste
p failed.
<----
End of Job Step History -
>
thx in advance -
JOB in Sql Server Agent should run multiple times.
Hi Guys,
I have a ETL SSIS job in Sql Server Agent, Which should run multiple times.
1. For Example : I scheduled a job at 10:00 PM, If the job fails at 10:00 PM it should run automatically again at 10:10 PM, if the job fails again at 10:10 PM then the job should run at 10:40 PM.
If the job gets success at first attempt i.e 10:00 PM, then it should not run at 10:10 PM.
Note : The time difference between jobs is 10 minutes and 30 minutes. And i know that we can run the job at regular intervals.
Thanks in advanceJust add retry attempts to whatever number you want (2 as per your original explanation) in Job step properties as below
Have a logic to include a delay of 10 mins . You can make use of WAITFOR function for that
see
http://www.mssqltips.com/sqlservertip/1423/create-delays-in-sql-server-processes-to-mimic-user-input/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Should I monitor the SQL Server tempdb for user activity?
I am currently auditing all databases on SQL Server 2008 R2 for specific events ( database accounts related activity) . I get alot of events generated for
tempdb. I am monitoring the following events 47, 102, 103, 104, 105, 108, 109, 110, 111, 113, 117, 130, 170, 171, 173, 176 is what I am monitoring.
Do I need to monitor tempdb or is it alright to exclude the
tempdb?
Thanks in advance.What is your tempdb configuration? Is it located on separated physical drives? Are you observing bottleneck on tempdb?
--user sessions that are
--allocating internal objects, including currently active tasks
SELECT
t1.session_id,
(t1.internal_objects_alloc_page_count + task_alloc) as allocated,
(t1.internal_objects_dealloc_page_count + task_dealloc) as
deallocated
from sys.dm_db_session_space_usage as t1,
(select session_id,
sum(internal_objects_alloc_page_count)
as task_alloc,
sum (internal_objects_dealloc_page_count) as
task_dealloc
from sys.dm_db_task_space_usage group by session_id) as t2
where t1.session_id = t2.session_id and t1.session_id >50
order by allocated DESC
the allocation bottleneck is caused
when allocation structures are accessed
by concurrent threads in conflicting modes.
Since the database id of TempDB is 2,
the search argument ‘2.%’ represents any page
in TempDB across any file. If this page happens
to be GAM, SGAM or PFS, it will represent allocation bottleneck.
Note, in a concurrent application, some blocking is expected so
you will need to baseline the allocation waits when your
application is performing normally.
Only when the waits exceed the baseline significantly,
it signals that you are incurring allocation bottleneck.
select session_id, wait_duration_ms, resource_description
from sys.dm_os_waiting_tasks
where wait_type like 'PAGE%LATCH_%' and
resource_description like '2:%'
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Where can I find the SQL Server Gateway for 816 and beyond?
All,
What CD is used to install the SQLServer Gateway?
Any info would be great. Thanks.If you are talking about SQL Server Transparent Gateway, you
need to buy it separate and it costs around $15K.
It does not come with the standard enterprise edition. -
Why's the SQL format different for the same report on different PCs?
I have 2 PCs running the same version of Crystal Reports (11.0.0.1994) using an identically configured system DSN with the exact same driver. When I view the SQL that CR is using on PC 1, part of it looks like this:
" FROM {oj (("PUB"."LOQEstimate" "LOQEstimate1" LEFT OUTER JOIN "PUB"."LOQComponent" "LOQComponent1" ON ("LOQEstimate1"."Estimate-ID"="LOQComponent1"."Estimate-ID") AND"
On PC 2 it looks like this:
"FROM "PUB"."LOQEstimate" "LOQEstimate1", "PUB"."LOQComponent" "LOQComponent1", "PUB"."CustContact" "CustContact1", "PUB"."LOQSegment" "LOQSegment1"
WHERE"
It's the exact same report. Can someone tell me why the SQL is different?
TIA for the help.Thanks for the reply, Patrick. Here are the answers you requested:
1. Verify you are indeed using the same driver, and they are of the same version
The driver on both PCs is the Progress OpenEdge 10.1A driver. The file is pgoe1021.dll, version 05.10.0037.
2. Verify if you have the same database client install on both computer.
Both use prowin32.exe, v10.1.1.1326
If everything is the same, then it might be a registry key, and in this case, can you provide the following information:
1. What database are you connecting to? ( Oracle, DB2, ... )
Progress OpenEdge 10 RDMS (/community [original link is broken])
2. What is the version of the database?
10.1A
3. What is the version of the database client?
v10.1.1.1326
4. How are you connecting to your database? ( Native, ODBC, OLEDB,... )
ODBC
5. If you are connecting via ODBC, what is the name of the driver used and it's version?
The driver is the Progress OpenEdge 10.1A driver. The file is pgoe1021.dll, version 05.10.0037.
6. What is the SQL query syntax do you prefer? ( PC 1, or the one generated on PC 2 )
The SQL generated on PC1 doesn't return any records. The SQL generated on PC2 does. Records are preferable ;o) -
Give me the sql lines please for the following
This is the table
empCode name managerID
1 aaaa 0
2 bbbb 1
3 cccc 2
4 dddd 2
5 eeee 1
6 ffff 2
7 gggg 4
8 hhhh 3
9 jjjj 3
I want to list the records by levels like
the manager and the employee those coming
under him
thanks in advance
paramA solution to this is given in Joe Ceiko's SQL for Smarties book. It involves adding an extra column to the table. Laying the data out in a tree structure and numbering the subordinates from the bottom of the tree. If I remember it looks something like ...
empcode name emp_start emp_end
8 hhhh 1 1
9 2 2
7 3 3
3 1 3
You can use a simple range in the where clause, but insertion of new employees is complex ....
null -
Understanding the Creative Cloud Plans for a first-time photoshop user
I've never had photoshop before and I downloaded just the free 30-day trial. Then I purchased the Creative Cloud Photography plan (the one that's 9.99 a month). But I need help understanding what this offer me, because in the description this seemed to offer Photoshop and Lightroom, but I don't see an option to install those apps on my creative cloud.
If I'm a first time user do I have to buy the creative cloud complete in order to have access to Photoshop and Lightroom?Here's a screenshot of what I've got right now. The apps are just saying try, not install. Do I need to purchase the products themselves and the CC is just access to the cloud?
-
Hi, I created a ssis package, that simply transfer an excel sheet into ole db, it works on its own, but when I try to use the sql server agent service, the first step is successful,but the second step of execution is not, but I don't have enough details
to check the problem.
when I check the database , a table is created, with only the column headers, but no rows.
please can some one guide me. cheers.
this was in the error log, i checked, and imake sure the file dtx, or the excel was not opened, but what i dont know is about the file permission
,ssa3,Error,1,USER-PC,ssa3,ssas3,,Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 32-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 11:38:23
Error: 2014-10-23 11:38:23.34
Code: 0xC0202009 Source: Package Connection manager "Excel Connection Manager" Description: 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: "The Microsoft Jet database engine cannot open the file 'C:\Users\User\Desktop\dup.xls'. It is already opened exclusively by another user<c/>
or you need permission to view its data.".
Code: 0xC020801C Source: Data Flow Task Excel Source [2] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection
Manager" failed with error code 0xC0202009.You can also create a proxy account in sql agent with required permissions to folder etc and configure it to run the job so that it always works
http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Maybe you are looking for
-
TS1538 iPad will no longer sync to itunes on PC.
I can no longer sync my ipad with my iTunes on my PC. I was able to sync it all right when I first got it a year ago but now when I connect my ipad to my PC via the USB cable I can't see my ipad on iTunes and so can't tell it to sync. I did update t
-
Hi All, I need to calculate Avg Age. Avg = (X+Y)/2. X= 0 [For (current date-basic start date) <0] = current date-basic start date [For (current date-basic start date) >0] Y= 0 [For (current date-basic finish date) <0]
-
My iphone touch screen is not working
my iphone touch screen is not working i have restarted it how can i back up to the computer without allowing it through my phone?
-
EOS 5D Mark III Firmware Update
Free EOS 5D Mark III Firmware Update The EOS 5D Mark III firmware update expands the EOS 5D Mark III's performance and usability. The update gives you uncompressed HDMI output when shooting video and cross-type AF support at f/8. To learn more and do
-
Airport Extreme does not recognize external drive a drive
I have an airport extreme base station with an external drive connected to it. For quite a while the drive correctly displayed as a drive and could be used for time machine backups. All of a sudden the drive is only being displayed as a shared folder