Viewing 15 posts - 1,426 through 1,440 (of 2,643 total)
If you right-click the table in SSMS then script the table as INSERT, then do the same again and script the tables as SELECT. Paste this SELECT statement at the...
August 22, 2019 at 10:53 am
Is the ID column an IDENTITY column?
August 22, 2019 at 10:40 am
The accessor of the cte always delivers the next value in the recursion. #2 returns '2019-10-13' which is the next value after the inequality inside the cte. It is...
August 21, 2019 at 8:36 pm
Sample calls from function comment. The last one works but 4 prior produce that error.
I don't have access to a 2008 server, but maybe you could try it with...
August 21, 2019 at 4:13 pm
Thanks Jonathan, nice function. Which versions of SQL Server it will work with? It doesn't seem to work on 2008R2. I replaced IIF with CASE but now getting this:
August 21, 2019 at 3:55 pm
"WHERE crc.[value] < parms.end_dt" was not necessary at all so I deleted it. Your function obviated that necessity. I wrote that but then I pasted it in with the...
August 21, 2019 at 3:39 pm
I'd be interested to know if the SSIS transforms perform any better or worse than well-written SQL scripts.
August 21, 2019 at 12:16 pm
Nice function, Jonathan. Well done!
Thank you Jeff, that's a great compliment coming from someone as experienced as you.
August 21, 2019 at 12:07 pm
Hi scdecade,
Thanks for the feedback, I'm glad you've found a use for the function.
I didn't use "drop if exists" as this is a feature that was only introduced in SQL...
August 21, 2019 at 11:45 am
So when dealing with data transformations at tables with 40-50GByte in size: is it recommended to use SSIS interal operators at all or should I go always for DB...
August 21, 2019 at 11:03 am
Thank you! So there shouldn't be an issue changing the data type of the columns on my end with importing the data of the Varchar(max) type that we receive...
August 20, 2019 at 9:27 pm
You should find out what the max length is of any of the data currently on the database
SELECT MAX(LEN(Id)) ...
August 20, 2019 at 7:28 pm
You could make a start by putting your current T-SQL code into Script controls in SSIS then it would work in exactly the same way it does now but would...
August 20, 2019 at 2:46 pm
Jonathan, what do you mean by "you can just add a unique constraint or index to any column that should be unique?" What is the purpose? Putting a UK...
August 20, 2019 at 12:16 am
And here is the DDL (I think)
With one exception, all of the VARCHAR columns in that table are VARCHAR(MAX), which is a LOB datatype. That's the first thing...
August 20, 2019 at 12:11 am
Viewing 15 posts - 1,426 through 1,440 (of 2,643 total)