Viewing 15 posts - 2,971 through 2,985 (of 13,874 total)
upgrade quickly, then you can use querystore and plan guides
Yeah, just wing it. I'm sure everything will be OK 🙂
February 6, 2020 at 4:58 pm
Can we assume that you have a QA/Test environment which is intended to be a close-to exact copy of Prod? If so, does the problem happen there too?
If not, I'd...
February 6, 2020 at 3:17 pm
Thank you so much. I change all columns size. It's solved.
Excellent, thanks for posting back.
February 6, 2020 at 2:18 pm
No I've not been able to repro the issue in a Sandbox (what I say at the start of OP); that's one of the reason why I hated asking this,...
February 6, 2020 at 2:17 pm
Is there a column on tbl_serveravailability which is not wide enough to accept the data which is being inserted into it?
February 6, 2020 at 1:46 pm
If you were to run EXEC dbo.NoRepro;, then you would get the errors above. If, however, you ran the SQL inside the SP, then it would succeed.
No errors for me:

February 6, 2020 at 1:35 pm
You could use dynamic SQL.
Query sys.Sequences to get generate the ALTER SEQUENCE SQL statements & then EXEC that.
--Edit: Apologies: just noticed that John already suggested this
February 6, 2020 at 1:28 pm
Tonight, I'll be having haggis. Pray for me.
Tonight, I'll be in a theatre orchestra pit for the 5th time this week. No need for...
February 5, 2020 at 3:38 pm
Thanks, Mike. I am also from the UK.
When I Googled 'chad', I ended up learning a lot about a country in Africa, but nothing about hole-punch waste! 🙂
whereabouts...
February 4, 2020 at 3:28 pm
Thanks, Mike. I am also from the UK.
When I Googled 'chad', I ended up learning a lot about a country in Africa, but nothing about hole-punch waste! 🙂
February 4, 2020 at 2:39 pm
Is 'chad' an American term? I have no idea what it means!
February 4, 2020 at 2:04 pm
If you're not really interested in seeing whether a duplicate insert was attempted, consider adding IGNORE_DUP_KEY = ON to your target table definition.
Your code then becomes much simpler.
February 4, 2020 at 12:34 pm
What format are the dates in?
How would you know which columns to interrogate?
What do you mean by 'dynamic', exactly?
February 3, 2020 at 8:56 pm
Jack's just kinda boring, that's all. It's not "bad", like undrinkable or anything, but it's not interesting either.
Some of the special Jacks are much better. I don't...
January 31, 2020 at 4:45 pm
JEFF Do NOT go all SSIS on me 🙂 we all know it's Bulk insert with a formatfile or openrowset
Jeff's blood pressure just went up a notch 🙂
January 31, 2020 at 3:47 pm
Viewing 15 posts - 2,971 through 2,985 (of 13,874 total)