Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql statement with multiple single quotations
Message
 
To
19/04/2007 05:11:33
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01217632
Message ID:
01217726
Views:
7
>Hi,
>
>Thanks you for quick answer but we still the same problem special with names like the following exmple:
>
>DECLARE @L_SQLCOMM VARCHAR(8000)
>
>SET @L_SQLCOMM = 'SELECT * FROM AMASTER where ACCTNAME = (ala'a)'
>
>EXEC(@L_SQLCOMM
>
>"ala'a " is Arabic name in English characters.
>
>Regards

Try ..

DECLARE @L_SQLCOMM VARCHAR(8000)

SET @L_SQLCOMM = strtran("SELECT * FROM AMASTER where ACCTNAME = (ala'a)","'","''")

EXEC(@L_SQLCOMM)
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform