sample with c# sql database connection

Recommended Answers

All 3 Replies

Where you supposed to enter this into google ?

Have a look at this

SqlConnection cn = new SqlConnection("server=localhost;database=Database name;trusted_connection=true");

this won't help i hv tried above code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.