Viewing 15 posts - 196 through 210 (of 367 total)
thank you for that!
The source table had a different level of precision. Once I matched the destination so it matched the source it worked.
May 3, 2023 at 12:05 am
thank you everyone for the reply. There is no error message on why it failed so that is why it is so puzzling. I am continuing to investigate to see...
May 2, 2023 at 3:45 pm
Or where you do this
DECLARE @RECORD_ADD_DT datetime
SET @RECORD_ADD_DT = @RECORD_ADD_DATEdo this instead
DECLARE @RECORD_ADD_DT varchar(26)
SET @RECORD_ADD_DT = convert(varchar(26),@RECORD_ADD_DATE,121)
it works now. I am seeing seconds!! ...
April 24, 2023 at 9:01 pm
Still think it’s part of the insert in the proc as the convert to char needs to be outside of the dynamic SQL, as for why it was giving...
April 24, 2023 at 8:38 pm
I would say that you have a trigger on that table that is removing seconds from the column.
and I also assume you are clearing that table in order to...
April 24, 2023 at 8:16 pm
np
here you go:
stored proc:
ALTER PROCEDURE [dbo].[UpdateOptionsEOD] (@FILENAME varchar(200), @RECORD_ADD_DATE datetime)
AS
DECLARE @FILEPATH VARCHAR(200)
SET @FILEPATH = @FILENAME
--DECLARE @RECORD_ADD_DT datetime
--SET @RECORD_ADD_DT = @RECORD_ADD_DATE
DROP TABLE IF EXISTS #TEMP_TABLE;
CREATE TABLE #TEMP_TABLE
(
[UNDERLYING_SYMBOL] [nvarchar](10)...
April 24, 2023 at 6:32 pm
I figured out the problem:
SELECT *, convert(datetime, convert(char(26), ''' + @RECORD_ADD_DT + ''', 121) , 121) AS TIME_STAMP
FROM #TEMP_TABLE'
The "" were in the wrong spot.
The time stamp...
April 24, 2023 at 6:02 pm
thank you everyone. I am getting error when I update the dynamic sql. see below. Any idea on what is wrong?
April 24, 2023 at 5:41 pm
Good answer, makes complete sense, thanks for taking the time to write it out.
There are a couple of points I'd like to mention, however.
First is that SFTP is completely...
April 24, 2023 at 3:09 pm
Taking a step back for a moment ...
It seems that you are running an SSIS package which calls a proc which runs BULK INSERT – a rather convoluted design....
April 23, 2023 at 10:04 pm
I am getting this error. How do I fix it?
(573 rows affected)
Msg 468, Level 16, State 9, Line 14
Cannot resolve the collation conflict between "Latin1_General_CI_AS"...
April 12, 2023 at 4:59 pm
drop table if exists #trades;
go
create table #trades(
underlying_symbol varchar(10) not null,
trade_date ...
April 12, 2023 at 2:48 am
Thank you both. The query works now.
April 10, 2023 at 12:39 am
thank you for this.
I am a rookie so excuse the ignorance. I need to re-calculate the index after a certain calculation is done. I thought that using the script...
April 9, 2023 at 5:30 am
Viewing 15 posts - 196 through 210 (of 367 total)