Click here to Skip to main content
15,891,513 members
Home / Discussions / Database
   

Database

 
AnswerRe: Recursive query "SQL Server 2000" Pin
PIEBALDconsult23-Dec-10 4:49
mvePIEBALDconsult23-Dec-10 4:49 
AnswerRe: Recursive query "SQL Server 2000" Pin
jschell23-Dec-10 7:38
jschell23-Dec-10 7:38 
QuestionSOLVED - How to concatenate column values of type text during SELECT...FROM...GROUP BY? [modified] Pin
liquid_22-Dec-10 2:34
liquid_22-Dec-10 2:34 
AnswerRe: How to concatenate column values of type text during SELECT...FROM...GROUP BY? Pin
Hiren solanki22-Dec-10 3:23
Hiren solanki22-Dec-10 3:23 
GeneralRe: How to concatenate column values of type text during SELECT...FROM...GROUP BY? Pin
liquid_22-Dec-10 20:35
liquid_22-Dec-10 20:35 
GeneralRe: How to concatenate column values of type text during SELECT...FROM...GROUP BY? [modified] Pin
Hiren solanki22-Dec-10 20:37
Hiren solanki22-Dec-10 20:37 
GeneralRe: How to concatenate column values of type text during SELECT...FROM...GROUP BY? Pin
liquid_22-Dec-10 23:58
liquid_22-Dec-10 23:58 
QuestionSQL Wildcard (%) query Pin
Joe Stansfield21-Dec-10 17:08
Joe Stansfield21-Dec-10 17:08 
Hey all,

I am trying to construct a basic search query and am having trouble with my wildcard searches.

I am using C# Visual Studio 2008 and the dataset query designer.

The part of the query I am struggling with is:

WHERE (Land_use_code LIKE '%' +@Landusecode1 + '%')


However, when I run the query, it doesn't perform as I would expect.

There are multiple table entries, with some as follows:
R1
R3
R30

If I enter R and run the query, it returns nothing. If I enter R1, it returns all that match R1.

If I enter R%, it will return R1 and R3, but not R30. If I enter R%%, I will get all records.

I am wondering of a way to enable me to enter R% and get all records returned.

Thanks,

Joe
AnswerRe: SQL Wildcard (%) query Pin
Luc Pattyn21-Dec-10 17:41
sitebuilderLuc Pattyn21-Dec-10 17:41 
GeneralRe: SQL Wildcard (%) query Pin
Joe Stansfield21-Dec-10 18:12
Joe Stansfield21-Dec-10 18:12 
GeneralRe: SQL Wildcard (%) query Pin
Luc Pattyn21-Dec-10 18:16
sitebuilderLuc Pattyn21-Dec-10 18:16 
GeneralRe: SQL Wildcard (%) query Pin
Joe Stansfield21-Dec-10 18:23
Joe Stansfield21-Dec-10 18:23 
AnswerRe: SQL Wildcard (%) query [modified] Pin
Luc Pattyn21-Dec-10 18:29
sitebuilderLuc Pattyn21-Dec-10 18:29 
GeneralRe: SQL Wildcard (%) query Pin
Joe Stansfield21-Dec-10 18:38
Joe Stansfield21-Dec-10 18:38 
GeneralRe: SQL Wildcard (%) query Pin
Luc Pattyn22-Dec-10 1:30
sitebuilderLuc Pattyn22-Dec-10 1:30 
AnswerRe: SQL Wildcard (%) query Pin
PIEBALDconsult22-Dec-10 3:38
mvePIEBALDconsult22-Dec-10 3:38 
AnswerRe: SQL Wildcard (%) query Pin
jschell23-Dec-10 8:04
jschell23-Dec-10 8:04 
GeneralRe: SQL Wildcard (%) query Pin
Joe Stansfield5-Jan-11 11:53
Joe Stansfield5-Jan-11 11:53 
QuestionExtracting a blob data file from sqlite Pin
crain198121-Dec-10 13:35
crain198121-Dec-10 13:35 
AnswerRe: Extracting a blob data file from sqlite Pin
Luc Pattyn21-Dec-10 13:55
sitebuilderLuc Pattyn21-Dec-10 13:55 
GeneralRe: Extracting a blob data file from sqlite Pin
crain198121-Dec-10 14:34
crain198121-Dec-10 14:34 
AnswerRe: Extracting a blob data file from sqlite Pin
Luc Pattyn21-Dec-10 14:41
sitebuilderLuc Pattyn21-Dec-10 14:41 
GeneralRe: Extracting a blob data file from sqlite Pin
crain198121-Dec-10 15:04
crain198121-Dec-10 15:04 
GeneralRe: Extracting a blob data file from sqlite Pin
Luc 64801121-Dec-10 16:19
Luc 64801121-Dec-10 16:19 
GeneralRe: Extracting a blob data file from sqlite Pin
crain19818-Jan-11 5:27
crain19818-Jan-11 5:27 

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.