Forum Replies Created

Viewing 15 posts - 37,306 through 37,320 (of 49,552 total)

  • RE: IF Statements affecting performance ?

    Unlikely.

    Oddly enough, row-by-row code doesn't usually suffer badly from parameter sniffing. Parameter sniffing is worst when the optimiser compiles a statement thinking that there's a very small number of...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Store Proc Error

    Then try explicitly casting your dates to string before concatenating them, use the CONVERT function.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Store Proc Error

    If you replace the exec with a print statement in to print the full text of the dynamic SQL, what does it print?

    Print 'SELECT databasename,starttime,eventclass,LoginName,TargetUsername,Objectname

    FROM ' + @server + '.TRACEDB.dbo.TraceTable...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Upgrade adviser warning

    manoj2001 (8/1/2009)


    My Question here is does this code works in SQl Server 2000

    That code will work in SQL 2000. The SQL 2000 parser was rather lax in what it allowed...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: View host_name in database log

    Unless you had a trace running or a trigger on the table that captured that info, as far as I'm aware, you can't.

    You should be able to get the uid...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: View host_name in database log

    Bear in mind that the transaction log was not intended as an audit log. It's used for SQL to do transaction rollbacks and to ensure database integrity.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: View host_name in database log

    No, and even if there was, you still wouldn't be able to get the host name. That information is not in the transaction log.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: BRKR TASK consuming large amount of CPU, but Service Broker is not enabled

    You can't kill system spids. The BRKR TASK sessions on my SQL box are sessions 10, 15 and 16. All system processes.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: mdf file increasing rapidly - what are the causes for increasing the mdf file size?

    Jeff Moden (7/31/2009)


    Sounds like interview questions... if I answer correctly, do I get the job?

    Question is, do you want the job?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: mdf file increasing rapidly - what are the causes for increasing the mdf file size?

    Jeff Moden (7/31/2009)


    I'm always amazed at that... users not checking to see their own posts.

    During that major problem a few weeks back, I had one guy post 15 times. After...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Dose database log contains the HOST_NAME?

    Also asked here: http://www.sqlservercentral.com/Forums/Topic763521-6-1.aspx

    No replies to this thread please

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: View host_name in database log

    Are you using SQL Log rescue? If so, I don't think the host name is saved in the transaction log. It's unnecessary for what the transaction log is - a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: IF Statements affecting performance ?

    Jeffrey Williams (7/31/2009)


    I don't think IF statements are related to performance at all. Using IF statements is flow control - not processing so there really isn't anything that would...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Upgrade adviser warning

    Adam Angelini (7/31/2009)


    I beleive what it is actually complaining about is that it wants you to use the original column name in the order by and not the alias that...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Upgrade adviser warning

    As I said, you should take the order by out completely. In SQL 2005 and above, order by in a view is not honoured. SQL will ignore that TOP 100%...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 37,306 through 37,320 (of 49,552 total)