Last one month jobs execution time in sql server 2008 r2

Dear Friends,
We configured replication between three servers two are publishers and one subscriber for two publisher.
my question is daily basis one job running on subscriber end it truncate and insert the data every night .
unfortunately today job was failed I observed in jobs view history. but client requirement manually run the job and data dump into the table. but I want know its previous execution time as per that I will run the job in production hours but in jobs view
history showing only today's fail job history. how to find the last execution time .
note: yesterday job was successfully completed.
Message
Executed as user: NT AUTHORITY\SYSTEM. Cannot initialize the data source object of OLE DB provider "SQLNCLI10" for linked server "server name". [SQLSTATE 42000] (Error 7303)  OLE DB provider "SQLNCLI10" for linked
server "server name" returned message "Unable to complete login process due to delay in opening server connection". [SQLSTATE 01000] (Error 7412).  The step failed.
mastanvali shaik

But what about to that particular job ? what is the name of the job ? Please assign that job name in the below script and check .. Its sure that history is not exist for that particular job anyway for your confirmation please use the below scripts and try...
 make sure to add the name .. when was the last backup taken for your system databases ?
WHERE    JOB.name = 'Your JobName'  -- Add your job name..
SELECT      [JobName]   = JOB.name,
            [Step]      = HIST.step_id,
            [StepName]  = HIST.step_name,
            [Message]   = HIST.message,
            [Status]    = CASE WHEN HIST.run_status = 0 THEN 'Failed'
            WHEN HIST.run_status = 1 THEN 'Succeeded'
            WHEN HIST.run_status = 2 THEN 'Retry'
            WHEN HIST.run_status = 3 THEN 'Canceled'
            END,
            [RunDate]   = HIST.run_date,
            [RunTime]   = HIST.run_time,
            [Duration]  = HIST.run_duration
FROM        sysjobs JOB
INNER JOIN  sysjobhistory HIST ON HIST.job_id = JOB.job_id
WHERE    JOB.name = 'Your JobName'
ORDER BY    HIST.run_date, HIST.run_time
Raju Rasagounder Sr MSSQL DBA

Similar Messages

  • Daylight Time Saving - SQL Server 2008 Mirroring

    Dear SQL Forum Group Members,
    1) Could anyone clarify me, will there be any issues in SQL server 2008 Mirroring because of Daylight Time saving ?? Also, will there be any impact on Tlog backup scheduled jobs which will be running in 15 Minutes interval.?
    2) Do i need to reschedule my mirroring & scheduled jobs on Daylight saving days?? Is there manual(DBA) Intervention needed on these days??
    Awaiting your valuable feedback.

    Nope, there won't be any impact on the database mirroring as it continually transfer the log.
    http://www.sqlskills.com/blogs/paul/how-does-daylight-savings-time-affect-disaster-recovery/
    -Prashanth

  • TSQL Query to display First and Last Values of a GROUP as Columns - SQL Server 2008

    Could someone please help with the TSQL to achieve the following: Every Employee has 2 records (From & To). Output has to display one record for each employee with From & To as columns.
    Input
    Empid
    Type
    Date
    100
    From
    5/4/2004
    100
    To
    6/2/2008
    101
    From
    6/12/2003
    101
    To
    6/2/2013
    102
    From
    12/12/2012
    102
    To
    5/3/2014
    Output
    EmpID
    From
    To
    100
    5/4/2004
    6/2/2008
    101
    6/12/2003
    6/2/2013
    102
    12/12/2012
    5/3/2014
    Thanks, Ashish Singh

    SELECT empid,
    MAX(CASE WHEN Type='From' THEN date END) from,
    MAX(CASE WHEN Type='To' THEN date END) to
    FROM tbl GROUP BY empid
    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

  • Can't login SQL Server 2008 R2 Express management studio

    Hi i recently installed SQL Server 2008 R2 management studio. When I try to login i select 'Database engine' as the server type, I'm not sure what server name I'm
    supposed to be using but I tried .\SQLEXPRESS and authentication is 'SQL server Authentication'. But as for login and password I don't have one. During the installation I was not prompted to provide a login/password. As with the 2005 server installation I
    could by selecting 'mixed'. So how do i login for the first time on SQL server 2008 if i dont know/have my login/password?

    Hi,
    Try below links :
    http://blogs.msdn.com/b/sqlexpress/archive/2006/11/22/connecting-to-sql-express-user-instances-in-management-studio.aspx
    http://stackoverflow.com/questions/360141/how-to-connect-to-local-instance-of-sql-server-2008-express
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/e880c3be-a874-4979-8874-7044c087318d/sql-server-express-default-username-and-password
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • HT3702 Hi I m very much frustrated bcoz frm last one month I m trying to pay my bill regarding this orderMH0608K27D but all the time it declined I don't know what's wrong bcoz frm last one yr I m purchasing frm same id n paas word n I also tlk yo my bank

    I am very much frustrated bcoz frm last one month my payment is not accepted plz check it out n help me my all debit card details r same n I purchasing frm last one yr but why this time I m facing this problem my order no is MH0608K27D plz help me

    Debit cards are no longer accepted in the iTunes Store, it seems. The current valid payment methods are listed here:
    http://support.apple.com/kb/HT5552
    You can try contacting the iTunes Store and asking if there is any way to use your card, but they probably will tell you that it's not possible.
    http://www.apple.com/emea/support/itunes/contact.html
    Regards.

  • How to know query execution time in sql plus

    HI
    I want to know the query execution time in sql plus along with statistics
    I say set time on ;
    set autotrace on ;
    select * from view where usr_id='abcd';
    if the result is 300 rows it scrolls till all the rows are retrieved and finally gives me execution time as 40 seconds or 1 minute.. (this is after all the records are scrolled )
    but when i execute it in toad it gives 350 milli seconds..
    i want to see the execution time in sql how to do this
    database server 11g and client is 10g
    regards
    raj

    what is the difference between .. the
    statistics gathered in sql plus something like this and the one that i get from plan_table in toad?
    how to format the execution plan I got in sqlplus in a proper understanding way?
    statistics in sqlplus
    tatistics
             0  recursive calls
             0  db block gets
           164  consistent gets
             0  physical reads
             0  redo size
         29805  bytes sent via SQL*Net to client
           838  bytes received via SQL*Net from client
            25  SQL*Net roundtrips to/from client
             1  sorts (memory)
             0  sorts (disk)
           352  rows processedexecution plan in sqlplus... how to format this
    xecution Plan
      0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=21 Card=1 Bytes=10
             03)
      1    0   HASH (UNIQUE) (Cost=21 Card=1 Bytes=1003)
      2    1     MERGE JOIN (CARTESIAN) (Cost=20 Card=1 Bytes=1003)
      3    2       NESTED LOOPS
      4    3         NESTED LOOPS (Cost=18 Card=1 Bytes=976)
      5    4           NESTED LOOPS (Cost=17 Card=1 Bytes=797)
      6    5             NESTED LOOPS (OUTER) (Cost=16 Card=1 Bytes=685)
      7    6               NESTED LOOPS (OUTER) (Cost=15 Card=1 Bytes=556
      8    7                 NESTED LOOPS (Cost=14 Card=1 Bytes=427)
      9    8                   NESTED LOOPS (Cost=5 Card=1 Bytes=284)
    10    9                     TABLE ACCESS (BY INDEX ROWID) OF 'USR_XR
             EF' (TABLE) (Cost=4 Card=1 Bytes=67)
    11   10                       INDEX (RANGE SCAN) OF 'USR_XREF_PK' (I
             NDEX (UNIQUE)) (Cost=2 Card=1)
    12    9                     TABLE ACCESS (BY INDEX ROWID) OF 'USR_DI
             M' (TABLE) (Cost=1 Card=1 Bytes=217)
    13   12                       INDEX (UNIQUE SCAN) OF 'USR_DIM_PK' (I
             NDEX (UNIQUE)) (Cost=0 Card=1)
    14    8                   TABLE ACCESS (BY INDEX ROWID) OF 'HDS_FCT'
              (TABLE) (Cost=9 Card=1 Bytes=143)
    15   14                     INDEX (RANGE SCAN) OF 'HDS_FCT_IX2' (IND
             EX) (Cost=1 Card=338)
    16    7                 TABLE ACCESS (BY INDEX ROWID) OF 'USR_MEDIA_
             COMM' (TABLE) (Cost=1 Card=1 Bytes=129)
    17   16                   INDEX (UNIQUE SCAN) OF 'USR_MEDIA_COMM_PK'
              (INDEX (UNIQUE)) (Cost=0 Card=1)
    18    6               TABLE ACCESS (BY INDEX ROWID) OF 'USR_MEDIA_CO
             MM' (TABLE) (Cost=1 Card=1 Bytes=129)
    19   18                 INDEX (UNIQUE SCAN) OF 'USR_MEDIA_COMM_PK' (
             INDEX (UNIQUE)) (Cost=0 Card=1)
    20    5             TABLE ACCESS (BY INDEX ROWID) OF 'PROD_DIM' (TAB
             LE) (Cost=1 Card=1 Bytes=112)
    21   20               INDEX (UNIQUE SCAN) OF 'PROD_DIM_PK' (INDEX (U
             NIQUE)) (Cost=0 Card=1)
    22    4           INDEX (UNIQUE SCAN) OF 'CUST_DIM_PK' (INDEX (UNIQU
             E)) (Cost=0 Card=1)
    23    3         TABLE ACCESS (BY INDEX ROWID) OF 'CUST_DIM' (TABLE)
             (Cost=1 Card=1 Bytes=179)
    24    2       BUFFER (SORT) (Cost=19 Card=22 Bytes=594)
    25   24         INDEX (FAST FULL SCAN) OF 'PROD_DIM_AK1' (INDEX (UNI
             QUE)) (Cost=2 Card=22 Bytes=594)

  • Why same query takes different execution time in sql 2008

    Hi!
    With below query in SQL Server 2008 R2 when I change Book_ID  to another value like '99000349'  it takes very long time to execute while both result sets have same number of records!?
    select Card_Serial,Asset_ID, Field_Name,Field_Value,Asset_Number,Field_ID,Book_ID from dbo.vw_InspectionReport where Book_ID='99000347'
    I've test it more and more,A time I ran quickest one, or longest one first, restart Windows, but for some specific Book_ID values (although with same number of result set rows) it take multiple time slower than rest of Book_IDs.
    Also showing state of the result set is different for these diffrent Book_IDs:
    for fast ones it looks like below picture:
    for slow ones it looks like below picture:
    if you note, order of returned records are different!?
    I'm waiting for your kindly reply!...

    Do you see any changes if you add a hint to the query?
    select Card_Serial,Asset_ID, Field_Name,Field_Value,Asset_Number,Field_ID,Book_ID from dbo.vw_InspectionReport where Book_ID='99000347OPTION(RECOMPILE)
    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

  • While opening pdf files the menu bar, navigation bar  cracks unobviously and also close and minimise buttons  goes hidden..Facing the problem for last one month. Please help.

    while opening pdf files the menu bar, navigation bar  cracks unobviously and also close and minimise buttons  goes hidden..Facing the problem for last one month. Please help.

    The latest Kaspersky software version is 15.0.1.415 or 15.0.1.415ab.

  • For last one month I am facing problem in watching online videos on my iPod touch. It is opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.

    For last one month I am facing problem in watching online videos on my iPod touch. It is opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.

    For last one month I am facing problem in watching online videos on my iPod touch. It is not opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.

  • How can i know about any users who log on sap last one month..all data and

    Dear all,
    how can i know about any users who log on sap last one month..all data and  transaction code they used in a month.
    Regards,
    ASHUTOSH
    9891595497

    Dear Ashutosh,
    I think your question is in the wrong forum. This is for SAP MDM related questions and answers. SAP MDM does not use Transaction codes. So you may not get much help here.
    Please try posting your question in the ABAP forums and you may get the right resources to help you.
    Thanks.
    Siva K.

  • Data services with SQL Server 2008 and Invalid time format variable

    Hi all
    Recently we have switched from DI on SQL Server 2005, to DS(Date Services) on SQL Server 2008. However I have faced an odd error on the query that I was running successfully in DI.
    I validate my query output using a validation object to fill either Target table (if it passes), or the Target_Fail table (if it fails). Before sending data to the Target_Fail table, I map the columns using a query to the Target_Fail table. As I have a column called 'ETL_Load_Date' in that table, which I should fill it with a global variable called 'Load_Date'. I have set this global variable in the script at the very first beginning of the job. It is a data variable type:
    $Load_Date = to_char(sysdate(),'YYYY.MM.DD');
    When I assign this global variable to a datetime data type cloumn in my table and run the job using Data Services, I get this error:
    error message for operation <SQLExecute>: <[Microsoft][ODBC SQL Server Driver]Invalid time format>.
    However I didn't have this problem when I was running my job on the SQL Server 2005 using Data Integrator. The strange thing is that, when I debug this job, it runs completely successfully!!
    Could you please help me to fix this problem?
    Thanks for your help in advance.

    Thanks for your reply.
    The ETL_Date is a datetime column and the global variable is date data type. I have to use the to_char() function to be able to get just the date part of the current system datetime. Earlier I had tried date_part function but it returns int, which didn't work for me.
    I found what the issue was. I don't know why there were some little squares next to the name of the global variable which I had mapped to the ETL_Date in the query object!!! The format and everything was OK, as I had the same mapping in other tables that had worked successfully.
    When I deleted the column in the query object and added it again, my problem solved.

  • Job Manger configuration when SQL Server Data base is used

    Hi All,
    I have worked on starting scheduler services after job manager configuration  and created ibots.
    But now we are using SQL Server.
    In this case we are facing a problem while configuring job manager.
    In SQL Server we will be having 2 types of authentication.
    Windows authentication and SQL Server Authentication.
    When we use both types of authentication in the job manager I am getting an error in the log files regarding authentication (NT Authentication Failed)
    Can any one tell me what type authentication should be used for scheduling
    Thanks
    Subhash

    Hi this problem solved
    Like to say I have recreated a dsn and gave sql server authentication which worked for me.
    My question is can we get uding windows authentication or only sql server works??
    Can I have some solution for that
    My thought if sql server authentication  works then this should also work???
    Thanks
    Subhash

  • SQL Server 2008 R2 Backup jobs are failing

    I have a problem with SQL Server 2008 R2. First the management studio package is failing to load. backup jobs on that server are failing to run. The server won't accept any installation. The Installation of .Net Framework failed, the Installation of SQL
    server 2008 R2 SP2 also failed, Trying to repair SQL Server through the CD also failed. Actually the server cannot install anything on it. When you try to initiate the installation it comes back and say check online for solution or close the program.
    I am desperate here as I cannot backup

    When you try to initiate the installation it comes back and say check online for solution or close the program.
    Are you sure this is the error, I updated SP2 last week and I got the same message but if I remember correctly there was a continue button as well. Could you post the errors.
    SP2 not installing, .net framework not installing, ssms not loading up and backups not running all could be due to different issues. Consider these as different and post error message that you are receiving for the issue which is most important for you.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Getting Frequent time out while Connecting to SQL server 2008 Instance installed on VmWare

    Hi,
    I have a production SQL server Database with default instance. when I connect this instance from 10 attempts it get connected only 5-6 times. I connect this through SSMS. Some of jobs also getting failed due to login time out expired. please help in this.
    Product is SQL server 2008 Enterprise Edition
    Thank You
    Yogesh Arora

    Yogesh Arora
    Have you checked Event Viewer and ERROR.LOG?
    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

  • Utility data collection job Failure on SQL server 2008

    Hi,
    I am facing data collection job failure issue (Utility-data Collection) on SQL server 2008 server for, below is the error message as  :
    <service Name>. The step did not generate any output.  Process Exit Code 5.  The step failed.
    Job name is collection_set_5_noncached_collect_and_upload, as I gothrough the google issue related to premission issue but where exactly the access issues are coimng, this job is running on proxy account. Thanks in advance.

    Hi Srinivas,
    Based on your description, you encounter the error message after configuring data collection in SQL Server 2008. For further analysis, could you please help to collect detailed log information? You can check the job history to find the error log around the
    issue, as is mentioned in this
    article. Also please check Data Collector logs by right-clicking on Data Collection in the Management folder and selecting View Logs.
    In addition, as your post, the exit code 5 is normally a ‘Access is denied ’ code.  Thus please make sure that the proxy account has admin permissions on your system. And ensure that SQL Server service account has rights to access the cache folder.
    Thanks,
    Lydia Zhang

Maybe you are looking for

  • If my iPhone 5 has a cracked screen, can I still trade it in for the iPhone 6?

    If my iPhone 5 has a cracked screen, can I still trade it in for the iPhone 6? I know there is the promotion to trade in for a free iPhone 6, but will Verizon take a cracked phone? I would hope at the least to still get a discount if not a straight u

  • How can I remove a malicious browser extention that doesn't show a "remove" button?

    I'm using Firefox 31.0 on Mac OSX and recently noticed a "JolleyWallet" popup and some suspect "Photo-Zoom V10 0.95.14" browser extension that I did not install myself. I would very much like to permanently be rid of the extension however there is no

  • Mail crashes trying to sync To Do items

    Can anyone solve a mail bug which is connected to the Apple Mail To Do Folder. I have one item that I have deleted a million times but it just keeps mutliplying when I try and receive email - and then the application crashes. Here is the crash log fo

  • Buy phone in canada, can/cannot use in hk?

    I wanna ask is it able to use the iphone  in hk? bcuz i order it online on apple.ca and i am using the iphone 5 in hk right now but it seems like it cant read the carrier.

  • Which wireless router should I buy?

    After many hassles trying to get my 3 yr old speedtouch router to work reliably with my Macs I've decided it's time for an upgrade. Can I please get your wireless router recommendations for hassle free surfing on a Mac Many thanks David