Viewing 15 posts - 17,341 through 17,355 (of 18,923 total)
Declare @StartD as datetime
Declare @EndD as datetime
Set @StartD = Dateadd(d, datediff(d, 0, GetDate()), 0)
set @EndD = dateadd(d, 1, @StartD)
Select @StartD, @EndD
Select * from dbo.YourTable where DateCol >= @StartD and DateCol...
June 6, 2005 at 12:01 pm
Order by 1 will not be supported in 2005... better get used to put the real column in there.
June 6, 2005 at 11:57 am
I ran your script but all 3 plans were exactly the same.
What version of sql server are you running?
What is the database compatibility level of the database?
Can you post the...
June 6, 2005 at 11:52 am
Insert into b (sho, evi, col1, col2)
Select sho, evi, col1, col2 from dbo.a A where not exits (Select * from dbo.B B where A.sho = B.sho and A.evi = B.evi)
June 6, 2005 at 11:23 am
Can you post the code you are using to call the sp along with the results?
June 6, 2005 at 11:20 am
Yup but it's gonna be even better next year.
June 6, 2005 at 9:26 am
RETURN
is the same as RETURN 0
Do you mean that you get 2 results set instead of one?
June 6, 2005 at 9:24 am
Or even...
Order by events.date????????
Because without a second column to sort on, the previous order by doesn't mean a lot...
June 6, 2005 at 9:09 am
Just to add even more fuel to this post, it would be better to use the bewteen operator for this task as it would use an index seek and not...
June 6, 2005 at 9:07 am
This cannot be done that way... You'd have to code the select statement of the cursor in dynamic sql too.
What problem are you trying to solve?
June 6, 2005 at 8:54 am
Thanx for the info
.
Bottom line is always declare the size!!!!!
June 6, 2005 at 8:51 am
Hey Frank... I think we all used words we didn't mean at one time or another...
June 6, 2005 at 8:36 am
Hey we all gotta to learn that someday... and last Friday was my day
.
June 6, 2005 at 8:34 am
Viewing 15 posts - 17,341 through 17,355 (of 18,923 total)