Forum Replies Created

Viewing 15 posts - 1,711 through 1,725 (of 2,462 total)

  • RE: Problems using DateDiff

    Vladan (5/8/2010)


    Hi,

    this is quite an interesting problem. I never had to do anything with such calculations, but I was interested how I would solve it and here is what...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Recomplie option

    GilaMonster (5/7/2010)


    When the query(s) have no single optimal plan. One example is when you have severe parameter sniffing, data skew or similar.

    how do we come to know this ?...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Shrinking a log file

    sandhyarao49 (5/7/2010)


    Will shrinking a log file will break the Logshipping process.

    Any specific reason behind it ? i guess your log is rapidly growing.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: select case Insert, Update

    clucasi (5/7/2010)


    what kind of time frame would we expect the query to take.

    depends on various factors like

    hardware config, network io, vol of data in tables ,indexes, how much query...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: script help

    Atif Sheikh (5/6/2010)


    Why not to use Top(N) clause with Order by Col1?

    again Indexes will matter here

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: select case Insert, Update

    ColdCoffee (5/6/2010)


    NOTE: This uses the CURSOR method, and i am pretty sure there are many efficient methods to do this. And i smell the no-c.u.r.s.o.r-ever camp is just around the...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    TheSQLGuru (5/6/2010)


    >> WHERE NOTETYPES.Associated_Department_ID IS NULL OR OPERDEPTMBR.Operator_ID = @Operator_ID

    That type of WHERE clause is HORRIBLE from a performance standpoint. Our own Gail Shaw has a very nice blog...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: MAXDOP

    Chinna-703814 (5/6/2010)


    how do we set it for sql server 2005

    and more important why we need to set it up ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: select case Insert, Update

    clucasi (5/6/2010)


    Could anybody give an idea where lam going wrong.

    i have checked the insert and update and they work on there own, and I have tried the case statement and...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: MAXDOP

    refer this link

    http://www.sqlservercentral.com/articles/Configuring/managingmaxdegreeofparallelism/1029/

    http://support.microsoft.com/kb/329204

    http://technet.microsoft.com/en-us/library/ms181007(SQL.90).aspx

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Deleting TempDb log files

    magasvs (5/5/2010)


    I would add the second log file only if there is no space to grow for the first log file (to have the second file on different disk drive)....

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Users lost

    Tara-1044200 (5/5/2010)


    i miss this sql user for which i have to drop and re create.

    whenever we restore backup , users automatically get transferred (obviously orphan users) . So how did...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Multiple Databases on the same server

    Something like this

    select * from db1.dbo.table union all

    select * from db2.dbo.table union all

    select * from db3.dbo.table union all

    select * from db4.dbo.table

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Multiply DB Query not working.

    kbnyny (5/4/2010)


    2nd Question is how can I get all the results from the two db within the 4 columns without have both db table colums displayed.

    Either you need to give...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: lost passwords--any hope?

    middletree (5/4/2010)


    there's no record of any loginname/password, including sa. And yes, we did try sa and blank.

    then how do you login now ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

Viewing 15 posts - 1,711 through 1,725 (of 2,462 total)