473,387 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

' Character in SQL

Hi All

We have an application which uses surname and the date of birth to allow
people to login.

The SQL gives an error if the user's surname contains the character '

Anybody knows a way around this?
Jul 19 '05 #1
5 1573
Sorry I mean to say the problem is with the Select query.

"J P Singh" <noemail@asIhatespam> wrote in message
news:eQ**************@TK2MSFTNGP10.phx.gbl...
Hi All

We have an application which uses surname and the date of birth to allow
people to login.

The SQL gives an error if the user's surname contains the character '

Anybody knows a way around this?

Jul 19 '05 #2
"J P Singh" <noemail@asIhatespam> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
Sorry I mean to say the problem is with the Select query.

"J P Singh" <noemail@asIhatespam> wrote in message
news:eQ**************@TK2MSFTNGP10.phx.gbl...
Hi All

We have an application which uses surname and the date of birth to allow
people to login.

The SQL gives an error if the user's surname contains the character '

Anybody knows a way around this?

http://support.microsoft.com/?id=246069

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Jul 19 '05 #3
Use double '. For example if a string is 'Peter's'. Then you should send
this to database: 'Peter''s'

"J P Singh" <noemail@asIhatespam> wrote in message
news:eQ**************@TK2MSFTNGP10.phx.gbl...
Hi All

We have an application which uses surname and the date of birth to allow
people to login.

The SQL gives an error if the user's surname contains the character '

Anybody knows a way around this?

Jul 19 '05 #4
many thanks
"John Blessing" <jb@**REMOVE**THIS**LbeHelpdesk.com> wrote in message
news:L6****************@newsfep4-winn.server.ntli.net...
"J P Singh" <noemail@asIhatespam> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
Sorry I mean to say the problem is with the Select query.

"J P Singh" <noemail@asIhatespam> wrote in message
news:eQ**************@TK2MSFTNGP10.phx.gbl...
Hi All

We have an application which uses surname and the date of birth to allow people to login.

The SQL gives an error if the user's surname contains the character '

Anybody knows a way around this?

http://support.microsoft.com/?id=246069

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook

Jul 19 '05 #5
http://www.aspfaq.com/2035

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"J P Singh" <noemail@asIhatespam> wrote in message
news:eQ**************@TK2MSFTNGP10.phx.gbl...
Hi All

We have an application which uses surname and the date of birth to allow
people to login.

The SQL gives an error if the user's surname contains the character '

Anybody knows a way around this?

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
by: chandy | last post by:
Hi, I have an Html document that declares that it uses the utf-8 character set. As this document is editable via a web interface I need to make sure than high-ascii characters that may be...
4
by: mimmo | last post by:
Hi! I should convert the accented letters of a string in the correspondent letters not accented. But when I compile with -Wall it give me: warning: multi-character character constant Do the...
7
by: teachtiro | last post by:
Hi, 'C' says \ is the escape character to be used when characters are to be interpreted in an uncommon sense, e.g. \t usage in printf(), but for printing % through printf(), i have read that %%...
18
by: james | last post by:
Hi, I am loading a CSV file ( Comma Seperated Value) into a Richtext box. I have a routine that splits the data up when it hits the "," and then copies the results into a listbox. The data also...
9
by: simchajoy2000 | last post by:
Hi, I know what the ASCII Character Codes are for the 2nd and 3rd powers in VB.NET but I can't find the 6th power anywhere - does anyone know what it might be or if it even exists? Joy
15
by: wizardyhnr | last post by:
i want to try ANSI C99's unicode fuctions. so i write a test program. the function is simple, but i cannot compile it with dev c++ 4.9.9.2 under windows xp sp2, since the compiler always think that...
17
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when...
3
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class....
7
by: tempest | last post by:
Hi all. This is a rather long posting but I have some questions concerning the usage of character entities in XML documents and PCI security compliance. The company I work for is using a...
10
by: Paul W | last post by:
Hi all, I have an application that reads data in from a text file and stores it in a database. My problem is that there are some characters in the file that aren't being handled properly. For...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.