Forum Replies Created

Viewing 11 posts - 16 through 26 (of 26 total)

  • RE: Return result of dynamic query from function

    Hi there,

    i'm not sure what you really want, but my random guess is that you are trying to execute dynamic sql, and you wanted the results to be returned...

  • RE: Conversion failed when converting datetime from character string.

    Hi there, have you tried convert()?? me only conversant in simple sql:hehe:

    WHERE YEAR(CONVERT(DATETIME, importdate, 103)) = 2007

    103 = DD/MM/YYYY format change to suit your date time zone accordingly 😉

    hope it...

  • RE: query help - searching table and returning value from record

    insane_professional (10/22/2007)


    hi, i think its a pretty simple task but i just cant seem to get it right as I am pretty new to SQL.

    What i want to do is...

  • RE: Hepl!! could a Trigger/Job solve my problem?

    Thanks Andras,

    Been google-ing for sometime but fail to come across any forum thread/article. Guess i've been using the wrong keyword.. That thread is great.. now i've some ideas to kick-start..

    With...

  • RE: Hepl!! could a Trigger/Job solve my problem?

    Thanks John for ya reply 🙂

    Its a gd and easy way out but i've to schedule the job to run daily. Guess i'll do it your way or alternatively is...

  • RE: How to do

    Hey MarkC guess you made me realise i should start reading up on SQL XML

    Cheers ;),

    Jon

  • RE: How to do

    :w00t: its not that i don't know the solution, i'm just trying to discourage what i would classify to be application logic at the database tier..

    here's a working syntax.. as...

  • RE: How to do

    why not do this at application level instead?? It'll simplifies things alot.

    Cheers ;),

    Jon

    PS: Its possible to do it with T-SQL but i wouldn't recommend that, you can do it with...

  • RE: Selecting distinct records

    by the way, if you would like to have

    1 1 aaa AAA CA

    2 1 aaa AAA LA

    being returned as

    1 1 aaa AAA CA/LA

    you can acheive it by using...

  • RE: Selecting distinct records

    Hi there,

    hmmm, sounds to me that you only needed 1 record to be return?? Correct me if i'm wrong, in SQL Server there is nothing such as "groupdistinctcolumns", but there...

  • RE: RETURN EXISTS(...)

    hope this helps 😉

    CREATE Function Foo (params...)

    AS

    IF (exists(somequery))

    BEGIN

    RETURN 1

    END

    ELSE

    BEGIN

    RETURN 0

    END

    GO

    Cheers,

    Jon

Viewing 11 posts - 16 through 26 (of 26 total)