Viewing 15 posts - 5,416 through 5,430 (of 49,571 total)
Well you shouldn't be using SELECT * in production code. Fix your selects to select just the columns they need in the order they need and then you won't have...
July 3, 2015 at 3:05 am
Since SQL Server doesn't have nested transactions (just syntax which makes you think it does), there's no advantage. A transaction should be as small as possible while still ensuring the...
July 3, 2015 at 3:04 am
nidhi.naina (7/2/2015)
BUt my lead somehow asked me to use table variable 🙁
Ask him why, given the known performance problems that table variables often cause.
July 3, 2015 at 2:28 am
river1 (7/2/2015)
I want to add a column as the third of the table, the second column that I want to add needs to be at the fifth place.
Why?
The order of...
July 2, 2015 at 3:01 pm
Informal survey before I make a fool of myself in an article (again)
Do you get the feeling that IT people, especially ones at the top-end of the field, are too...
July 2, 2015 at 2:54 pm
SQLJay (7/2/2015)
July 2, 2015 at 2:51 pm
I haven't run it (busy packing up at work), but as a guess, do you need a PARTITION BY S_ID in your OVER clauses? At the moment, they're working across...
July 2, 2015 at 9:48 am
yb751 (7/2/2015)
SET @query_from = @query_from + CHAR(10) + ' JOIN ' + @TableVariable + ' on ABC.ID = ' + @TableVariable + '.ID '...
July 2, 2015 at 8:33 am
Unlikely there will be an official demo DB until after launch. Features are still changing, we're still in preview. It's no impossible that queries written now won't work come release.
Use...
July 2, 2015 at 8:09 am
Do you understand why and how it works?
July 2, 2015 at 7:20 am
Unless you have a really, really, really old machine there (as in well over 10 years old) or a VM that a single virtual core has been assigned to, you've...
July 2, 2015 at 7:03 am
BWFC (7/2/2015)
At face value, you could try selecting only the columns you actually want to see and using SELECT DISTINCT if the rows are unique.
Would not be...
July 2, 2015 at 6:56 am
mattmacmillan (7/2/2015)
My table layout is
Which doesn't help me to test queries that I write 😉
Something like
SELECT <stuff>
FROM Clients c
WHERE c.idclient IN (SELECT cc.idclient FROM...
July 2, 2015 at 6:51 am
Without sample data or a table to test against it's a guess, but you probably want to use an EXISTS or an IN, not a join.
July 2, 2015 at 6:43 am
jasona.work (7/2/2015)
If you're not in the US, anything fun going on?
Regular working day tomorrow, trying to catch up on writing and some presentations over the weekend, maybe some Skyrim too.
July 2, 2015 at 6:31 am
Viewing 15 posts - 5,416 through 5,430 (of 49,571 total)