Viewing 15 posts - 211 through 225 (of 375 total)
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
for some reason the spacing for some of the lines are messed up. the words are missing spaces between them. hopefully this isn't an issue for anyone
April 9, 2023 at 5:26 am
If the index doesn't already exist you need to remove
DROP_EXISTING = ON
from the index creation or set it toOFF
.
If I do that then I get an...
April 9, 2023 at 3:05 am
Intellisense telling you it thinks there is an error isn't the same as having an error.
so do you GET an error when you execute the code?
does the index not...
April 9, 2023 at 3:03 am
You cannot do INCLUDEs on Clustered Indexes, period. The reason why is that the Clustered Index IS the table and it already includes all the data.
I posted a link...
April 8, 2023 at 5:13 am
Hi everyone
I had a bit of time to work on my side project. I am getting "Cannot specify included columns for a clustered index" error.
Here is my script:
April 8, 2023 at 4:30 am
I have a script that was running fine but today it is taking way too long. I looked at the script and I see these errors:
"cannot specify included columns for...
March 19, 2023 at 10:43 pm
Viewing 15 posts - 211 through 225 (of 375 total)