Forum Replies Created

Viewing 15 posts - 32,251 through 32,265 (of 49,552 total)

  • RE: Trying to bring the database as suspect

    Not sure I understand, are you trying to make a database suspect or are you trying to fix a suspect database?

    A missing data file won't send a DB suspect, it'll...

    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: Timeout Period

    MothInTheMachine (6/23/2010)


    What effect does the Query Timeout setting in SQL Server 2008 have?

    There isn't a query timeout setting in SQL. There's a remote query timeout, which affects queries that 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: Upgrade to 2008 from 2005 failed due to sa account being renamed

    sree-879715 (6/23/2010)


    I checked everything and tried again but not able to run the script to alter the sa login name

    Why 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: dynamic/flexible query to filter records based on combination of user input (userid, status, fromdate and uptodate)

    Gianluca Sartori (6/23/2010)


    You would generally want to turn

    datetimecolumn = @dateparameter

    into

    datetimecolumn between @dateparameter AND DATEADD(day,1,@dateparameter).

    Careful, the second is inclusive on the upper bound (next day at midnight). That's generally 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: Convert old syntax

    It's worth noting that ! is the logical NOT operator.

    != : not equals

    !> : not greater than

    !< : not less than

    http://msdn.microsoft.com/en-us/library/ms189863%28SQL.90%29.aspx

    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: Convert old syntax

    WayneS (6/23/2010)


    Hopefully, while you are cleaning up these procedures, you're taking care of that bigger problem at the beginning of that line: "WHILE @@fetch_status"

    And the one that starts DECLARE CURSOR

    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 stuck "in recovery"

    You're confusing concepts. Log chain has to do with whether you can do point in time restores (restore a database to any time) using RESTORE DATABASE and RESTORE LOG.

    Recovery (restart...

    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: Convert old syntax

    From Books Online (SQL 2008)

    != (Not Equal To) (Transact-SQL)

    Tests whether one expression is not equal to another expression (a comparison operator). If either or both operands 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: Placing Indexes on Separate File Group(s)

    Maybe.

    Depends what is the current bottleneck. If it's not IO, separating the data from indexes may not help. Also depends on where you're putting the files. Same spindles or separate...

    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 Doubt - 1

    We're not going to give you the answer to interview questions. The point of an interview is to see what you know, not what other people know.

    For triggers, start with...

    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 Doubt - 1

    Homework? Interview questions?

    The first I'm not sure what you're asking, the second is rather vague.

    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: Restoration failed with error

    You'll probably have to get a new backup if the drive that it was on is faulty.

    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: Restoration failed with error

    Bhuvnesh (6/23/2010)


    this error generally comes when there is corruption in data.

    Check the error. It's the log file that its complaining about, not the data file.

    I'm not sure how valid those...

    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 USE SQL server 2005 Management Studio to connect SQL server 2008

    Apply SQL Service pack 3 to the client machine. It'll update the tools and allow SSMS to connect to SQL 2008.

    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 Express on MAC

    What's the error?

    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 - 32,251 through 32,265 (of 49,552 total)