Viewing 13 posts - 58,861 through 58,873 (of 58,873 total)
>I would like to do this in a view if possible becuase it is going to be used as the data source to a report designer.
How would you pass a...
March 2, 2004 at 9:19 pm
set @db =
(select TOP 1 Name from dbo.sysdatabases
where name like 'CCM%'
order by crdate DESC )
EXEC ('USE '+ @db
March 2, 2004 at 8:47 pm
March 2, 2004 at 8:35 pm
noeld had it right but swapped the @StartDate and @EndDate... his SELECT statment should have looked like this and THEN you would probably have the correct answer...
select Convert(varchar(5), @ENDDate -...
March 1, 2004 at 9:08 pm
March 1, 2004 at 9:01 pm
First, thanks for pointing out the difference there, Butch. Guess I better get some glasses!
And, thank you pnewhart, for pointing out just exactly...
March 1, 2004 at 8:48 pm
Maybe it's just me and I really am going blind... would someone tell me what the difference is between the two lines that pnewhart put in his last post?
February 28, 2004 at 12:47 pm
My experience has been that 2 DELETE queries will run much faster than a single query with a BOOLEAN "OR". Also, even with the "SIMPLE" recovery method set, the deletes...
February 25, 2004 at 8:52 pm
As I alluded to in my original posting...
Casting (or Converting) the date as INT or BIGINT may give you the wrong (next day)...
February 25, 2004 at 8:29 pm
The basis of sp_executesql is that it is calling a Stored Procedure in your database, somewhere. Stored Procedures are "precompiled". That is, the execution plan for the Stored Procedure was created...
February 25, 2004 at 5:15 am
Jason,
Just in case you still don't have an answer...
If you want to do the join as if TIME where not included in the...
February 25, 2004 at 5:00 am
Be careful... if any NULLS, answer will be NULL unless "Concatenate Nulls Yields Nulls" is turned off.
February 16, 2004 at 9:06 pm
Frank,
Don't be so quick to give up on the data layer. I had a similar challenge... I've posted ALL the code including the example data and table creation. The actual...
February 16, 2004 at 5:38 am
Viewing 13 posts - 58,861 through 58,873 (of 58,873 total)