Connecting Tech Pros Worldwide Forums | Help | Site Map

Help a new sql user

Newbie
 
Join Date: Sep 2008
Posts: 1
#1: Oct 3 '08
I am using C# with Visual Studio 2005and i am new to using sql .In my program i am trying to read only records that match certain criteria within a combobox .I tried this
Expand|Select|Wrap|Line Numbers
  1. sql = " Select * From Questiontable WHERE Type=cboxQType.Text;"; 
but it does not display anythin . Please Help
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Oct 3 '08

re: Help a new sql user


Where are you assining this string? It looks more or less ok, but it won't do anything if you are not attached to an SQL server or some other database.

We have an article here that might help you:
http://bytes.com/forum/thread635615.html
Reply