Viewing 15 posts - 46 through 60 (of 428 total)
you are getting a conversion error because DATENAME returns nvarchar, not datetime.
June 30, 2008 at 7:51 am
noeld (6/27/2008)
In SQL Server, double = float(53)
maybe so, but double precision looks better. like you are doing super-fine carpentry work or something, so you need to be doubly...
June 27, 2008 at 10:10 am
I came to programming from computational physics. In calculations I often used doubles instead of floats. double is probably the least used datatype in sql server.
create table test...
June 26, 2008 at 9:19 pm
Vivien Xing (6/26/2008)
But openquery needs linkedserver. This is not what I want.
OPENROWSET does not require a linked server. requires just the connection string to the remote.
June 26, 2008 at 8:16 pm
you could use OPENQUERY or OPENROWSET
June 26, 2008 at 4:33 pm
oops, sorry. what I suggested won't work in this case because sp_spacused returns two result sets. you can't use insert/exec if the proc returns two result sets.
another option...
June 26, 2008 at 8:09 am
if you create a table with the same columns as the result set of sp_spaceused, you can insert into it like this:
insert mytable exec sp_spaceused
June 26, 2008 at 6:21 am
also float is really fun to use for surrogate keys.
😉
June 26, 2008 at 12:50 am
Please don't write code like this unless you want to be hacked. this proc is a prime target for a sql injection attack.
for dynamic search conditions, you will benefit...
June 25, 2008 at 8:14 am
I think OP must be talking about a function in client code.
June 25, 2008 at 8:05 am
Viewing 15 posts - 46 through 60 (of 428 total)