Forum Replies Created

Viewing 15 posts - 7,981 through 7,995 (of 18,926 total)

  • RE: Synonym with servername\instancename

    Gianluca beat me to it, but this is straight from BOL (Create synonym).

    Assuming you didn't reverse the db and server in your question, this should work :

    EXEC sp_addlinkedserver '06dw';

    GO

    USE...

  • RE: Setting up the Primary Key

    MelS-512196 (6/16/2010)


    Since all the "big guns" are posting on this thread, wonder if I could get some thoughts on a design I am contemplating. We will have multiple sites,...

  • RE: Mentor

    scott.pletcher (6/15/2010)


    Jeff, you can over-engineer, I'll give you that. Huge amounts of wasted I/O to no purpose. But you feel good about it, and obviously for you that's...

  • RE: Mentor

    Easy, kick off the job that loads the data during the week-end at 4 PM friday rather than "off" hours. :hehe:

  • RE: Setting up the Primary Key

    Jeff Moden (6/12/2010)


    David Portas (6/12/2010)


    Maybe you are getting confused because you are asking the wrong questions. First determine what keys make sense from a business perspective. If you are thinking...

  • RE: Index consideration.

    GilaMonster (6/12/2010)


    Select * from table requires that SQL read the entire table. There's no index that can help with that operation.

    100% correct with the exception that you need select *...

  • RE: How many Records Will Get Selected

    UMG Developer (6/11/2010)


    lmu92 (6/11/2010)


    I second Ninja's_RGR'us recommendation regarding the script screenshot.

    For two reasons:

    #1) it requires at least a little more effort to run it before answering (for those who...

  • RE: How many Records Will Get Selected

    webrunner (6/11/2010)


    cathy.baker (6/11/2010)


    No matter if it's a bad question or a trick question. The answer is one. The question was "How many records are returned from the last...

  • RE: Please help WHERE CLAUSE

    davidshephard (6/11/2010)


    Thanks Sir

    :w00t:

    That avatar photo is a bit misleading... Gail is well, more of the female type 😉

  • RE: How many Records Will Get Selected

    Just my 0.02$, I don't care about the points but I fail to see the learning opportunity (for me) here. Like hugo said, you'll get an error as soon...

  • RE: Query Tuning

    SELECT MAX(CASE WHEN Flag_a = 'y' then DateA ELSE NULL END) AS Datea

    , MAX(CASE WHEN Flag_b = 'y' then Dateb ELSE NULL END) AS Dateb

    , MAX(CASE WHEN Flag_c = 'y'...

  • RE: Why Are Maint Plans So Buggy

    Remake the plan would be an obvious one. Assuming you are able to edit the plan, then maybe add a db then take it out again should regenerate the...

  • RE: SQL Server 2000 Index is missing a few records

    james.massey (6/8/2010)


    Ninja's_RGR'us (6/8/2010)


    How much rows (in % of the total rows in the table) are returned by those 1-2 cases?

    Are those rows returning more data than the other correct cases?

    How...

  • RE: SQL Server 2000 Index is missing a few records

    Well just to be sure.

    What I understand is that 99.9% of the queries, the plan is an index seek. However with a couple cases you get a...

  • RE: SQL Server 2000 Index is missing a few records

    How much rows (in % of the total rows in the table) are returned by those 1-2 cases?

    Are those rows returning more data than the other correct cases?

    How are the...

Viewing 15 posts - 7,981 through 7,995 (of 18,926 total)