Viewing 15 posts - 17,521 through 17,535 (of 18,926 total)
It's not that hard to do for the time part... but I wouldn't want to code the functions to handle the date part :
Declare @ms as int
Set @ms =...
May 31, 2005 at 1:55 pm
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
Viewing 15 posts - 17,521 through 17,535 (of 18,926 total)