Forum Replies Created

Viewing 15 posts - 26,086 through 26,100 (of 49,552 total)

  • RE: Database has gone in suspend mode how to recover...?

    jmerrill 28016 (5/16/2011)


    Am I crazy to think that anything that causes a "suspect database" is a hardware problem or a SQL Server bug?

    Yup. Pretty much. Most likely hardware (IO)...

    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: Return rows affected by an UPDATE in an SP

    Brandie Tarvin (5/16/2011)


    Ray K (5/16/2011)


    When I tried calling the SP, I got the 'Must declare the scalar variable "@Result".' message.

    Declare @Result int;

    Execute TestProc 'ID','Email', @Result output;

    That's how you call an...

    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?

    SQLRNNR (5/16/2011)


    Back to alphabet soup. I love the alphabet soup when the certification is mis-spelled (e.g. MCSE becomes MSCE or MCDBA becomes something like MCSDBA)

    Linky? Please?

    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: Return rows affected by an UPDATE in an SP

    Errr... Works for me as you have it. (I removed the rest of the variables & parameters for simplicity)

    DECLARE @Result int

    declare @sql nvarchar(1024)

    ...

    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: Need to exclude indexes from query

    Errr, right up close to the top of the script....

    CREATE TABLE dbo.dba_indexDefragExclusion

    (

    databaseID INT ...

    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: TImeStamp

    Ninja's_RGR'us (5/16/2011)


    GilaMonster (5/16/2011)


    rowversion = timestamp, just different names for the same data type. Timestamp is deprecated, but SSMS still uses it (go figure)

    Does MS know about this too??? 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: TImeStamp

    rowversion = timestamp, just different names for the same data type. One is just the alias of the other. Timestamp is deprecated, but SSMS still uses it (go figure), but...

    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: Constraints Check

    colin.Leversuch-Roberts (5/16/2011)


    it's quite interesting as to what sometimes seems quite simple often isn't.

    Yeah, this is a Hard problem with SQL functions. With regex it would be trivial, but...

    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: log_reuse_wait_desc in a 2000 database in 2005?

    jpSQLDude (5/16/2011)


    Ninja's_RGR'us (5/16/2011)

    Well it doesn't <completely> break it. that's why I said I preffer to have that run with full backups as first and last steps.

    I'm pretty sure 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: Constraints Check

    Ninja's_RGR'us (5/16/2011)


    SET IMPLICIT_TRANSACTIONS ON

    GO

    Create Table dbo.Maintenance

    (

    maintName varchar(225) NOT NULL,

    maintid int NOT NULL,

    CONSTRAINT Only_Characters

    CHECK (maintName LIKE '%[A-Z ]%')

    )

    GO

    INSERT into dbo.Maintenance (maintName, maintid) VALUES('abcdefghijklmnopqrstuvwxyz', 1)

    INSERT into dbo.Maintenance (maintName, maintid) VALUES('1', 1)

    SELECT...

    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: Constraints Check

    You have a double negative problem.

    Your constraint currently reads Where column NOT like NON-Numeric characters, ie must be like numeric characters only. The ^ is the second negation.

    Maybe this?

    Create Table...

    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: Need to exclude indexes from query

    http://sqlfool.com/2010/04/index-defrag-script-v4-0/

    Why roll your own when someone's done it for 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: Constraints Check

    '1' can be implicitly converted to integer and inserts fine. '12K34' is not and will not.

    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: log_reuse_wait_desc in a 2000 database in 2005?

    Ninja's_RGR'us (5/16/2011)


    Tx Gail. I just ran the GUI and copied the script into the job after a few alterations. I'll let MS know :-).

    SSMS writes crap code. 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: SQL Server Database Setup

    Depends. It's not just the blocking, it's that SQL doesn't bother taking any locks at all. Gone is the time required to ask for locks, overhead of lock memory, checking...

    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 - 26,086 through 26,100 (of 49,552 total)