Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Way to insert text having ' (apostrophe) into a SQL table

$
0
0

Solution:-

1:If you insert data through procedure

eg. create proc tt @in varchar(20) as  select @in

exec tt "test's"  --here used "string inputparameter" instead of  'string inputparameter'

2:isert manulay into data base (DML)

eg.select 'test''s'  --add one more '   instead of ' (apostrophe)

Please share if any other solution...

Thanks & Regards

Subhash Chandra


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>