Viewing 15 posts - 2,521 through 2,535 (of 5,356 total)
Actually you can cast to int, but then you have to use something like
select cast(cast(getdate()-.5 as bigint) as datetime)
select getdate()
select dateadd(d,datediff(d,0,getdate()),0)
select cast(cast(getdate()-.5 as bigint) as datetime)
------------------------------------------------------
2004-02-25...
February 25, 2004 at 8:23 am
While being more precise might be appropriate here, most of the times it's a nasty habit, because once you've committed yourself you'll get...
February 25, 2004 at 8:14 am
More than one way to skin that cat.
for the sake of simplicity, I would use Antares686 solution. I bet it is also the one with best performance. At least...
February 25, 2004 at 7:54 am
We're drifting off-topic. ![]()
Last one from me. When we run projections on the whole portfolio of our insured persons we deal with tens of...
February 25, 2004 at 5:59 am
Sorry, forgot to add that when I mean I use Excel I didn't mean that I also use Excel's built-in functions, which I agree are very limited. We use a...
February 25, 2004 at 5:42 am
I know Excel's limitation pretty well ![]()
![]()
I didn't mean I download hundreds of thousands of rows. The degree...
February 25, 2004 at 5:31 am
use pubs
go
declare @stmt nvarchar(100)
declare @t_name varchar(10)
set @t_name = 'authors'
set @stmt = 'SELECT * FROM ' + @t_name
exec sp_executesql @stmt
Also read http://www.sommarskog.se/dynamic_sql.html
![]()
February 25, 2004 at 4:24 am
To steal Kenneth' slogan: 'It depends...'
A lot of people seem to prefer mailing lists rather the webforums.
February 25, 2004 at 3:53 am
As for improvements in performance this might be interesting
http://www.sqlservercentral.com/columnists/jtravis/sp_performance.asp
http://www.sqlservercentral.com/columnists/bkelley/procedurecache.asp
As for renaming:
Take a look at BOL for 'renaming stored procedures'. Seems to be more work than looping through...
February 25, 2004 at 3:50 am
I hear you!
At home with only a 56k modem it's a real pain, but at work there is no huge delay at all. So I would suspect that no your...
February 25, 2004 at 3:27 am
Mark, thanks for given a hint on the 'correct' answer ![]()
Maybe it should only be allowed for a member to browse those QOD threads...
February 25, 2004 at 2:20 am
Medians, Quartiles, Quintiles, Deciles, Percentiles. Moreover these measures are reported grouped by any number of columns (and I have never seen this capability anywhere else). In this context, the use...
February 25, 2004 at 1:22 am
After Frank's diatribe, I'm not sure my input is needed, but here's a couple thoughts.
It's just to help the original poster to collect...
February 25, 2004 at 12:57 am
Viewing 15 posts - 2,521 through 2,535 (of 5,356 total)