Forum Replies Created

Viewing 15 posts - 4,846 through 4,860 (of 5,504 total)

  • RE: getdate() convert function

    Garadin (10/28/2009)


    I do seem to remember that there are slightly different variants of both of these methods that are supposed to overcome very specific problems though (using a higher precision...

  • RE: getdate() convert function

    ssismaddy (10/28/2009)


    for me

    select convert(datetime,convert(char,getdate(),100)) it worked perfect.I just don't want seconds and msecs.

    In that case I'd use

    SELECT dateadd(mi, datediff(mi, 0, getdate()), 0)

    It's supposed to perform better than converting...

  • RE: Cursorfetch - number of variables declared in the INTO list must match that of selected columns

    steyaert (10/28/2009)


    Have the same error for a different reason, although I haven't found it yet. In my "short" stored procedure, it says the error is at line 340. ...

  • RE: query to modify

    I just checked this thread again and figured that OP's last login was on 10/14/2009 9:30:22 AM (assuming, he's not using multiple nicknames).

    So he missed all the solutions provided...

  • RE: How I can make look like I expert on SQL Server?

    Hi torpkev,

    would you mind removing the last word before your sig in your prev post?

    Kinda crossing the line...

    Btw: I'm not sure if this thread is feeding a troll (I'm not...

  • RE: date columns based query

    Edit: duplicate post.

  • RE: date columns based query

    Please read and follow the recommendation given in the first link in my signature.

    It will help us help you.

  • RE: Are the posted questions getting worse?

    Roy Ernest (10/15/2009)


    What is going on in THE THREAD? Wasnt there a Code ban on THE THREAD? :hehe:

    [childish] It wasn't me who started it regarding the specific issue.[/childish]

    Want me...

  • RE: Are the posted questions getting worse?

    Bob Hovious 24601 (10/14/2009)


    That's how I interpreted it, Gail. This was my quick-and-dirty solution.

    Sample code removed to limit the amount of actual code on THE THREAD.

    if you can't...

  • RE: How to insert using values from query results for one field of statement

    atharmon (10/13/2009)


    I do appreciate result set processing over row level processing, but performance would really depend on number or rows.

    Usually, such statement calls for some sample code to prove...

  • RE: user defined functions & columns

    Please provide more information on what you're trying to do.

    It's hard for us to translate

    "......

    .....

    "

    into something that "manipulates all columns in the table"

    We don't even know what table you're...

  • RE: query to modify

    steveb. (10/14/2009)


    Well i guess it wasn't really urgent after all..

    Or the UNPIVOT hint pointed him in the right direction (at least one of the directions leading to the expected...

  • RE: How to insert using values from query results for one field of statement

    cjohn5552 (10/13/2009)


    Hey,

    Thanks for your reply. The query is of the form:

    select personID from people

    where height = 'X'

    and weight =...

  • RE: Missed the end of the month

    krypto69 (10/13/2009)


    is this wrong?

    original way:

    WHERE

    isnull(datediff(dd,ld.delq_dt,getdate()),0) < 30

    this:

    WHERE

    isnull(datediff(dd,ld.delq_dt,'2009-09-30'),0) < 30

    Now I'm totally confused...

    During the last couple hours I've been trying to explain how to get the data from the previous...

  • RE: Missed the end of the month

    I don't get any results either.

    But this might be caused by the fact that I don't ave anything to test against. 😉

    Please follow the first link in my signature...

Viewing 15 posts - 4,846 through 4,860 (of 5,504 total)