Viewing 15 posts - 2,506 through 2,520 (of 3,957 total)
CELKO (11/6/2012)
I want...
November 6, 2012 at 9:08 pm
As noted, it can also be done with dynamic SQL.
DECLARE @TableName VARCHAR(100) = 'Hist'
,@SQL NVARCHAR(MAX)
;WITH CountCols AS (
SELECT name, MySQL=' UNION ALL...
November 6, 2012 at 7:29 pm
You probably only needed to add the COLLATE to the 1st and/or 4th parameters to STUFF.
November 6, 2012 at 6:44 pm
komal145 (11/6/2012)
How to Exclude Records using join . I usually do not in
Example: I have a Table A and Table B
I want to exclude all the loans...
November 6, 2012 at 6:41 pm
goenka.vishal (11/6/2012)
1 38 MEENA ENTERPRISES ...
November 6, 2012 at 6:33 am
Brandie Tarvin (11/6/2012)
Anyone have any suggestions for me to...
November 6, 2012 at 6:29 am
Can you provide some sample data in a readily consumable form and expected results?
November 6, 2012 at 3:04 am
I agree with Sean on the dangers and issues with this. But if you must you must.
To get around the sorting issue he notes, there is always this:
;with cte...
November 6, 2012 at 2:54 am
Dave Ballantyne (11/6/2012)
I would be careful about making any form of 'X is faster than Y' statements , ever!
In this case i have found ,annecdotally, that PIVOT has a relatively...
November 6, 2012 at 12:32 am
Levelling the playing field by adding OPTION (MAXDOP 1) to the crosstab queries (including an additional one of my own design), I got these results:
Method ...
November 5, 2012 at 6:19 pm
CH,
Interesting test so I tried to reproduce your results. I used just 4 passes instead of the 10 in your loop and got this:
Method ...
November 5, 2012 at 5:59 pm
Jeff Moden (11/4/2012)
Add 10 to each SNo and see if it still works.
You're on the right track though. Just a small change will do it.
SELECT SNo = MIN(SNo)
...
November 4, 2012 at 9:05 pm
bjoepe (11/2/2012)
Hi all, is there anyone out ther, who fixed this issue?
I've solved it before. In my case I was running SQL Server 2008 R2 64 bit and 32...
November 4, 2012 at 6:38 pm
qrius (11/4/2012)
November 4, 2012 at 5:54 pm
imex (11/4/2012)
Try:
select
a.SNo,
a.Date,
a.Cat as Cat_A,
a.Value as Value_A,
b.Cat as Cat_B,
...
November 4, 2012 at 5:40 pm
Viewing 15 posts - 2,506 through 2,520 (of 3,957 total)