Forum Replies Created

Viewing 15 posts - 33,256 through 33,270 (of 49,552 total)

  • RE: dynamic sql inside stored procedure?

    DECLARE @myVar int

    SELECT * FROM myTable

    Where Case

    WHEN @myVar = 1 THEN

    AND myDate > 1/1/2010

    ...

    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 2008 standard x64 help - unable to truncate / re-create 2 log files

    Alex V (3/31/2010)


    Sorry, Gail, I didn't mean to be gender specific. Here in AL a good half of the ladies would get offended: "who exactly are you calling a lady?"...

    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: Database SnapShot

    Pages that have been changed since the snapshot's creation are read from the snapshot (which contains the page as it was before it was modified). Pages that haven't are read...

    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 get rowid in sql server 2005

    So locks are bad, but potentially inconsistent data and incorrect results are OK?

    Nolock is not a free lunch, it is not a 'required' hint when querying a production database....

    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: Are the posted questions getting worse?

    Chris Morris-439714 (3/31/2010)


    Paul White NZ (3/30/2010)


    CirquedeSQLeil (3/30/2010)


    tosscrosby (3/30/2010)


    Paul White NZ (3/30/2010)


    WayneS (3/30/2010)


    Fellow Threadizens, if I can get you to check out this link about a sql login permission...

    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 get rowid in sql server 2005

    tom.newman 88696 (3/31/2010)


    from table with (nolock)

    Why?

    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: DBCC CHECKDB ends with false positives

    As I posted over at SQLTeam...

    If checkDB reports errors it means that it found errors. They may be transient IO errors.

    Are you seeing any 825 errors in your error 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: SQL 2008 standard x64 help - unable to truncate / re-create 2 log files

    Alex V (3/31/2010)


    Gentlemen,

    I notice this is not addressed to me, but...

    What is the value of log_reuse_wait_desc in sys.databases for this database?

    What does DBCC OPENTRAN return?

    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: Do System Databases Ever Get Corrupted? And if so, what to do ?

    Yes they do, just like user databases do. There's nothing special about the system databases that will save them from having the IO subsystem mangle their files.

    With the system databases...

    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: What is the RAM ramification of CTE?

    keepintouch2b (3/30/2010)


    Assuming CTE is 100% RAM usage right? Then if 2 or more users would cause 100% RAM utilization: 2 users x 1 million rows x 8k per row 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: dynamic sql inside stored procedure?

    Beedle (3/30/2010)


    From the sound of it you could probably use Case statements.

    You can, providing performance is not a major requirement.

    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: dynamic sql inside stored procedure?

    Yes it is. Beware SQL injection though.

    These may be worth reading, just in general, if I understand what you're trying to do.

    http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/

    http://sqlinthewild.co.za/index.php/2009/09/15/multiple-execution-paths/

    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: Are the posted questions getting worse?

    Cannada

    Canadda

    Caneda

    Canade

    Kanada

    Canader

    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: Are the posted questions getting worse?

    CirquedeSQLeil (3/30/2010)


    Those don't grate on me nearly as much as changing my name.

    i.e.

    Thanks Jase

    You're complaining?

    You know how many ways there are to misspell either a 4-letter name or 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: what is PKM in SQl Server ?

    6-year old thread.

    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 - 33,256 through 33,270 (of 49,552 total)