Viewing 15 posts - 1,201 through 1,215 (of 5,111 total)
Sorry for the formatting, did some searching, but haven’t found the correct BBCodes for SQL formatting. Sorry. — Thanks Thom.
Click "{;} insert/edit code sample". Paste code into...
April 1, 2019 at 1:14 pm
Oh, then you want:
OUTPUT inserted.IDColumn AS NewID,
deleted.IDColumn AS OldID
April 1, 2019 at 12:10 pm
Ahh, does mean that the old newsletter links are dead though. That's actually far from ideal I have quite a few bookmarked/saved; so that's disappointing 🙁
April 1, 2019 at 12:04 pm
Think this is actually a great move by Microsoft to get people, like MVPs, to be able to help out with the contributions on BOL. I've made a few myself...
April 1, 2019 at 11:26 am
Is this not as simple as:
INSERT INTO {YourTable} ({List,of,columns,goes,here})
OUTPUT inserted.{OldIdColumn},
inserted.{NewIDColumn}
VALUES ({Values,to,insert,go,here});
/* --Or, if a SELECT statment
SELECT {List,of,columns,goes,here}
FROM YourOtherTable YOT
... April 1, 2019 at 11:20 am
Honestly, pasting from SSMS wasn't working at all for me. Here's hoping it is now:
WITH N AS(
SELECT 1 AS I
...
April 1, 2019 at 8:02 am
Will there always be 5 parts? Could there be more, less, an unknown number?
March 28, 2019 at 9:41 am
March 28, 2019 at 5:12 am
No, that isn't what it'll do. If the day is monday the the start date will be the sunday and the end date the monday. If it is Tuesday it'll...
March 28, 2019 at 4:25 am
Guessing you have SSDT 15.8.1 or later installed? That removed support for SQL Server 2012. You need to use SSDT 15.8.0 or earlier.
March 28, 2019 at 4:05 am
Why are you executing it 40,000 times? Why not once with a GROUP BY clause?
March 27, 2019 at 6:29 am
You're explicitly defining the value from your xml as a varchar(19), and you're stating that the column is a varchar as well. Perhaps there is a trigger on your table...
March 27, 2019 at 2:15 am
I have been using containers at home to spin up SQL Server, but I am still actually installing it. I now solely use Ubuntu at home, and specifically my normal...
March 26, 2019 at 3:09 am
Seems you know what you need to do, you want to group the data, so have you had a look at the GROUP BY clause and
March 25, 2019 at 11:59 am
Viewing 15 posts - 1,201 through 1,215 (of 5,111 total)