Viewing 15 posts - 6,226 through 6,240 (of 10,143 total)
Nageswari.J (6/20/2012)
Yeah u r correct, I also face the same problem when i checked.. I thought to ask to u. before itself u answered... Thanks once...
June 20, 2012 at 1:52 am
pwalter83 (6/19/2012)
ChrisM@Work (6/19/2012)
Paul, how many rows max will you have to roll up like this? Your example shows two rows - can it be 3, or 4, or n?
Could be...
June 19, 2012 at 10:11 am
Your first post has a code sample like so:
DECLARE @eof as nchar(1)
DECLARE @replace as nvarchar(max)
DECLARE @exec as nvarchar(max)
SELECT @eof = CONVERT(NCHAR(1), 0xFDF8)
SELECT @replace = char(39) + char(39) + char(39) +...
June 19, 2012 at 9:12 am
Paul, how many rows max will you have to roll up like this? Your example shows two rows - can it be 3, or 4, or n?
June 19, 2012 at 9:06 am
snigdhandream (6/19/2012)
June 19, 2012 at 6:37 am
If you absolutely cannot follow any of Grant's excellent suggestions, then there is a cheat which may work for you:
-- fuzzy non-blocking prefetch, faster without blob column
SELECT [ONLY the...
June 19, 2012 at 5:40 am
June 19, 2012 at 3:32 am
Gosh, thanks for the generous comments guys - however, the method fails if the sample data set is expanded to have more sales than buys within a partition. Here's code...
June 19, 2012 at 3:26 am
This generates the correct results from the given sample data, however I'd be more comfortable with a larger sample:
;WITH Buys AS (
SELECT rn = ROW_NUMBER() OVER (PARTITION BY clientcode, productid...
June 18, 2012 at 8:41 am
Stueyd (6/13/2012)
....So for example, I insert a new row of data into the main table it will also cascade the identity into about 14 other tables....
Interesting. Care to elaborate?
June 18, 2012 at 2:58 am
Have a look at Glenn Berry's diagnostic information queries[/url]. Two of these queries should be particularly relevant to you; missing indexes, and unused indexes. The comments attached to both are...
June 18, 2012 at 2:56 am
farooq.hbs (6/17/2012)
If i Execute the above queryI'm getting Result set as
Msg 2714, Level 16, State 6, Line 8
There is already an object named '#View_Tag' in the database.
The #temp...
June 18, 2012 at 2:45 am
Jeff Moden (6/15/2012)
ChrisM@Work (6/15/2012)
vinu512 (6/15/2012)
ChrisM@Work (6/15/2012)
anthony.green (6/15/2012)
I like the...
June 15, 2012 at 8:34 am
I'm right with you on that Sean. There are some other quirks in the query which suggest that if it's generating correct results, it is, to some extent, a happy...
June 15, 2012 at 8:32 am
Here's a start. Test and comment.
Declare @portfolioId Varchar(8000),
@ParentWorkids Varchar(50)
Set @portfolioId = '1800m380000iot22g3t0000000_1800m380000io7c5nr50000000' -- this looks like TWO concatenated portfolioIds
set @ParentWorkids = '1801a2g0000ih0vl2abg000000'
---------------------------------------------------------------------------
SELECT child_work_id = [object_id],
PrimaryBBPProcess = MAX(CASE WHEN...
June 15, 2012 at 8:06 am
Viewing 15 posts - 6,226 through 6,240 (of 10,143 total)