Forum Replies Created

Viewing 15 posts - 2,026 through 2,040 (of 13,469 total)

  • RE: Deleting Job history for particular time period

    like this, i think?

    with MyCTE

    AS

    (

    with MyCTE

    AS

    (

    select row_number() over(

    partition by Job_ID,run_date,step_id

    order by run_date desc,run_time desc,step_id) As RW,

    * from msdb.dbo.sysjobhistory

    )

    delete FROM MyCTE WHERE RW >1

  • RE: Script to add a server login to multiple databases

    the users themselves are contained in the databases themselves,

    if you are migrating, maybe you mean migrating logins to a new server via the ms proc sp_help_revlogins?

    for an existing instance,...

  • RE: Update Query

    data in a consumable format:

    i got tired of the solution just cleaning up the data, and gave up at that point.

    ;WITH MyCTE([ID],[Dept],[Address],[GroupID ])

    AS

    (

    SELECT '165683','32 ','P O BOX 602','2' UNION...

  • RE: Customers stopped ordering a Product query

    my best guess base don the limited information.

    SELECT *

    FROM Customer

    --nothing in last 3 monts

    WHERE CustomerCode NOT IN(SELECT o.CustomerCode

    ...

  • RE: The INSERT permission was denied on the object

    jahid786 (2/6/2015)


    I have the similar issue. I have checked all the suggestion you made on top of this discussion. But I could not find the reason of denying the insert...

  • RE: Call function/procedure from anywhere

    i do this ALL the time. i have suites of procedures using this ability.

    it requires a few things

    • it must be placed in the master database. (not some DBA_Utilities or...

  • RE: Passing Malformed email address to Send Mail Task

    i think the issue is connecting to an exchange server is not the same as connecting to an SMTP server, even if that server happen to be an exchange server.

    the...

  • RE: Linked Servers Issues and Administration in BW Environment

    similar to what Igor posted, the code below can help find objects that reference a linked server, but can't find adhoc usage of a linked server, for example if an...

  • RE: Looking for suggestions

    I'd go for local reachouts first. put together a letter of introduction/highlights of exactly what your skillset can contribute. this would not be a resume, but direct experience someone...

  • RE: Deny Security Permissions for a SysAdmin

    nope, it is not possible to deny a sysadmin access to anything.

    permissions checks are shortcutted if you are sysadmin, and all deny/revoke permissions you might create are ignored.

    the only solution...

  • RE: Extract name from UNC Path

    wow, i fiddled with doing this with substring and charindex, and it is so ugly compared to using a delimitedsplit.

    /*--Results

    (No column name) UNC ...

  • RE: Trigger

    suppiunna (2/4/2015)


    The payment info from UI enters the Payment master table.. I created CDC on the master table.. So once the record is inserted in to Payments Master Table, the...

  • RE: Question related to indexes?

    to satisfy that specific query, i think an index on the four columns involved int he WHERE clause is needed, and INCLUDE all the columns in the SELECT, right?

    CREATE INDEX...

  • RE: Trigger

    you probably want to fix the trigger., or remove the trigger completely and move the migration from one table to another to a job that runs every x minutes.

    as a...

  • RE: Deny Permission for an Object

    it is not possible to deny a sysadmin access to anything.

    permissions checks are shortcutted if you are sysadmin, and all deny/revoke permissions you might create are ignored.

    the only solution...

  • Viewing 15 posts - 2,026 through 2,040 (of 13,469 total)