I would like to get assistance on how to retrieve data from MS SQL database to view it on a listbox.In my db i have two columns.
khuks 0
Newbie Poster
Recommended Answers
Jump to PostWelcome khuks,
Read rules first,
1.
How to use code tags?
2.
Homework policyUse classes of System.Data.SqlClient and System.Data namespace.
Jump to PostI would like to get assistance on how to retrieve data from MS SQL database to view it on a listbox.In my db i have two columns.
Hi khuks,
You may use ExecuteReader to retrieve the data from the database..
All 5 Replies
kvprajapati 1,826
Posting Genius Team Colleague
Piya27 4
Junior Poster
Piya27 4
Junior Poster
khuks 0
Newbie Poster
kvprajapati 1,826
Posting Genius Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.