Viewing 15 posts - 1,201 through 1,215 (of 5,109 total)
Oh, then you want:
OUTPUT inserted.IDColumn AS NewID,
deleted.IDColumn AS OldID
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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 🙁
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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
...Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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
...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
April 1, 2019 at 8:02 am
Will there always be 5 parts? Could there be more, less, an unknown number?
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 28, 2019 at 9:41 am
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 28, 2019 at 4:05 am
Why are you executing it 40,000 times? Why not once with a GROUP BY clause?
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
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 Thom~ Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 25, 2019 at 11:59 am
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 25, 2019 at 11:05 am
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 25, 2019 at 9:45 am
Viewing 15 posts - 1,201 through 1,215 (of 5,109 total)