Viewing 15 posts - 901 through 915 (of 2,038 total)
Hi Mike
Look for DMVs "sys.dm_exec_sessions" and "sys.dm_exec_requests"
Greets
Flo
May 18, 2009 at 11:21 am
You can sort by NEWID()...
DECLARE @xml XML
SELECT @xml = '
1
2
3
4
5
6
7
'
SELECT TOP(3)
T.C.value('(text())[1]', 'int')
FROM @xml.nodes('root/item') T(C)
ORDER BY NEWID()
Greets
Flo
May 18, 2009 at 10:57 am
APARNA (5/17/2009)
May 18, 2009 at 10:38 am
Hi
naveenreddy.84 (5/18/2009)
1) What scenario is best suited for implementing CLR triggers?
As Barry already wrote, accessing external resources like a HTTP post/request.
2) What are things that needs to be taken care...
May 18, 2009 at 3:08 am
Hi Bob
Bob Hovious (5/15/2009)
Bruce, how does the RANK approach differ from ROWNUMBER()?
I would say, it depends on the data and the requirements.
ROW_NUMBER() is always incremental. RANK() and DENSE_RANK() increment by...
May 17, 2009 at 12:14 pm
Why? :unsure:
I use this since about 5 years. Long time before I joined SSC 🙂
May 17, 2009 at 12:00 pm
Thanks Jeff!
It's not a big deal but if I get one Dollar for every time I showed somebody to remove a cursor I would be a rich man...
Best wishes
Flo
May 17, 2009 at 11:36 am
Hi John
Didn't compare the time-stamps. Just thought that Lowell's post might be the answer (I didn't validate it). It was an information for you and others.
Greets
Flo
May 17, 2009 at 9:14 am
Hi
Don't try to concatenate a complete UPDATE statement with all values. Use the SqlParameter objects instead.
Greets
Flo
May 17, 2009 at 9:04 am
No cross-posts. Lowell has already answered here:
http://www.sqlservercentral.com/Forums/Topic718578-149-1.aspx
May 17, 2009 at 8:59 am
Hi
Your Tally table does not contain any numbers 😉
Put this code above your URL-split:
INSERT INTO dbo.Tally
SELECT TOP (11000)
ROW_NUMBER()...
May 17, 2009 at 8:51 am
Hey Paul
Nice new avatar! Is it Raumati Beach?
May 17, 2009 at 1:54 am
Hi ohio_bear
Funny requirement 😀
First use a modified version of the split function above to get the slash positions into a table. After that you can use a PARTITION row-number or...
May 16, 2009 at 10:44 am
Hi
As first, thanks for the very good sample data and required result description!
You can use a CASE block to get the specified column value:
SELECT
...
May 16, 2009 at 5:27 am
Viewing 15 posts - 901 through 915 (of 2,038 total)