Forum Replies Created

Viewing 15 posts - 47,671 through 47,685 (of 49,552 total)

  • RE: How to Analyze the already developed database? (i.e. Transaction Handling, profiling)

    That's a pretty massive request. Do you have any experience in doing any of that?

    If not, I would recommend you look at getting someone in who does know how 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: checkout BLOCK and WAITING and When KILL?

    Chirag (1/15/2008)


    Hope somebody can come up with better anser.

    Was my answer inadequate?

    in sysprocess there is a column blocked which shows the processid of the blocking process.

    What about 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: Help with update trigger

    If you update a view, the table underlying that view is updated. You shouldn't need a trigger.

    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: checkout BLOCK and WAITING and When KILL?

    I'm not sure i understand what you're after.

    If you query sysprocesses (select * from master..sysprocesses where spid > 50) you'll see there are four columns - blocked, waittime, lastwaittype and...

    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: Stuck poor performance and lots of dead locks.

    RPC Process? Did you identify that from profiler or from the deadlock graph?

    Could you post the deatils that you have?

    PRC calls are usually stored procedures. Means you'll have to dig...

    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: Referring temp table in dynamic sql query

    You can use a normal temp table (#Tablename) as its visible in the procedure that created it, and any procedure or dynamic SQL called by that procedure.

    A table variable has...

    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: Tracking Illicit Users

    I had much the same problem some months back. Group of developers felt they were above the rules and were fiddling on Prod using a SQL account for a messaging...

    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: Can a SQL2005 x64 database be mounted on a 32bit SQL Server

    The structure of the data and log files are the same for all the architectures that SQL runs on.

    I've moved DBs (detach/attach) between IA-64 to x86, from x86 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: Query sometimes causes SP:CacheRemove

    You can't directly control it.

    The cache remove occurs when SQL, for whatever reason, decides that the cached execution plan for the query its about to run is no longer optimal....

    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: table(heap) fragmentation and how to remedy

    A heap can't really fragment. Since there's no defined order for the rows, pages are just added at the end of the chain.

    What you can get with heaps is forward...

    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: Stuck poor performance and lots of dead locks.

    Firstly, see if anything's changed in tha last few days. Any code changes, large data loads, hardware changes, etc, etc

    Rebuild the indexes if they're fragmented. If you do a rebuild,...

    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 to find a table existed or not?

    DECLARE @TblName VARCHAR(50)

    SET @TblName = 'MyTable' -- can be a parameter also

    IF (SELECT OBJECT_ID(@TblName,'u')) IS NOT NULL

    PRINT 'Table Exists'

    ELSE

    PRINT 'Table Not Exists'

    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 query for top 3 batting and bowling rank in cric

    muthukrishnan.e (1/14/2008)


    hi,

    i dont want to skip ranks .... i want it like 1, 2, 2, 4, 5, 5, 7......

    Ok. I said dense_rank based on the rank values you...

    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: System Tables

    You can see all the logins on the server using the system view sys.server_principals. It's the 2005 replacement for syslogins.

    SELECT * FROM sys.server_principals WHERE type IN ('u', 'S')

    sysusers on SQL...

    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: The Weekly Editorial

    There seems to be a bad link in the article. The link under "Network Solutions snatching domain names" instead links to an article about online polls.

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