Viewing 15 posts - 1 through 15 (of 22 total)
Thank you for your input.
why do you have a table that has nothing more than a single identity column?
the sole purpose for it is to generate unique sequential numbers (IDs)...
January 31, 2013 at 2:02 pm
Eh, dynamic sql ?. Anything is possible with dynamic sql, right?:-)
January 31, 2013 at 12:27 pm
Thanks, that's what I initially had on my system. It is apparent now, that there is no way
declare @howmany int=3
insert top (@howMany)
can be used to force...
January 30, 2013 at 12:23 pm
btw, Thank you for showing how to use output clause in combination with default values, as it is not something we run into everyday!
January 29, 2013 at 4:19 pm
you are still using the GO 3 method.:cool:
The question is how to do it without GO 3 ??
January 29, 2013 at 4:13 pm
Sean, please post the working sql if you have it. I tried using output clause and still unable to output 3 identity numbers which is the goal here.
January 29, 2013 at 3:48 pm
Select
client_net_address,local_net_address
from sys.dm_exec_connections
where session_id=@@SPId;
- This works
Yours does not on our cluster evironment (NULL)
create table #temp (ipLine varchar(200))
insert #temp
...
September 30, 2011 at 1:09 pm
Exactly, I was just wondering whether you know where ?
May 26, 2010 at 8:36 am
RegOpenKeyEx() returned error 2, 'The system cannot find the file specified.' :doze:
this is on named instance of sql 2008 on 64-bit 2008 server
May 10, 2010 at 1:26 pm
cute script, but fails with error:
"Msg 8152, Level 16, State 13, Line 1
String or binary data would be truncated."
there is also another much shorter script for this (which actually works):
EXEC...
January 5, 2010 at 9:43 am
can't you just use SSMS to script the jobs ??
September 23, 2009 at 11:52 am
Heh... ALL code is production code... maybe just not yet.
- unless there is a DBA that will prohibit it:-D
August 14, 2009 at 8:31 am
to be clear, that is not a production code. Column names have been used in production for over decade now. yes order by name works, ...
Let me restate the question:...
August 11, 2009 at 2:40 pm
Viewing 15 posts - 1 through 15 (of 22 total)