Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sp problem
Message
 
To
18/07/2006 22:34:08
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Miscellaneous
Thread ID:
01137465
Message ID:
01137501
Views:
18
>
>declare @abc nvarchar(40)
>set @abc = 'RAND WORLD INT'L FREIGHT FORWARDING CO.,LTD'
>update myTable set companyname =@abc
>
>
> ^^^^^^^^^^ this statment invalid , How can I correct it ??
>Thanks

As Naomi siggested just double single quote inside the string:
declare @abc nvarchar(40)
set @abc = 'RAND WORLD INT''L FREIGHT FORWARDING CO.,LTD'
update myTable set companyname =@abc
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform