Forum Replies Created

Viewing 15 posts - 12,406 through 12,420 (of 49,552 total)

  • RE: Help me buddy's... in sql server 2005 (topic:columns update)

    DivyaMohankumar (7/11/2013)


    5) Now my question is how can i get the old values in the table , as i inserted.

    Get a backup that was taken before the update was done,...

    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: Does anyone have an explanation for this behavior? or another reason to always schema qualify your tables

    Ok, so it's not actually running as 'sa'

    Can you security properties for that login, whether it's mapped to any databases and if so what the default schemas are?

    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: Does anyone have an explanation for this behavior? or another reason to always schema qualify your tables

    Can you add a bit to that step that writes into some log table the database user name being used and the login name?

    Suser_Sname() for login and USER_NAME() for 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: Does anyone have an explanation for this behavior? or another reason to always schema qualify your tables

    Any SQL Agent proxies in place?

    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: non identity auto increment field

    Contrived, but maybe you'll be able to use this as a starting point.

    CREATE TABLE Employees (

    ID INT IDENTITY(0,1),

    EmployeeID AS ISNULL(ID+5000000,0) PERSISTED,

    FirstName varchar(50),

    LastName varchar(50),

    Library AS (ID+1832) PERSISTED,

    Food AS (ID+880101802147) PERSISTED

    )

    ALTER 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: Does anyone have an explanation for this behavior? or another reason to always schema qualify your tables

    If SQL Agent is running as sa, then it will be running under the dbo user in the database and hence it's default schema is dbo.

    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: non identity auto increment field

    Ok, so how is the Employee number calculated, how is the barcode calculated? How is the Employee food calculated? Are they all just straight incrementing from the previous number?

    Can 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: non identity auto increment field

    ktager (7/10/2013)


    Gail, thanks, I was going to do some testing on controlling it myself. Unfortunately, there is no was to use the Identity field to calculate off of.

    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: Sql server Mirroring without witness Server

    Start->Program Files->Microsoft SQL Server->Documentation and Tutorials->SQL Server Books Online (or press F1 in Management Studio)

    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: non identity auto increment field

    The only auto-increment in SQL 2008 is the identity. You can try and roll your own increment (easy to get wrong) or maybe you can set up the other two...

    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 Mirroring without witness Server

    It's exactly the same as mirroring with a witness, you just leave out the step where you configure a witness. It's all detailed in Books Online, all the major options.

    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: copy system database files

    Without shutting SQL Server down, you cannot copy the files of 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: Upgrade from Sql 2003 to Sql 2008

    poratips (7/10/2013)


    We are planning to upgrade from Sql 2003 to Sql 2008 and I would like to know what needs to be prepared and how to do as I will...

    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: Order of rows in a Table with Identity Column.

    dwain.c (7/9/2013)


    Thanks for the clarifications. I take it you're saying that even with a MAXDOP 1 on the simple SELECT it doesn't guarantee row ordering.

    The only thing that guarantees...

    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: sys.dm_db_missing_index_details

    http://sqlinthewild.co.za/index.php/2010/09/14/one-wide-index-or-multiple-narrow-indexes/

    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 - 12,406 through 12,420 (of 49,552 total)