C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




While using insert statement, an error is thrown if you add strings having ' sign.


Posted Date: 11 Mar 2004    Resource Type: Articles    Category: Web Applications
Author: ManojRajanMember Level: Gold    
Rating: Points: 7




This is due to the basic fact of the insert statement that it uses "'" sign to insert string values. If you are using this a text part the Insert statement again takes it as string and hence you receive an error. So the solution relies upon converting a single string code into two.
One such thing can be obtained using replace function where you can convert a single code into two.
replace(str,"'","''") is such example.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Display two fields in one datagrid column
Previous Resource: How to set and read cookies using .net technology?
Return to Discussion Resource Index
Post New Resource
Category: Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use