In VS 2005, I have a login screen and I just need the code to add a SQL query and run it. I have a form with a binding navigator and I just draged the table from the Data Sources pane to the form. (There is probably some name for it but im not sure of it!)
I just need the code to apply a query!
Thanks guys,
Zack

SQL Query
Fahd
I think these How-to topics will help you to do this. If the links do not work, you can search for the title on http://msdn2.microsoft.com/.
The main page - Fetching Data into Your Application: http://msdn2.microsoft.com/en-us/library/ms171918(en-US,VS.80).aspx.
Depending on your SQL query, you can try one of these:
- How to: Create and Execute an SQL Statement that Returns Rows
- How to: Create and Execute an SQL Statement that Returns a Single Value
- How to: Create and Execute an SQL Statement that Returns No Value
- How to: Execute a Stored Procedure that Returns Rows
- How to: Execute a Stored Procedure that Returns a Single Value
- How to: Execute a Stored Procedure that Returns No Value
Best regards,