Viewing 15 posts - 1,081 through 1,095 (of 6,678 total)
You could just use row_number() - no need to compare the previous values.
row_number() over(partition by CustNo order by validFrom asc, validTo desc)
If you have ties on validFrom - the one...
May 18, 2021 at 4:28 pm
I've always liked the idea of assigning a unique standard alias for every table and always using it. You can add a 1, 2, etc., if you need to...
May 18, 2021 at 4:23 pm
I am a bit confused by this request - as agent jobs are normally setup with a schedule and run on that schedule. How are you going to determine that...
May 17, 2021 at 4:32 pm
You could use TRY_CAST or TRY_CONVERT to attempt to convert the value to an appropriate date data type (date, datetime). You would have to build the code to attempt to...
May 17, 2021 at 4:20 pm
I would be very careful about adding check constraints or triggers to a vendor supplied and supported table. If the vendor has signed off on you making this change, then...
May 15, 2021 at 4:44 pm
What is the purpose of this view - and where will this view live? Another option is to create a view in each database that provides the information you are...
May 15, 2021 at 4:36 pm
My preference is option 1 - as it separates SSRS from all data source systems. It can be upgraded independently from any other data source and isn't tied to one...
May 15, 2021 at 4:29 pm
This is confusing - because the first error appears to be trying to use a linked server. There is no reason to use a linked server from SSIS - you...
May 15, 2021 at 4:24 pm
I think you have made this more difficult than it needs to be...
If you create a stored procedure to run the SSIS package from the catalog - then grant execute...
May 15, 2021 at 4:21 pm
You might want to review this article: https://www.sqlservercentral.com/articles/auto-assign-column-data-types-for-flat-file-source-import
It outlines a method of using the destination table to define a destination and then 'swapping' that for a...
May 14, 2021 at 4:56 pm
You cannot "trick" it; CSV is unformatted data. Excel is trying to be helpful because it THOUGHT it was a numeric value.
I don't think there is any way...
May 13, 2021 at 8:24 pm
This is really an Excel issue - but there is a simple trick to get Excel to treat it as a text value. Prepend a single-quote to field - for...
May 13, 2021 at 8:16 pm
You might want to review this article: https://www.sqlservercentral.com/articles/auto-assign-column-data-types-for-flat-file-source-import
It outlines a method of using the destination table to define a destination and then 'swapping' that for a source and retains the...
May 13, 2021 at 8:06 pm
For those saying that, I recognize that issue. The answer is always "NO" unless you ask. Like I said, rewrite the code (a copy of the code, for sure!)...
May 12, 2021 at 8:06 pm
I would recommend the following:
May 12, 2021 at 7:28 pm
Viewing 15 posts - 1,081 through 1,095 (of 6,678 total)