Forum Replies Created

Viewing 15 posts - 19,066 through 19,080 (of 26,490 total)

  • RE: Twenty tips to write a good stored procedure

    I understand that what you wrote was an illistration of how IN works. My point is if you actually write a WHERE clause like that, you would use OR...

  • RE: What is the Transaction log backup date format, taken from Log shipping configuration?

    rambilla4 (8/24/2009)


    From Log shipping Backup job view history:

    Selected row details:

    Date8/24/2009 8:45:00 AM

    LogJob History (LSBackup_Mydb)

    Step ID1

    Serversqlvs\ins1

    Job NameLSBackup_Mydb

    Step NameLog shipping backup log job step.

    Duration00:00:00

    Sql Severity0

    Sql Message ID0

    Operator Emailed

    Operator Net sent

    Operator Paged

    Retries Attempted0

    Message

    2009-08-24...

  • RE: Twenty tips to write a good stored procedure

    Not disputing the NOT IN not working if nulls exist in the data.

    I'm disputing the explicit code that has been shown. First, whoever wrote should not have used somecol...

  • RE: Twenty tips to write a good stored procedure

    Andy DBA (8/24/2009)


    rja.carnegie (8/24/2009)


    Andy DBA (8/18/2009)

    For example:

    WHERE somecol NOT IN (1,2, NULL)

    is equivalent to

    WHERE NOT (somecol = 1 OR somecol = 2 OR somecol = NULL)

    Wait, isn't that...

  • RE: Twenty tips to write a good stored procedure

    arup_kc (8/24/2009)


    Unfortunately, in this case, you only substitted one form of RBAR for another form of RBAR. The best solution in this case is to find a set-based solution...

  • RE: Aging Query

    Ravi (8/24/2009)


    Lynn thanks for your feedback, form next time i will make sure i put all the problems /req. in the first post.

    i have attached the same query that...

  • RE: Twenty tips to write a good stored procedure

    arup_kc (8/24/2009)


    As an example, the cursor/temp table issue. In several SP's I have replaced the cursor with a combination of temaptable+while and it gave me better performance.

    Unfortunately, in this case,...

  • RE: Aging Query

    Ravi (8/24/2009)


    Thanks Lynn,

    Query works if i have 1 negative value in that list for the Particluar Item,City, Street like

    Date: 07/07/2009, Item : A City : NY , Street :...

  • RE: Validating Contiguous recs

    trudye10 (8/22/2009)


    Thanx to all of you for all your help, patience and guidance. I have managed to get the query completed.

    Thanx again,

    Trudye

    Trudye,

    Glad to hear that you managed to complete...

  • RE: Are the posted questions getting worse?

    GilaMonster (8/22/2009)


    Lynn Pettis (8/22/2009)


    Lynn tries to work with everyone. 😉

    Aren't there a few that have made even your personal black-list?

    You are right, to a point. But it seems...

  • RE: Problem with a simple update query - Update value in row from value in previous identical row

    conmcgarry (8/22/2009)


    Thanks I will look into that.

    But then I was wondering, if somebody were to enter an incorrect e-mail address initially, this would insert the incorrect e-mail address into...

  • RE: Are the posted questions getting worse?

    GilaMonster (8/22/2009)


    Lynn answers people that I won't. I answer people that Jeff won't. Jeff answers ones that I won't, etc.

    lol... Actually expected something more like this: I answer people...

  • RE: Are the posted questions getting worse?

    I don't think such a list should be posted. I'm not going to tell anyone who they should or shouldn't help. If you (speaking plural here) choose not...

  • RE: Did Oracle buy MySQL by accident?

    gnuoytr (8/21/2009)


    Umm. This thread is about Oracle and MySql. Whether such a thread should be on SQLServer dedicated site is not my call.

    Actually, this thread is a discussion...

  • RE: Validating Contiguous recs

    Bob did a good job describing what we need above. Please follow his lead and build us the better mouse trip to show us your problem and what you...

Viewing 15 posts - 19,066 through 19,080 (of 26,490 total)