Forum Replies Created

Viewing 15 posts - 4,546 through 4,560 (of 7,164 total)

  • RE: Transaction Count after Execute error

    jwhisman (4/9/2012)


    opc.three (4/9/2012)


    This is a very small amount of info to go on....but I'll take a guess. It looks like your inner proc is not raising an exception whenever it...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Transaction Count after Execute error

    Lynn Pettis (4/9/2012)


    Actually, the inner rollback rolls back all open transactions.

    Right...what I was thinking is the COMMIT in the outer proc would be called when @@TRANCOUNT was 0.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Transaction Count after Execute error

    This is a very small amount of info to go on....but I'll take a guess. It looks like your inner proc is not raising an exception whenever it rolls back...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: join -- The amount of the most recent child record

    Lynn Pettis (4/9/2012)


    Need the sample data in a format that is readily consumable. A series of INSERT INTO statments fits that bill.

    +1

    @Half Bubble

    SSMS Tools Pack can help.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: remot query takes longer - local faster

    SELECT LEN('SELECT w.ID,

    w.[Rdc],

    w.[Pby],

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Modified DateTimeStamp - No Default on record creation

    L' Eomot Inversé (4/9/2012)


    Jeff Moden (4/8/2012)


    I prefer they both be NOT NULL and, like Gail identified, will make both the same on INSERT. I also use a trigger to...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: remot query takes longer - local faster

    sqldba_newbie (4/9/2012)


    thanks for detail explanation. Dumb question, how do i know size of my sql query?

    Using your sample code from earlier the bold string-literal is the 'query' argument:

    SELECT *

    FROM...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: remot query takes longer - local faster

    sqldba_newbie (4/9/2012)


    opc.three (4/9/2012)


    An alternative to using OPENQUERY is to use the EXECUTE...AT syntax to also force the query to execute on the remote server. OPENQUERY is a bit more flexible...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Server is in the domain

    Computers are either joined to a domain or they are not. You can either check the computer, or check Active Directory to see if the computer is part of the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: remot query takes longer - local faster

    An alternative to using OPENQUERY is to use the EXECUTE...AT syntax to also force the query to execute on the remote server. OPENQUERY is a bit more flexible in that...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: SQL Server 2005 Windows authetication

    sanj_love89 (4/7/2012)


    LOG file

    2012-04-07 10:40:29.41 Logon Error: 17806, Severity: 20, State: 2.

    2012-04-07 10:40:29.41 Logon SSPI handshake failed with...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: server name after migration

    Keeping the same server name would cover you, but in my experience that is an option less so than it is an option.

    Ideally I try to use something like Cisco's...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to store a sqldatareader returned from from script code to database table?

    I am thinking of a data flow that goes like this:

    1. OLE DB Source from ServerA.Database1 selects customerIDs where name/address is null

    2. OLE DB Destination to ServerB.tempdb table with customerID

    3....

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Backing up SQL Agent All Objects with Backing up Database Maintenance Plans & Database Mails

    You said you already knew about backing up and restoring msdb, however did you know you could restore msdb with a name other than msdb? This would allow you to...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Need SQL Server 2005 DBA Training Tutorials

    Stairways[/url]

    Also, see the "Stairways" link in the left nav of this site.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 4,546 through 4,560 (of 7,164 total)