Help a new sql user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JP Cordier
    New Member
    • Sep 2008
    • 1

    Help a new sql user

    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
    Code:
    sql = " Select * From Questiontable WHERE Type=cboxQType.Text;";
    but it does not display anythin . Please Help
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    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:

    Comment

    Working...