Results 1 to 3 of 3

Thread: C# and database...

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Earth
    Posts
    32

    C# and database...

    Hello all, i have built a message board system as part of a portal that we are making. I am however stuck at one part. Let's say i have a long string (which is the body of the message), and i'm sending this to a database...now, if this body contains "'" it will not insert it, becase the string gets cut off...how would i have to tell the sql statement to know that this is not the end of the string? i tried "\'" but that did not work either!


    thanx for any help.

  2. #2
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118
    use "''" ---> use two single qouts instead of one..
    Hope this works

    Sonia

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Earth
    Posts
    32
    excellent...thanx a lot sonia...your help is much appreciated.

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