Viewing 15 posts - 151 through 165 (of 327 total)
If I can speak for Joe I think his school of thought is that you should be able to define a PK from a set of column(s) that are...
May 23, 2005 at 10:00 am
Why don't you just use the solution they gave you two days ago at sqlTeam??
May 22, 2005 at 1:37 pm
Select top 1 *
From #tbl
Where pid = 1
Order By a asc, b desc, c asc, i asc
pid a b c i
----------- ----------- ----------- ----------- -----------
1 1 ...
May 21, 2005 at 10:15 pm
Assuming your "DateTime" column is a data type of datetime then using a function such as (CONVERT(CHAR(11),DateTime) will not allow the optimizer to use any index that may be on...
May 21, 2005 at 1:00 pm
Create a temp table and have each of your statements place their results in the temp table. For example Insert into #temp ... Select......
Then at the end do one Select...
May 21, 2005 at 11:03 am
I think you haven't clearly stated the problem or it is ambiguous by its nature. Given your example, can you state exaclty what logic you would like to be applied...
May 20, 2005 at 4:37 pm
"...If your clustered index is by date hired (DateTime Data) you will always, without fail, never miss, until the end of time, guaranteed have the data returned ordered by the...
May 20, 2005 at 12:00 pm
Here's one more interesting reply from the ms newgroup.
The ODBC escape sequences and functions are not undocumented.
They are documented at:
http://msdn.microsoft.com/library/en-us/odbc/htm/odbcescape_sequences_in_odbc.asp
May 20, 2005 at 11:29 am
After looking at this suggestion from PhilPacha it apprears to be the best solution. So check out DBCC CHECKIDENT.
May 20, 2005 at 8:11 am
I understand how clustered indexes work and they can be a very handy feature. The bottom line is that if you truly want to guarantee the order in which...
May 20, 2005 at 8:06 am
Bob,
Your best bet is to stick with Getdate(). This is the standard function used by just about everyone.
I curious, where did you come accross fn Now() ?
May 19, 2005 at 6:04 pm
In addition to several replies advising to stay away from such undocumented features I did get this reply to my post on a ms newsgroup: