Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connecting to sql server using c#

Status
Not open for further replies.

ace333

Programmer
Jul 12, 2005
105
CH
is there a simple way to connect to a sql server database from a simple c# application. I want to return the rows to a dataset. What i have researched so far is confusing...
a code sample would be great
 
Another thing to add, I can connect to the database by doing it visually through using the server explorer. If I do it that way how do I bring back data and add it to a database. Its strange that i can connect to the server this way but not any other.
 
ignore that last point, i cant connect both ways but i cant login either way even though i can query the database through the sql server query analyser
can anyone help.... have went through the steps above and been looking on google for the last day ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top