Forum Replies Created

Viewing 15 posts - 44,056 through 44,070 (of 49,552 total)

  • RE: Commom Table Expressions VS Sub-queries

    Very little.

    A CTE can be considered a 'named' subquery. It means if you need the subquery in more than one place (say in select and where), you can define...

    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: if...then...else...end if

    Change the where clause to what Steve posted. That should sort the query out.

    If you post your existing ASP code (just the data access portion) then we can help 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: Oracle to SQL replication problems

    PaulB (10/2/2008)


    the plot thickens!... there is not such a thing as Bug #6646512 documented on Oracle's Metalink, interesting.

    <shrug> I got that info 3rd hand. I wouldn't be surprised if there...

    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: if...then...else...end if

    Great

    Do you need help getting it into ASP? Do you want help in turning it into a stored proc? Or is everything sorted now?

    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: Slow SQL Calls

    kelly (10/2/2008)


    There is just the basic indexes in there, and it's about only 200,000 records

    Basic indexes meaning what exactly? Please post the table structure and the index definitions. Remeber 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: if...then...else...end if

    You really should learn stored procedures. They make code more modular (T-SQL in the database and C#/VB in the client app) and they can prevent certain security problems that 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: if...then...else...end if

    a_bennen (10/2/2008)


    This makes a little sense. Where do I put the statement in my Query?

    What Steve gave is your query. Are you using stored procs (good practice) or ad-hoc 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: Clustering vs. Mirroring, and Maybe Load Balancing?

    AndyD (10/2/2008)


    With DB Mirroring, the application must support mirroring. Most commonly, by using an "SQL Native Client" odbc driver.

    Indeed. It's a point I forget to mention.

    With mirroring it's the client...

    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 2005 not using all CPU in multiprocessor (peak on 1 cpu alternatively)

    frank.brouwer (10/2/2008)


    Hi Gail,

    Thanks for your response, very interesting article.

    Which raises a question right away, is it of any influence on the CPU usage problem?

    Thanks,

    Frank.

    Is what of any influence? The number...

    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: Transitioning from Oracle to SQL Server...

    One other thing to add to Chris's list.

    Cursors (from what I understand) are often used in Oracle and are a good way to do things. Not so in SQL Server....

    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 FILE SIZE IS INCREASING EVEN AFTER CONFIGUREING LOG SHIPPING?

    Do you have replication on the DB?

    Is the log shipping running? (are the backups of the log working?

    Please don't shout (type in all caps).

    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: Transitioning from Oracle to SQL Server...

    llevity (10/1/2008)


    If we did that, would it cause objects with the same name to clash? In other words, if databaseA had an Employee table, could databaseB also have 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: Standards for Stored Proc Portability

    They might. I've never used them.

    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: High CPU. Many processes have SOS_SCHEDULER_YIELD

    blake colson (10/1/2008)


    SOLUTION: UPDATE STATISTICS on key table used within the query. My query returned in < 10 seconds where before I was killing it after 10, 20,...

    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: DBCC commands to Check Data and Index Linkage??

    kotlas7 (10/1/2008)


    Iam getting the message 'The command(s) completed successfully'

    No errors occurred. Is there any other DBCC commands to check The data and index linkage?

    Then you have no corruption. That's...

    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 - 44,056 through 44,070 (of 49,552 total)