Forum Replies Created

Viewing 15 posts - 45,931 through 45,945 (of 49,552 total)

  • RE: Why both "Target Server Memory" & "Total Server Memory" 0 ?

    maruf24 (7/5/2008)


    gail cnt we reinstal sqlserver

    That's a little extreme as a fix for missing counters.

    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 i discover the origin (ip of the host) of a process?

    If you query the dmv sys.dm_exec_connections, you will see the ip address.

    I don't know of any way to lock someone out by IP. If they are using a specific...

    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 injection cleanup?

    Do you perhaps have a backup from before the attack hit? Restoring is probably the fastest way to clean up. Bear in mind, the attack may have done more than...

    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: Randomly Pick Specified Number of Rows?

    That would work in 2005. In SQL 2000, try rowcount.

    SET ROWCOUNT @NumRows

    SELECT *

    FROM Northwind.dbo.Customers

    ORDER BY NEWID();

    SET ROWCOUNT 0

    Please note, I don't have a 2000 server handy to test this. I...

    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: Avoid Stored proc Fire triggers

    Can you maybe post the code of the 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: I Need Full Info of MCTS(70-431) exam,Please give me Tutorial and Hints.

    richard (7/4/2008)


    Hi guys,

    I have just got back home having passed 70-431 🙂

    Very pleased to gain my first MS certification!

    Richard

    Congrats! What was your score?

    So, which exam's next on your list? :hehe:

    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: Effect of UPDATE STATISTICS

    It should do. It is recommended that the statistics of all tables (in all databases) get updated after upgrading from 2000 to 2005.

    The reason is that 2005 keeps more detailed...

    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: DBA Certification

    Vijaya Kadiyala (7/4/2008)


    Hi,

    Finally when you are ready test ur-self against TestKing. This will tell you where do stand in.

    Do NOT use testking. They are a braindump site. Their stuff is...

    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: Using trace captures

    This should get you started

    SELECT execution_count, total_worker_time, total_physical_reads, total_logical_reads, total_elapsed_time, creation_time, st.text,

    qs.sql_handle, qs.plan_handle, qp.query_plan

    FROM sys.dm_exec_query_stats qs INNER JOIN sys.dm_exec_cached_plans cp ON qs.plan_handle = cp.plan_handle

    CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp

    CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st

    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: Avoid Stored proc Fire triggers

    You could disable the trigger, run the delete and reenable it. There's the risk that another delete runs while the trigger is disabled.

    Is there anything about the session/connection properties 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: Date format error

    Jonathan Mallia (7/4/2008)


    I cannot do this as i must use the date in question for querying in reports etc

    You said you wanted to change the dates to something like '1900/01/01'?

    If...

    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: Why both "Target Server Memory" & "Total Server Memory" 0 ?

    Have a look at this kb article, see if it solves your problem

    http://support.microsoft.com/kb/300956/en-us

    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: Date format error

    I would sugget that you import into a staging table where the column is of type varchar, do any validation and correction that you need thre, then import into the...

    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

    karthikeyan (7/4/2008)


    Gila,

    The suggestion of a comma-delimited list in a single column violates the first. It it often suggested as a 'solution', but tends to cause mor problems than it solves....

    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: Why both "Target Server Memory" & "Total Server Memory" 0 ?

    Not those. Those are OS-level counters. What about other SQL-related counters?

    (SQL Server:Access Methods, SQL Serveer: General Statistics, ....)

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