How to connect sql database to your c# program

Recommended Answers

All 5 Replies

Depends on the type of database engine being used, but if you mean MSSQL then there are a lot of tutorials and sample code on the subject. For example, this one describes the process in detail.

Otherwise, try google search for "C# SQL Database".

in your webconfig file
in configuration tag
<connectionStrings>
write
</connectionStrings>

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.