User Profile
Collapse
-
I'm stuck with it still. Thanks for asking. -
Thank for getting back, NeoPa.
You are correct, even I came across this statement online somewhere. Now my problem is to cheat the SQL compiler with the same string with single quotes in it, when it comes thru the Tool I'm using.Leave a comment:
-
You are right! That is why I use the below insert query from the Oracle EDQP Tool, where you could see the N'$?' for SZDSC column which takes the Unicode string to the target field.
insert into Selva_temp_nvar char_05_23_2019
(SZEDLN, SZDSC)
values
(?,N'$?');
Now, my problem is I wanted to convert those single quotes to two single quotes before it hits SQL compiler from the EDQP Tool.Leave a comment:
-
If I load with just (?,?) it loads everything but the foreign characters are replaced with ? in the target table.Leave a comment:
-
Thank you, Rabbit.
I'm reading the values from an Excel sheet as my source of input and I have some foreign language characters in the strings and in my task I will be using Oracle EDQP as an Interface tool to load them in the Target(SQL Server 2012).
I don't want to do it manually, I wanted to figure out a way to replace them in the SQL query. When I have used a regex option inside the tool(Oracle EDQP)1 to replace...Leave a comment:
-
Hello Rabbit,
Thank you for getting back,
select replace(N'РВАТ' ЕЛЬ РЫЧА'ЖКОВЫ Й У'РРВ-101.6', Char(39), Char(34)) Foreign_Chars;
select replace(N'РВАТ' ЕЛЬ РЫЧА'ЖКОВЫ Й У'РРВ-101.6','''', '''') Foreign_Chars;
The above are two queries, I tried.Leave a comment:
-
Replace Single Quote to Double quotes in a String
Hello There,
I'm stuck with converting a single quote to double quotes in an incoming string in the SQL Server 2012. The target field is an NVARCHAR field and the incoming string has foreign characters with some single quotes in between. I need to get all the single quote's changed to double quotes in order to load them in the SQL Server as it is. Can someone help me with this issue? I have tried some ways found online, but no luck...
No activity results to display
Show More
Leave a comment: