Forum Replies Created

Viewing 15 posts - 211 through 225 (of 348 total)

  • RE: SQL Query

    This is what I am trying to do.

    select sj.name,sj.enabled,sjh.step_id,sjh.message from

    sysjobhistory sjh inner join sysjobs sj

    on sj.job_id=sjh.job_id

    and sj.enabled='1'

    In this query result.For every sj.name there will 1 or more sjh.step_id 's and...

  • RE: Autoalert if SQLAgent stops

    Have you tried writing a different SQLAgent task to ensure that you have the task launch under these conditions? <--- What do you mean by this ?

    Yes to both powershell...

  • RE: SQL in SSIS

    Can anyone please help fix this ?

    Thanks

  • RE: DBEngine Access check

    The above script is working perfectly but it only checks the RDP access for a server and does not check if we have DB access.How I enhance the above code...

  • RE: SSRS Report issues

    resolved this...thanks

  • RE: SSRS Report issues

    Yes

  • RE: Inner Join

    I tried this code on one of the tables which has col values as fadsf-ff,fsdf-ffg,edf-d

    and this code should select values after the '-' in the string from colA

    SELECT SUBSTRING ([DB].[dbo].[Table1].[ColA],...

  • RE: Inner Join

    Use SUBSTRING/CHARINDEX (if the number of characters after the '-' is variable and there is only one '-' in the string: SUBSTRING(TableA.ColA, CHARINDEX('-', TableA.ColA), LEN(ColA)) = TableB.ColA

    The above condition does...

  • RE: SQL in SSIS

    The execute sql task is not the only task in the for each loop.There is file task in the for each loop.

    I do not have any connection managers as there...

  • RE: SQL in SSIS

    The for each loop container has Execute SQL Task and also a File system task

    Based on the number of input servers (select in the 1st execute task outside the for...

  • RE: SQL in SSIS

    Hi John,

    Attached are screenshots of the variables and the package and also the parameter mappings.

    The first task inside the for loop creates as many directories as the number of servers...

  • RE: SQL in SSIS

    As of now my SSIS package only update the first server it comes across in the for each loop , updates the relevant column and then fails stating that the...

  • RE: SQL in SSIS

    Hi SSCommited,

    Appreciate the detailed reply.

    This is what I have and need to fix.

    I have an execute SQL task editor inside a for each loop which has this SQL statement

    update DB.dbo.Table...

  • RE: SQL in SSIS

    I have tried the parameter path and its not working.

    Can you please give sample update statement/s for both the options you mentioned ..

    I have posted what I did on this...

  • RE: SQL in SSIS

    I have looped through servers many a times and appreciate the link for the same.

    In this case my update statement should like what ?

    update tabelA set col1='\path\User::currentservername\'

    How do I write...

Viewing 15 posts - 211 through 225 (of 348 total)