Forum Replies Created

Viewing 15 posts - 1,996 through 2,010 (of 3,232 total)

  • RE: Foreign keys good or bad practice?

    prattmounfield (11/19/2007)


    In back-to-back test, I found the following with SS V7 (I know a while back but probably still valid): No RI is the fastest (of course); RI enforced by...

    John Rowan

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

  • RE: Foreign keys good or bad practice?

    pdross2000,

    You are correct that you cannot truncate a table with a foreign key and that it may make spot restoring tables a bit more difficult but you are placing...

    John Rowan

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

  • RE: Can't restore database / Log issues?!

    Well, I would wait longer than 15 minutes and see what happens. Don't trust the progress messages, just wait a bit and see what happens. It will take...

    John Rowan

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

  • RE: Foreign keys good or bad practice?

    The problem is that this attitude will force the existence of those spreadsheets/access databases/word files full of data that should be in the database but can't be entered because it...

    John Rowan

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

  • RE: Ref:Find Consective Records

    OK, I think what you want is to find the values that correspond to the smallest YearValue for each Value. If this is correct, something like the following code...

    John Rowan

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

  • RE: Ref:Find Consective Records

    It is not quite clear what you are asking for. Can you give a written description of what you want to get back? Also include the result set...

    John Rowan

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

  • RE: How to retrieve different records from same table present in different databases

    Yes, just as Adam said, create a linked server and then run the query using the 4 part names. As for the query, you are looking for rows that...

    John Rowan

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

  • RE: Foreign keys good or bad practice?

    There shouldn't be data to fix if the application is truely handling referencial integrity. The mere fact that this is a concern tells me that you have the illusion...

    John Rowan

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

  • RE: If else Query help

    Whoa, hold on here my friend. How are you comming to your first end date? There is no 14th month! I thought from your original post that...

    John Rowan

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

  • RE: Foreign keys good or bad practice?

    SQL Noob (11/14/2007)


    there are no good and bad or black or white in SQL, only gray areas and what is good for your situation

    we have very few FK's where i...

    John Rowan

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

  • RE: Slow Queries

    Well first of all, any time you run a 'SELECT *' you get a full table scan. Your query plan shows a clustered index scan but in this case,...

    John Rowan

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

  • RE: Retrive records form same table in different databases

    Please do not cross post. You only need to post your question in one forum!! Continue this thread here:

    http://www.sqlservercentral.com/Forums/Topic422446-8-1.aspx

    John Rowan

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

  • RE: How to retrieve different records from same table present in different databases

    What exactly are you looking for? Do you want to select rows that are different in the 2 tables? Are the databases on the same server or not?

    John Rowan

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

  • RE: How to retrieve different records from same table present in different databases

    Please do not cross post. Continue this thread here:

    http://www.sqlservercentral.com/Forums/Topic422446-8-1.aspx

    John Rowan

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

  • RE: If else Query help

    If start date < 1/1/2003, End date = '1/1/2003'-start date + Days

    I am a bit confused here. What do you mean EndDate = '1/1/2003' - startdate + Days? ...

    John Rowan

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

Viewing 15 posts - 1,996 through 2,010 (of 3,232 total)