Viewing 15 posts - 4,951 through 4,965 (of 5,394 total)
GilaMonster (8/10/2009)
Gianluca Sartori (8/10/2009)
Any volunteers to proof read an article on indexing?
Here's one! What should I do to get this exclusive preview?
Be patient. It's not finished yet. If you're keen...
August 10, 2009 at 3:43 am
Any volunteers to proof read an article on indexing?
Here's one! What should I do to get this exclusive preview?
btw, anyone who's feeling overly-critical today might want to avoid today's...
August 10, 2009 at 3:15 am
Ok, I could not resist, I HAD to turn it to a quirky update!
IF OBJECT_ID('TempDB..#tmpdata','U') IS NOT NULL
DROP TABLE #tmpdata
SELECT *, eventgroup...
August 6, 2009 at 10:00 am
Maybe I'm wrong, but I took a look at the data returned by the view in my system and it looks like it holds statistics for sql handles of queries...
August 6, 2009 at 6:52 am
Gianluca Sartori (8/6/2009)
maybe a cursor is the best choice here.
Hope Jeff doesn't find this thread!;-)
I could get porkchopped in seconds!:-D
August 6, 2009 at 4:52 am
Well, it's a bit more complicated than I thought, but it (poorly) does the trick.
IF OBJECT_ID('TempDB..#tmpdata','U') IS NOT NULL
DROP TABLE #tmpdata
SELECT issuenumber,...
August 6, 2009 at 4:50 am
Jeff Moden (8/5/2009)
Like I said... "rapidly becoming one of the greats". 😉
Thanks Jeff, I look forward the day I deserve your kindness! 😉
August 6, 2009 at 3:27 am
Jeff Moden (8/5/2009)
I cheat on things like this... xp_CmdShell to a batch file with a NETSEND.
LOL!
Haven't heard of NET SEND in the last 5 years!
It's disabled by default...
August 6, 2009 at 1:01 am
This should do the trick:
SELECT issuenumber, activitydate, activityseq, status
FROM (
SELECT *, prevstatus = (
SELECT status
FROM #projectactivity AS b
WHERE activityseq = (SELECT MAX(activityseq) FROM #projectactivity AS c WHERE activityseq <...
August 5, 2009 at 11:14 am
In SQL2008 you can use the new ISO syntax to perform rollups, as old WITH ROLLUP syntax will be removed in future versions:
select
nameofmarket as "market",
sum(sales) as sales,
sum(price) as...
August 5, 2009 at 10:40 am
Try GROUP BY WITH ROLLUP
declare @trading table (
nameofmarket varchar(20),
sales decimal(18,6),
price decimal(18,6),
goods int,
ordersplaced int
)
insert into @trading
select 'canberra' ,1000,300,25 ,40 union all select
'sydney' , 2000,800,40 ,50 union all select
'wellington',6000,1200,120 ,50...
August 5, 2009 at 10:37 am
Lowell, I was thinking of row_number() too, but then I saw it was a SQL2000 forum.
Anyway I don't understand how different "open" rows are related to subsequent operations: can you...
August 5, 2009 at 8:47 am
Uhhh.. wait: maybe you can query sys.dm_exec_query_stats and get statistics for statement you already have executed, something like:
select b.text, *
from sys.dm_exec_query_stats as a
cross apply sys.dm_exec_sql_text(sql_handle) as b
For stored procedures you...
August 5, 2009 at 7:55 am
I don't think what you are asking is feasable.
The only thing I remember is a percent_complete and estimated_completion_time in sys.dm_exec_requests, but only for these commands:
ALTER INDEX REORGANIZE
AUTO_SHRINK option with ALTER...
August 5, 2009 at 7:48 am
It can't be done that simply. There's no such feature in SQL Server. Plenty of workarounds, but no such feature.
August 5, 2009 at 7:03 am
Viewing 15 posts - 4,951 through 4,965 (of 5,394 total)