Viewing 15 posts - 1,531 through 1,545 (of 2,894 total)
It's hanging up because it's waiting for output.
Try:
exec xp_cmdshell 'start c:\windows\system32\eventvwr.msc'
The above should return.
Then check in Task Manager, you will see MMC.EXE process running.
You will not be able to...
May 21, 2012 at 6:33 am
khushbu (5/21/2012)
Eugene Elutin (5/21/2012)
khushbu (5/21/2012)
derek.colley (5/21/2012)
Yes, execute:xp_cmdshell 'eventvwr.msc', no_output in a new query window.
If this fails prefix with c:\windows\system32.
I already tried this .. strangely nothing happens and query keep on...
May 21, 2012 at 5:20 am
khushbu (5/21/2012)
derek.colley (5/21/2012)
Yes, execute:xp_cmdshell 'eventvwr.msc', no_output in a new query window.
If this fails prefix with c:\windows\system32.
I already tried this .. strangely nothing happens and query keep on executing .. and...
May 21, 2012 at 5:03 am
I don't think there is any in-build way. You will need to use "instead of" triggers when inserting and updating data. Check this one, it has some good samples to...
May 21, 2012 at 4:30 am
k.subramanyam1017 (5/21/2012)
could u please any one tell me the these questions
1) what is your company file architecture and how much data u r handle.
2) how...
May 21, 2012 at 4:17 am
Tried this, also failed:
EXEC sp_executesql
@query = @sql,
@params = N'@subTotal VARCHAR OUTPUT',
@subTotal = @subTotal OUTPUT
Error:
Msg 214, Level 16, State 2, Procedure sp_executesql, Line 1
Procedure expects parameter '@statement'...
May 21, 2012 at 3:39 am
Jeff Moden (5/16/2012)
May 18, 2012 at 3:39 am
Brandie Tarvin (5/17/2012)
May 18, 2012 at 3:17 am
You again provided insufficient sample of data, so people will advise you to use dens_rank and it's not what you need. If you could confirm the following:
001 20100403...
May 18, 2012 at 3:07 am
Yes, it is possible. You can declare variable of a table type (known as table variable).
You will be able to insert all results into this "variable".
May 18, 2012 at 2:58 am
OP wanted to start IDENTITY from the position calculated/given in variable. The only way to do this is to INSERT with INSERT_IDENTITY ON. It's impossible to do it with ALTER...
May 17, 2012 at 12:03 pm
Daxesh Patel (5/17/2012)
Following may help if you have enough sql memory available. if not, this may dump the intermediate resultset in tempdb and eventually...
May 17, 2012 at 10:44 am
Brandie Tarvin (5/17/2012)
...I'm a little confused. Why don't you just ALTER the table and set AllocationID as an IDENTITY field? You wouldn't have to fuss with variables, then.
Could you please...
May 17, 2012 at 10:40 am
You should declare your @sql variable as NVARCHAR (not varchar)
May 17, 2012 at 10:32 am
Viewing 15 posts - 1,531 through 1,545 (of 2,894 total)