Forum Replies Created

Viewing 15 posts - 45,616 through 45,630 (of 49,552 total)

  • RE: Question specific to Table/Lazy Spool

    Table spool/lazy spool is a temp storage of a interim resultset so that the query processor doesn't have to regenerate the resultset. Often found with sorts, aggregations in subquery, linked...

    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: How do I reduce or eliminate logging?

    michael vessey (7/17/2008)


    In these instances rather than issueing a backup log with truncateonly command we sheduled an hourly CHECKPOINT (for that database)

    added benefit of this is that you can 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: how many users r connected to the sqlserver

    Or you can use the newer DMVs

    SELECT count(*) from sys.dm_exec_connections

    You can also get the IP address fron the same dmv

    SELECT login_name, HOST_NAME, client_net_address

    FROM sys.dm_exec_connections c INNER JOIN sys.dm_exec_sessions s...

    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: Restore package from msdb back-up copy

    It is possible to restore MSDB, but the process is not the same as for one of the user databases.

    See - http://msdn.microsoft.com/en-us/library/ms190749.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: Regarding extended stored procedure.

    xp_cmdshell with the appropriate proxy account created.

    Look up proxy aaccounts in books online. You don't have to be admin to execute xp_cmdshell

    If you're using stored procedures, consider the EXECUTE...

    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: Efficient Tuning

    Mike, as GSquared suggested on another thread, perhaps you should consider getting a competant SQL consultant in to help you with the myriad of performance problems that you seem to...

    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: Which plan is the most efficient one?

    Perhaps you would like to post the query, the table structure and the indexes?

    For now, it looks like the plan that the optimiser picked (the coverign index with a scan)...

    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: Hash and sort warnings...

    It's a red flag. It means that a sort or hash couldn't fit into memory and was forced to disk. Either you;re doing massive hashes and/or sorts, or you're low...

    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: Sort and Hash warnings

    phoenixrising1599 (7/16/2008)I have min and max server memory set to default (dynamic configuration)

    I would recommend changing that. On 64 bit with lots of memory, SQL's more than capable of using...

    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: Adhoc queries and deadlocks.

    Just converting them to stored procs, probably not.

    To fix deadlocks, you need to identify the cause of that deadlock and fix that. It's probably bad code, bad indexes or...

    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: Index strcture

    Looking at that, my first pass suggestion for indexs (without any testing done) would be:

    ParentTable

    - Clustered index on the primary key.

    - Possible nonclustered index on Col2, Col3 (if they...

    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 server 2005 stops every night

    sultankahut (7/16/2008)


    After that a series of other messages like "SQL Server is terminating in response to a 'stop' request from Service Control Manager.

    That means that either somebody stopped SQL (issuing...

    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 cannot select distinct when I inner join to other tables.

    J (7/16/2008)


    I am not certain this can really be called a flaw.

    SELECT DISTINCT ntext

    would mean for each record in the query, go get the text stored at pointer of ntext...

    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: DB Design ideas

    Sandy (7/16/2008)


    I have just gone through this links, and I think for the above DB design situation its not required. Because Karthik has already specified that there is no 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: Call a web service from T-SQL

    noeld (7/16/2008)


    But I would go even further. When you find yourself in this situation you should try to call the webservice from the "CLIENT" not on the server.

    Fully agreed....

    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 - 45,616 through 45,630 (of 49,552 total)