Forum Replies Created

Viewing 15 posts - 2,956 through 2,970 (of 3,232 total)

  • RE: Building (fast) Stats in a table with 3+ Million Rows?

    Gila,

    "As a suggestion, post your table design, index design and long running queries and we can offer suggestions"

    Dan has a second thread pertaining to this issue with the table/index...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Can you select from a table that is stored in a Variable?

    In EM, right-click on the table and go to All Tasks>>Generate SQL Script.

    Can you post test data or create a couple of examples?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Can you select from a table that is stored in a Variable?

    How about a few sample rows from Response_1000 and maybe the same for RpsRespondent (along with the DDL)?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Can you select from a table that is stored in a Variable?

    FYI... I also placed this same request in your performance tuning thread..

    You need to figure out how to get your queries to use an index seek.  On a table with...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Building (fast) Stats in a table with 3+ Million Rows?

    "There's already proper indexes, and a lot of my queries require and perform index scans."

    The index scans are probably your problem.  Index seeks perform much better than index scans.  You...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Can you select from a table that is stored in a Variable?

    Can't you achive the same thing by placing a clustered index on a questionID column in your answers table?  If you know what question that you are working with, you...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: DTS Backup

    Here are some good suggestions:

    http://www.sqlservercentral.com/columnists/awarren/copyingdtspackagestoadifferentserver.asp

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Can you select from a table that is stored in a Variable?

    You would need to use dynamic SQL.  Look in BOL for sp_executeSQL.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Move to New Server

    Your plan sounds good to me.  It is always nice to be able to stage a server.  I have done it that way and also the not-so-nice way of...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Using EXEC for DBCC

    SQL Server is not always able to defag an index.  What happens if you run the DBCC command straight from QA and not in the stored procedure using dynamic SQL? ...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: SQL SERVER Dropping connections

    What OS version are you on?  You may consider adding any available OS service packs.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Server capability - Help

    When you say 'normal' P4, I assume that you mean you are using a workstation class machine with a single processor, 1GB of RAM and a single, 222 GB hard...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: sql date question

    Right, but using getdate() in combination with month, day, year, or even convert will get you a date only. 

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: sql date question

    Look up GETDATE() in BOL.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Evaluate a formula

    This works, but you will need to add a where clause into the update statement and change the decimal scale and precesion to fit your needs.  Also, if you need...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 2,956 through 2,970 (of 3,232 total)