By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,033 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,033 IT Pros & Developers. It's quick & easy.

mssql statment in visual basi c2005 experess edition

P: 1
i am using mssql which build in in the visual basic 2005 web developer express edition..i have a question here to ask..which is how to write the like statement which depend on user input..such as if user input b..i will show all name which start with b on the table and if user key in c, will list down all start with c's name.
Here the mssql normal statment which is
SELECT *
FROM employee
WHERE employeename Like 'a%'

dat is all start with a right~wad bout a until z?
Mar 14 '08 #1
Share this Question
Share on Google+
2 Replies


debasisdas
Expert 5K+
P: 8,127
Your sql statemnet should work perfectly ?
Mar 14 '08 #2

ck9663
Expert 2.5K+
P: 2,878
i am using mssql which build in in the visual basic 2005 web developer express edition..i have a question here to ask..which is how to write the like statement which depend on user input..such as if user input b..i will show all name which start with b on the table and if user key in c, will list down all start with c's name.
Here the mssql normal statment which is
SELECT *
FROM employee
WHERE employeename Like 'a%'

dat is all start with a right~wad bout a until z?

Check this out.

-- CK
Mar 14 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.