Viewing 15 posts - 241 through 255 (of 327 total)
You cannot use the timestamp column as a revision date.
Timestamps are unique.
From Books online:
timestamp is a data type that exposes automatically generated binary numbers, which are guaranteed to be...
April 20, 2005 at 12:30 pm
I'm pretty sure Noel ment to add the % signs in the like statements.
Ex: ...when AddrInstr Like '%;P;%' Then 'P'...
April 20, 2005 at 12:13 pm
I don't think there is anything wrong with Select * except that as columns may be added or removed from the table over time your result set may...
April 19, 2005 at 6:09 pm
The test results I stated above reflect the use of a NON-clustered index on the date_field. I have retested with a Clustered index on the date_field and when selecting all...
April 18, 2005 at 12:46 pm
I ran a test using these two statements in a batch:
Select my_date
from my_table
where my_date >= dateadd(d,0, datediff(d, 0, getdate()))
and my_date < dateadd(d,1, datediff(d, 0, getdate()))
SELECT...
April 18, 2005 at 8:17 am
I think Remi is correct. On a large table where the date you are looking for is a small percentage of the total rows then Remi's method will use an...
April 16, 2005 at 9:01 am
Remi,
Your solution Select * from dbo.MyTable where date_field between dateadd(d,0, datediff(d, 0, getdate())) and dateadd(d,1, datediff(d, 0, getdate()))
returns date_field = to Getdate() and Getdate() + 1...
April 15, 2005 at 10:24 am
What in the Journal table determines the "lastest" entry and what is its column definition.
April 15, 2005 at 10:02 am
For what its worth, my recommendation is to use the BIT datatype. It provides the built in limitation of valid values and when looking at the column definition it is...
April 15, 2005 at 9:50 am
From BOL:
...Unless a statement block is used, the IF or ELSE condition can affect the performance of only one Transact-SQL statement. To define a statement block, use the...
April 14, 2005 at 12:42 pm
Rick,
For more info on your original question check out this theread:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=9&messageid=174762&edit=1
April 14, 2005 at 9:28 am
Remi,
Will this work without a table/index scan?
where datediff(d, Getdate(), date_column) = 0
April 14, 2005 at 9:11 am
For a complete discussion see this thread:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=9&messageid=171688#bm171793
Also check out this article for lots of info on dates and date comparisons:
http://www.karaszi.com/SQLServer/info_datetime.asp
April 14, 2005 at 9:07 am
DECLARE @key ....
SELECT TOP 1 @key = tKey FROM #Temp
Maybe I missing something, but using TOP without an Order By clause still will...
April 13, 2005 at 11:32 am
On a side note. You might want to double check this statement:
....
or u.c<>ADT.c
or u.l<>ADT.l
or u.st<>ADT.st
or u.postalCode<>ADT.postalCode
or u.mAPIRecipient<>ADT.mAPIRecipient
and ADT.objectclass in ('user', 'contact')
Should that...
April 12, 2005 at 6:04 pm
Viewing 15 posts - 241 through 255 (of 327 total)