Viewing 15 posts - 46 through 60 (of 429 total)
you are getting a conversion error because DATENAME returns nvarchar, not datetime.
---------------------------------------
elsasoft.org
June 30, 2008 at 7:51 am
nchar/nvarchar columns are for storing unicode strings.
---------------------------------------
elsasoft.org
June 28, 2008 at 3:58 pm
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...
---------------------------------------
elsasoft.org
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...
---------------------------------------
elsasoft.org
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.
---------------------------------------
elsasoft.org
June 26, 2008 at 8:16 pm
you could use OPENQUERY or OPENROWSET
---------------------------------------
elsasoft.org
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...
---------------------------------------
elsasoft.org
June 26, 2008 at 8:09 am
4) how to do my own exams?
---------------------------------------
elsasoft.org
June 26, 2008 at 6:22 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
---------------------------------------
elsasoft.org
June 26, 2008 at 6:21 am
also float is really fun to use for surrogate keys.
😉
---------------------------------------
elsasoft.org
June 26, 2008 at 12:50 am
besides returning data that is bogus, reading NOLOCK can also simply error out. this happens if the process that has the exclusive lock moves the row on a page...
---------------------------------------
elsasoft.org
June 25, 2008 at 11:40 pm
you can select from the table while the update has an exclusive lock only if you do a dirty read. This is done with the NOLOCK keyword. Have...
---------------------------------------
elsasoft.org
June 25, 2008 at 8:26 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...
---------------------------------------
elsasoft.org
June 25, 2008 at 8:14 am
I think OP must be talking about a function in client code.
---------------------------------------
elsasoft.org
June 25, 2008 at 8:05 am
is this a homework or interview question? 🙂
---------------------------------------
elsasoft.org
June 25, 2008 at 8:02 am
Viewing 15 posts - 46 through 60 (of 429 total)