Viewing 15 posts - 1,141 through 1,155 (of 13,838 total)
One more question though. When we assign primary key to a column it creates clustered index by default on that column but I know that in future I will be...
September 22, 2022 at 11:03 am
Referring to staging tables as temporary tables is confusing!
For each of the staging tables, create a stored procedure. This stored proc should take care of 'changing the things you want'...
September 22, 2022 at 9:44 am
Are you inserting from the temporary tables to the same 'permanent' table in each case? Or are there different targets?
100,000,0 is not a number – please clarify.
I'd suggest doing the...
September 22, 2022 at 9:14 am
It might be a better option - if using TRY/CATCH - to THROW the error instead of using RAISERROR.
I'd be interested to hear your reasoning.
September 22, 2022 at 8:02 am
Here is a better version, which avoids the creation of a zero row when the preceding row was at the end of the month:
WITH BaseData
AS (SELECT Data...
September 22, 2022 at 8:00 am
Sorry for the delayed response. This gets closer, I think:
WITH BaseData
AS (SELECT Data = ISNULL(t.Data, LAG(t.Data, 1, NULL) OVER (ORDER BY rt.yearwk))
...
September 21, 2022 at 3:39 pm
I recommend deploying your SSIS packages to SSISDB and running them from there.
Also, did you try this?
September 21, 2022 at 11:22 am
Try out the following code. You will see that the error generated in the first proc is captured in the second.
CREATE OR ALTER PROCEDURE dbo.ErrorTest1
AS
BEGIN
...
September 21, 2022 at 10:16 am
OK, so the process could be
2. Copy file to <filename>_<invoiceId>.xlsx
3. Overwrite existing target file with empty except headings 'template' file
4. Process next InvoiceId
September 16, 2022 at 2:41 pm
If the file rename task is added after the Data Flow, doesn't that achieve your aim?
If a new empty target Excel 'template file' has to be copied over after the...
September 16, 2022 at 2:38 pm
Does the Excel file exist at the beginning of the process, or is it created during the process?
September 16, 2022 at 2:21 pm
Now it is my turn not to understand. In your very first post, you said this:
I can get the data flow task to write data by per invoice Id into...
September 16, 2022 at 10:38 am
Here is one way. It converts the complete times to seconds and then subtracts one from the other.
((DT_I4) TOKEN( @[User::End_Time] , ":",1 )*3600 +(DT_I4) TOKEN( @[User::End_Time] ,...
September 16, 2022 at 6:45 am
I believe that this limit will have been imposed at source and therefore I suggest you get hold of whatever documentation or support is available for the particular REST API...
September 16, 2022 at 6:32 am
Using getdate() three times repeats exactly the same datetime three times. Notwithstanding that, this should work:
SELECT l.id
,l.step_name
...
September 15, 2022 at 7:17 am
Viewing 15 posts - 1,141 through 1,155 (of 13,838 total)