Viewing 15 posts - 2,941 through 2,955 (of 13,855 total)
What format is it in now? YYYYMMDD? MM/DD/YYYY? etc
Also, why not use a DATE (or DATETIME) column to store dates? That's what they're for. Makes everything so much easier.
February 6, 2020 at 6:44 pm
What command are you running from SSMS to perform a file copy?
February 6, 2020 at 6:38 pm
Have you configured the job to run as you?
What errors do you get with a straight copy?
February 6, 2020 at 5:30 pm
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
Viewing 15 posts - 2,941 through 2,955 (of 13,855 total)