Forum Replies Created

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

  • RE: Looping

    jordon.shaw (10/16/2009)


    This project is almost becoming more trouble than its worth, but the boss wants it done.

    May I politely suggest that you (politely) point out to your boss that...

    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: In, Not In. Why does one work but not the other?

    ben.ward 42132 (10/16/2009)


    I'm loosing my marbles on this so I'm going to the pub now and I'm going to look for an explanation on monday. If anyone can offer any...

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

    jordon.shaw (10/16/2009)


    With this code, I'm getting the errors that I pointed out on the last page, saying no column was specified.

    See my edited post above. I rewrote the query for...

    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: TSQL Question about getting data

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

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

    jordon.shaw (10/16/2009)


    Sorry, I didn't see the from sys.tables, let me try that!

    No, no, no, no, no, no!!!!

    That was just an example of how the syntax works. See how I did...

    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 keeps getting analysed.

    The auto-close is the cause. Why is it enabled?

    When autoclose is true, SQL will shut the database down as soon as the last user disconnects. Next time someone wants 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: SQL SERVER 2000 corruption on table in MDSB BACKUPMEDIAFAMILY

    Then find the latest backup that's not corrupt and restore that. Look in Books Online for the procedure for restoring MSDB. It's not quite the same as for user 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: Query Performance Issue

    Go and rebuild all your indexes on staging as well. Do it after the stats update.

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

    jordon.shaw (10/16/2009)


    Well, I'm trying to run just the query to see the results, prior to doing the insertation; however, I'm getting an error that says" Msg 5308, Level 16, State...

    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: Query Help

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    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: Help me shut up a vendor

    Ninja's_RGR'us (10/16/2009)


    1 - Do you think the exec plans could be saved into trace? I think I remember someone talking about that in PASS 2007.

    Yes, look for the Showplan...

    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: t-sql query urgent need help

    tabrez.test (10/16/2009)


    is there any query to get the below result

    You want the 4th highest salary to sort first, then the rest of the rows, ordered by salary ascending? That can...

    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: t-sql query urgent need help

    tabrez.test (10/16/2009)


    (order means as they are entered in database)

    So you've got a column that stores the datetime that the row was inserted? Or an identity column?

    If you have neither,...

    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: HELP!! Im stuck with my query!!

    What's the relationship between applicant and program? Eiher a direct relationship or one via other tables?

    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: improving performance of stored procedure

    Please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

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