Viewing 15 posts - 811 through 825 (of 1,473 total)
#1CoolGuy (1/15/2009)
I was using Dynamic SQL because the tablename is built is built dynamically based on an input parameter. Sometimes...
January 15, 2009 at 9:31 am
dmc (1/15/2009)
January 15, 2009 at 9:23 am
SHAPE and APPEND are not valid T-SQL key words. Here's an article on how to use them:
January 15, 2009 at 9:10 am
If you use SELECT INTO with a temp table in dynamic sql, it won't be available to the proc that called it. Dynamic SQL launches in its own connection...
January 15, 2009 at 9:02 am
Transactions are definitely used in SQL 2000. I personally don't have much need for transactions so I don't have a ton of experience working them, but I'd assume you'd...
January 14, 2009 at 12:01 pm
You shouldn't need the begin and end either or the line feeds either.
January 14, 2009 at 11:50 am
If the amounts sold were directly related to the amounts bought, this would be a good report. If your payroll does the same with hours worked and amount paid,...
January 14, 2009 at 6:40 am
These are kinda a pain to do in SQL 2000. With SQL 2005, they're cake. Here's one way of doing it in 2000. Please notice the way...
January 13, 2009 at 10:43 pm
First of all, a disclaimer:
The report you asked for is something that is likely best handled in the front end. This really is not a cross tab report (at...
January 13, 2009 at 10:16 pm
DECLARE @DOB datetime
SET @DOB = '1/20/1980'
SELECT CASE
WHEN DATEPART(DY,GETDATE()) >= DATEPART(DY,@DOB)
THEN DATEDIFF(YY,@DOB,GETDATE())
ELSE DATEDIFF(YY,@DOB,GETDATE())-1
END
January 10, 2009 at 12:27 am
Had to add to it, a small reward for not allowing myself to respond the other day when I first that post :hehe:.
January 9, 2009 at 8:21 am
I agree wholeheartedly Jeff. I mean, it's not like we're here to help educate people or want them to actually learn anything. I for one prefer to answer...
January 9, 2009 at 8:20 am
Philip Horan (1/8/2009)
The original query was amended to add an INNER JOIN to table Products, this can be commented out (but know need to tell you guys that!).
While many...
January 8, 2009 at 4:04 pm
Viewing 15 posts - 811 through 825 (of 1,473 total)