Forum Replies Created

Viewing 15 posts - 47,011 through 47,025 (of 49,552 total)

  • RE: CTE is fast but full statement is slow!

    Ok, I haven't looked at the entire plan in detail (it's huge)

    Here are some very quick index suggestions. Try them out, but no guarentees.

    I don't know what indexes...

    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: i couldn't give a password for my database

    Databases don't have passwords.

    You give credentials at the server level and then set the rights those credentials have for each database.

    It's not too hard a process using Object Explorer.

    Create...

    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: conditional formatting

    Please don't cross post. It just wastes people's time. Most of us read all the forums.

    Please do not reply to this thread. Replies to the following thread please.

    http://www.sqlservercentral.com/Forums/Topic478901-150-1.aspx

    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: Tie Up DTS Package and Stored Procedures

    You can set up a job if you want it to run at a particular time. If you just want 1 proc to call the rest, you can use xp_cmdshell...

    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: Runing a DTS package and stored procedure

    Please don't cross post. It just wastes people's time.

    Please do not reply to this thread. All replies to the following please -

    http://www.sqlservercentral.com/Forums/Topic478926-169-1.aspx

    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: Tie up DTS packages and Stored procedures

    Please don't cross post. It just wastes people's time.

    Please do not reply to this thread. All replies to the following please -

    http://www.sqlservercentral.com/Forums/Topic478926-169-1.aspx

    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: Retreiving query cost?

    Michal Mokros (4/2/2008)


    :Wow:

    That is exactly what I need!

    Thanks

    Just bear in mind, as I mentioned earlier, that the estimated execution plan is just that. Estimated.

    There's no guarentee that the estimated cost...

    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: bakup job time

    SQL 2005?

    If so, check the error log, see if there are any messages about teh backup buffer size been reduced.

    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: Select Statement Issue?

    Use varchar. Max of 8000 characters

    Use multiple variables and concatinate them.

    If you show us the code, we can help you more.

    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: Retreiving query cost?

    Try SET SHOWPLAN_XML ON, then run the query. It should return the xml as a resultset.

    Make sure you switch the Showplan option off, as it will affect all statements run...

    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: SQL 2005 Data corruption issue

    Just the system databases? Interesting. Master, Model and MSDB all giving the same error?

    Are the user databases on a different drive?

    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: Select Statement Issue?

    Sandy (4/2/2008)


    Can any body clear me how many characters allowed in varchar(8000) and nvarchar(4000)?

    VARCHAR(8000) = 8000 characters.

    NVarchar(4000) = 4000 characters (each taking 2 bytes)

    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: Retreiving query cost?

    You can use the estimated execution plan. Just bear in mind it is an estimate. If you're running into parameter sniffing problems (which from the sound of things you might...

    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: Get the code from a System View

    And you can use sp_helptext to get their definition as well.

    EXEC sp_helptext 'sys.objects'

    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: SQL 2005 Data corruption issue

    Could you check the windows event log please? See if there are any errors in there from around the time of the DBCC. Check the system and application logs.

    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 - 47,011 through 47,025 (of 49,552 total)