Viewing 15 posts - 2,041 through 2,055 (of 2,894 total)
Jeff Moden (3/4/2012)
We have a team...
March 5, 2012 at 3:14 am
Jeff Moden (3/4/2012)
Eugene Elutin (3/2/2012)
It may be that I will be killed by the community for the following advice :Ummmm... so what's your address, Eugene? 😉
Jeff, personally, you have no...
March 5, 2012 at 3:01 am
Could you please post the query with LEFT JOIN you've tried and also add some test data into setup...
March 2, 2012 at 10:08 am
ColdCoffee (3/2/2012)
...Hello Eugene, i had posted similar approach already on the same thread; i doubt if it will preform well.
...
Which one? Yours or my one? Compare to what?
My one does...
March 2, 2012 at 10:04 am
I think you still can do it with ##table, but you need to make everything in to your dynimc sql string:
DECLARE @sql VARCHAR(8000)
DECLARE @IdNbr VARCHAR(50)
SET @IdNbr = '312012145014'
SET @sql ...
March 2, 2012 at 8:33 am
SELECT r.session_id,r.command,CONVERT(NUMERIC(6,2),r.percent_complete)
AS [Percent Complete],CONVERT(VARCHAR(20),DATEADD(ms,r.estimated_completion_time,GetDate()),20) AS [ETA Completion Time],
CONVERT(NUMERIC(10,2),r.total_elapsed_time/1000.0/60.0) AS [Elapsed Min],
CONVERT(NUMERIC(10,2),r.estimated_completion_time/1000.0/60.0) AS [ETA Min],
CONVERT(NUMERIC(10,2),r.estimated_completion_time/1000.0/60.0/60.0) AS [ETA Hours],
CONVERT(VARCHAR(1000),(SELECT SUBSTRING(text,r.statement_start_offset/2,
CASE WHEN r.statement_end_offset = -1 THEN 1000...
March 2, 2012 at 8:06 am
Nope, you will not.
What you need to do is to have the splitter function.
It may be that I will be killed by the community for the following advice :hehe::
If...
March 2, 2012 at 7:46 am
If you go with the route with having permanent table, don't forget to implement some sort of clearing mechanism to keep the table size under control.
Also, as you will...
March 2, 2012 at 7:11 am
Looks like OP is happy with his SPACE-noodles and has lost the interest to the thread, while the busy people (us we all are) still in the process of discussion...
March 2, 2012 at 7:06 am
ColdCoffee (3/1/2012)
March 2, 2012 at 6:57 am
Mark-101232 (3/2/2012)
...Good catch!. If the OP had provided tables with primary keys, things would have been easier
...
Could be easier, but also it may not be the case, depends on real...
March 2, 2012 at 6:50 am
Use permanent table instead of ##table, tag each row with UserId and, if you have any, session token.
March 2, 2012 at 6:29 am
Use string splitter function (SQL one based on Tally-table is well described in http://www.sqlservercentral.com/articles/Tally+Table/72993/ by Jefff Moden).
March 2, 2012 at 6:27 am
As everyone else I would suggest to read through forum etiquette article by Jeff Moden, link also can be found at the bottom of my signature.
Here I try to show...
March 2, 2012 at 5:17 am
sotn (2/29/2012)
March 1, 2012 at 11:12 am
Viewing 15 posts - 2,041 through 2,055 (of 2,894 total)