Results 1 to 4 of 4

Thread: special characters to be inserted

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    6

    special characters to be inserted

    Hi all
    I tried to insert a string including special characters like apostrophe s ('s) using a richboxtext in vb6 to sql server 2000 database. I cant insert this string and I always get an error message. if I remove that ('s) then I can insert. please help me to find a solution soon.

    thanks buddy

  2. #2
    Frenzied Member HanneSThEGreaT's Avatar
    Join Date
    Nov 2003
    Location
    Vereeniging, South Africa
    Posts
    1,492

    Re: special characters to be inserted

    Have a look into SQl Escape characters
    VB.NET MVP 2008 - Present

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: special characters to be inserted

    Moved to Database Development

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: special characters to be inserted

    Assuming you are using an SQL statement to do the insert, see the article How do I put the ' character into an SQL string? from the SQL section of our Database Development FAQs/Tutorials (at the top of this forum)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width