Viewing 11 posts - 16 through 26 (of 26 total)
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...
October 25, 2007 at 4:24 am
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...
October 23, 2007 at 4:56 am
insane_professional (10/22/2007)
What i want to do is...
October 23, 2007 at 4:32 am
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...
October 12, 2007 at 2:19 am
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...
October 12, 2007 at 1:51 am
Hey MarkC guess you made me realise i should start reading up on SQL XML
Cheers ;),
Jon
October 5, 2007 at 5:07 am
: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...
October 5, 2007 at 12:46 am
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...
October 5, 2007 at 12:02 am
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...
September 28, 2007 at 8:21 pm
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...
September 28, 2007 at 8:06 pm
hope this helps 😉
CREATE Function Foo (params...)
AS
IF (exists(somequery))
BEGIN
RETURN 1
END
ELSE
BEGIN
RETURN 0
END
GO
Cheers,
Jon
September 28, 2007 at 7:32 pm
Viewing 11 posts - 16 through 26 (of 26 total)