Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
cjhardie
Yak Posting Veteran
58 Posts |
Posted - 2006-09-20 : 10:59:35
|
| c.firstname + ' ' + c.lastname like '%'+@contact+'%' I don't know how to explain this but, is this correct? |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2006-09-20 : 11:12:41
|
| Looks fine to me.What do you want to do? Want to concatenate two columns and search the concatenated value for something?Harsh AthalyeIndia."Nothing is Impossible" |
 |
|
|
cjhardie
Yak Posting Veteran
58 Posts |
Posted - 2006-09-20 : 11:32:04
|
| ok when i put this(there is more sql but it is of no value) into micorsoft visual and i search on my web page for a name i get nothing. It is a little different on C# but this is the sql statement. does it look right? |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
Posted - 2006-09-20 : 11:37:35
|
quote: Originally posted by cjhardie ok when i put this(there is more sql but it is of no value) into micorsoft visual and i search on my web page for a name i get nothing. It is a little different on C# but this is the sql statement. does it look right?
You should be calling stored procedures andexecuting the sql from within thereBrett8-)Hint: Want your questions answered fast? Follow the direction in this linkhttp://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxAdd yourself!http://www.frappr.com/sqlteam |
 |
|
|
|
|
|