Viewing 15 posts - 17,521 through 17,535 (of 18,923 total)
Wouldn't it be better to extract the hour part and do a % 12 on it so that you don't get 23H15:13 PM?? >> we know it's pm by that...
May 31, 2005 at 1:44 pm
Sorry for the late reply... forgot the hit send :
Select convert(varchar(8), GetDate(), 108) as 24H_Time
May 31, 2005 at 1:33 pm
Hey noeld, do you have an short exemple that makes that select work?
May 31, 2005 at 1:29 pm
Should be the same speed... with the wildcard at the front of the like, a scan is required to find all possible matches. Using charindex will always result in...
May 31, 2005 at 9:56 am
Real nice observation Badeau
I reran the code with @DateInt = 200505 and it runs slower (somewhat) than the date version. So looks like I'm back to square one on...
May 31, 2005 at 9:33 am
Can't wait to get an answer to that one
(sort of application generates 700mb worth of transaction data in an hour but doesn't...
May 31, 2005 at 9:00 am
Noeld will probabely have a better solution but this works (even if it's a little slow) :
Select distinct name from dbo.SysObjects O inner join dbo.Numbers N on len(name) <=...
May 31, 2005 at 8:58 am
Queries like this often end up as clustered index scan because there's no index that covers all columns.
Can we see the rest of the query and the execution plan?
Also is...
May 31, 2005 at 8:09 am
"A previous post says that dates make good indexes. I tend to disagree."
I can't say that this comment didn't make me jump from my seat. But apprently you are...
May 31, 2005 at 7:30 am
Viewing 15 posts - 17,521 through 17,535 (of 18,923 total)