TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
libertychisasuro
NA
11
0
Microsoft Acces and Datagrid
Apr 2 2005 12:54 PM
Here's all I want to do: connect to an ms access db do a SQL query (based on a search string entered in a text box) get results bind them in a datagrid can anyone guide me on how to do this? i have some code on how to do it but its based on a sqLconnection. I have included the sample. maybe someone can modify this code from a sql to a micrsoft connection. //Modify this string to correctly connect to your SQL Server. static SqlConnection con = new SqlConnection("server=YourServerName;uid=YourUserId;pwd=YourPassword;database=pubs"); SqlDataAdapter daAuthors = new SqlDataAdapter("Select * From Authors", con); DataSet ds = new DataSet(); DataView dv; CurrencyManager CM; thnx
Reply
Answers (
1
)
how to create a kernel for a C# application
Minor adjustment needed!