Fetching Data from Database
How to select data from database using hashtable
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Afzaal Ahmad ZeeshanPosted Mar 18, 2015, 10:21 AM
You use the objects present inside the SqlClient namespace, to work with the SQL Server databases. You would need, Connection string for your database; which would include the server name, database name, authentication and other data that you would require to connect to the database instance. Once that has been done, you can connect to your database using the SqlConnection object, and execute different commands using SqlCommand object.
You can then, access the values and generate a HashTable for your data inside the database tables. But you can't access SQL Server database values using a HashTable, it is not designed for such purposes.