Click here to Skip to main content
16,004,927 members
Home / Discussions / Database
   

Database

 
GeneralRe: Insert before update -the first data- in a historical table Pin
Blue_Boy3-Dec-08 0:57
Blue_Boy3-Dec-08 0:57 
GeneralRe: Insert before update -the first data- in a historical table Pin
foryou3-Dec-08 1:22
foryou3-Dec-08 1:22 
GeneralRe: Insert before update -the first data- in a historical table Pin
Blue_Boy3-Dec-08 1:41
Blue_Boy3-Dec-08 1:41 
GeneralRe: Insert before update -the first data- in a historical table Pin
foryou3-Dec-08 2:50
foryou3-Dec-08 2:50 
GeneralRe: Insert before update -the first data- in a historical table Pin
Blue_Boy3-Dec-08 5:06
Blue_Boy3-Dec-08 5:06 
QuestionCreate A USER in Databse Pin
kibromg3-Dec-08 0:01
kibromg3-Dec-08 0:01 
AnswerRe: Create A USER in Databse Pin
Ashfield3-Dec-08 7:13
Ashfield3-Dec-08 7:13 
QuestionReplace function Pin
Jay Royall2-Dec-08 23:47
Jay Royall2-Dec-08 23:47 
Hi,

I am using SQL Server 2005 and have a question regarding the Replace function. I have a 'select' query looking something like this:

SELECT tblContacts.*
FROM tblContacts
WHERE tblContacts.[Surname] + tblContacts.[Firstname] LIKE '%Smith (Hon. Member)John%'

('Smith (Hon. Member)John' will come from the user's input)

Now, the end users do not want to have to type in 'Smith (Hon. Member)John', they just want to type SmithHonMemberJohn, that is, the full name and membership type without any spaces, brackets or full stops (periods).

I have looked at the replace function to replace characters but is it possible to replace more than 1 type of character? That is, the replcae function will replace all instances of a certain character, for instance, commas. But is it possible to specify more than 1 chacter type, for instance commas, brackets and spaces?

Hope I have explained this OK. Thanks in advance for any help.
AnswerRe: Replace function Pin
RGTuffin3-Dec-08 1:19
RGTuffin3-Dec-08 1:19 
GeneralRe: Replace function Pin
Jay Royall3-Dec-08 1:35
Jay Royall3-Dec-08 1:35 
GeneralRe: Replace function Pin
Ben Fair3-Dec-08 3:54
Ben Fair3-Dec-08 3:54 
GeneralRe: Replace function Pin
Jay Royall3-Dec-08 4:17
Jay Royall3-Dec-08 4:17 
QuestionDuplicate in join Pin
gnjunge2-Dec-08 2:25
gnjunge2-Dec-08 2:25 
AnswerRe: Duplicate in join Pin
Wendelius2-Dec-08 2:52
mentorWendelius2-Dec-08 2:52 
GeneralRe: Duplicate in join Pin
gnjunge2-Dec-08 2:57
gnjunge2-Dec-08 2:57 
GeneralRe: Duplicate in join Pin
Wendelius2-Dec-08 3:11
mentorWendelius2-Dec-08 3:11 
AnswerRe: Duplicate in join [modified] Pin
Blue_Boy2-Dec-08 9:11
Blue_Boy2-Dec-08 9:11 
GeneralRe: Duplicate in join Pin
gnjunge2-Dec-08 20:21
gnjunge2-Dec-08 20:21 
GeneralRe: Duplicate in join Pin
Blue_Boy3-Dec-08 0:24
Blue_Boy3-Dec-08 0:24 
QuestionPassing multiple records to one stored proc Pin
Hamed Musavi2-Dec-08 1:05
Hamed Musavi2-Dec-08 1:05 
AnswerRe: Passing multiple records to one stored proc Pin
Ben Fair2-Dec-08 4:12
Ben Fair2-Dec-08 4:12 
GeneralRe: Passing multiple records to one stored proc Pin
Hamed Musavi2-Dec-08 4:57
Hamed Musavi2-Dec-08 4:57 
GeneralRe: Passing multiple records to one stored proc Pin
Wendelius2-Dec-08 10:25
mentorWendelius2-Dec-08 10:25 
AnswerRe: Passing multiple records to one stored proc Pin
Wendelius2-Dec-08 10:22
mentorWendelius2-Dec-08 10:22 
GeneralRe: Passing multiple records to one stored proc Pin
Hamed Musavi2-Dec-08 19:02
Hamed Musavi2-Dec-08 19:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.