Forum Replies Created

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

  • RE: Uniqueidentifier is incompatible with int

    krypto69 (2/11/2009)


    The reason for dynamic sql, the front end has various fields the user may/may not enter and we don't know which they'll send.

    Which is reasonable, but the way you've...

    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: Table Joins and count(*)

    The format for aliases is Expression AS Alias, and your subquery is both unnecessary and incomplete. So..

    SELECT title,

    body,

    catid,

    datePublished,

    ...

    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: Uniqueidentifier is incompatible with int

    Two questions.

    What's the definition of Logger2?

    Why is this dynamic 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: Additional datafiles for a database

    george sibbald (2/11/2009)


    Throwing files at user databases seems to becoming very popular, I suspect this might be one of those urban myths..................

    It is. There are articles at the SQLCAT site...

    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 restore wanings and error messages

    Have you done as the error said and run a checktable (or better yet, a full checkDB)? Please post the errors it returned.

    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: CREATE DATABASE FOR ATTACH_REBUILD_LOG

    You do realise that by discarding the logs you are risking the attached database been transactionally inconsistent or even suspect?

    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: CREATE DATABASE FOR ATTACH_REBUILD_LOG

    I have to ask, why are you attaching a database without a 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: Managing Transaction Logs

    Phil Harbour (2/11/2009)


    This can't be true otherwise how could you rollback an uncommitted transaction which i understand to be a transaction without a closing commit statement in the transaction 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: Additional datafiles for a database

    FelixG (2/11/2009)


    The new server has 8 processors and I would like to have 1 database file per proccessor,

    Why? That recomendation is solely for TempDB because of potential allocation...

    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: Managing Transaction Logs

    Not sysdatabases. The view that has the log_reuse_wait_descr column is sys.databases, a SQL 2005 system view.

    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: UPDATE question

    Please post table structure, sample data and desired result.

    Thanks

    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 restart the trasaction.

    What's the exact error that you're getting?

    Turn traceflag 1204 on and the deadlock detector will write a deadlock graph into the error logwhenever it finds the deadlock. That graph 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: MERGE statement

    The MERGE statement is used to merge two tables together so that the destination looks like the source.

    Are these inserts, updates and deletes coming from a different table? If 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: sql 2005 Table limit

    Krishna (2/11/2009)


    Partition could be benefited if the table is queried heavily for performance reasons

    If can, but the partition function must be chosen very carefully, considering how the table 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: Counting the locks held by a procedure

    karthikeyan (2/11/2009)


    I want to know the lock count held by a procedure.

    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

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