Viewing 15 posts - 6,181 through 6,195 (of 7,168 total)
Jnrstevej (6/8/2011)
June 8, 2011 at 11:58 am
Thanks. When I simply add those columns to the group I get more than one column per transId/radid/ProcID combination...which I see you do not want based on your expected results....
June 8, 2011 at 11:54 am
Have you attempted to write a query yet? Please share what you have done so far.
June 8, 2011 at 11:14 am
Elliott Whitlow (6/7/2011)
On most of my systems I disable xp_cmdshell and don't allow its use..
+1000
June 8, 2011 at 11:07 am
Thanks for the great article David!
From the article:
Therefore, each row in a database, at any given point in time, can be identified by three numbers; file number - page number...
June 8, 2011 at 10:59 am
I think what you want to do is put your query into a CTE and then when selecting from the CTE add a column to the SELECT list that makes...
June 8, 2011 at 10:02 am
If you go with SSIS consider having it run on one thread, select the data out of TableA in clustered index order and do a sorted-insert into TableB.
If you have...
June 8, 2011 at 9:30 am
No problem. I just realized something else, because you know up front that both result sets will be unique you can use UNION ALL instead of UNION and save yourself...
June 8, 2011 at 9:11 am
sqluser_8119 (6/8/2011)
I just need direction on how to commit N rows and move onto the next row without looping to the beginning of the table after the commit.
Third try...please provide...
June 8, 2011 at 9:05 am
The worded explanation makes more sense with an accompanying code example 😉
June 8, 2011 at 9:03 am
Also, please provide the DDL for TableA and TableB.
I still think your query has a problem...where is the table with alias b?
June 8, 2011 at 8:51 am
Daniel H (6/7/2011)
I was really close on my own. I knew that I could use a CTE and possibly use the row_number() as an "index". I couldn't...
June 7, 2011 at 2:45 pm
Nice job posting usable DDL, DML and expected results!
This should get you there:
DECLARE @Autos TABLE
(
itemid int
...
June 7, 2011 at 2:17 pm
That is one way to do it and it is very nice that you decided against using a loop. I suspect there are hundreds of ways to get the task...
June 7, 2011 at 1:26 pm
Viewing 15 posts - 6,181 through 6,195 (of 7,168 total)