Viewing 15 posts - 136 through 150 (of 375 total)
How many tables are updated during this process?
Does each table have date created / date modified columns?
Is the incoming data purely inserts, or inserts + updates, or inserts +...
March 12, 2024 at 3:15 pm
Just curious - but you stated you are using SSIS, but here you are using a stored procedure to execute a BULK INSERT?
I have to ask why you decided...
March 12, 2024 at 1:11 am
Does this work?
'INSERT INTO DBO.DataTable
SELECT *, NULL, ''N'' AS PROCESSED_FLAG
FROM #TEMP_TABLE'
it worked! thank you so much!
March 12, 2024 at 1:06 am
I assume the source file does not contain a processed_flag or processed_date column. I just ran a quick bulk insert test and when I added an extra column to...
March 11, 2024 at 4:53 pm
Next step on the debug root now we've sorted the "is it plugged in" equivalent.
Can you swap the exec for print so that you can see exactly what is...
March 11, 2024 at 4:38 pm
I'd check your variables. No sign of @FILEPATH being declared or populated anywhere in that.
What does the execute statement of the stored procedure that you are issuing look like?
[quote-1...
March 11, 2024 at 4:35 pm
I'd check your variables. No sign of @FILEPATH being declared or populated anywhere in that.
What does the execute statement of the stored procedure that you are issuing look like?
it...
March 11, 2024 at 4:31 pm
error is very clear - your bulk insert is failing because of data conversion between input (your file) and the output (#TEMP_TABLE).
it has Nothing to do with that flag...
March 11, 2024 at 2:39 pm
Does you code actually look like what you posted? I ask because there is no space between the terms "SET" and "Processed_Flag" and there needs to be.
there are spaces. ...
March 11, 2024 at 2:33 pm
declare @DaysToLookBack int = 5
select *
from [dbo].[TestTable1] a
cross apply (select count(*) Count
...
March 10, 2024 at 3:07 am
There aren't 3 values less than 88 within 5 days of (including the reference date) 2024-02-28
2024-02-28 minus 4 days is 2024-02-24.
So there are only 2 rows less than that...
March 9, 2024 at 10:09 pm
The gaps in dates shouldn't be an issue.
The data you provided isn't the data you put in your amendment of the query.
The results from the test data you provided...
March 9, 2024 at 7:03 am
Has TRADE_DATE got a time part on it? If so is it not always midnight?
Can you supply some test data?
np. here you go:
CREATE TABLE [dbo].[TestTable1](
[company] [nvarchar](50)...
March 9, 2024 at 5:47 am
declare @DaysToLookBack int = 5
select *
from [dbo].[TestTable1] a
cross apply (select COUNT(*) Count
...
March 9, 2024 at 3:54 am
This is the output I get. (In fact I did a copy/paste from my post).
my bad. i made a typo when i copied over the formula. ...
March 9, 2024 at 12:58 am
Viewing 15 posts - 136 through 150 (of 375 total)