how to make database connection in sqlserver 2005 in c#
tiwari.vinay96 0
Newbie Poster
Recommended Answers
Jump to PostHere is an example using the SQL Native driver:
using System; using System.Data.SqlClient; using System.Windows.Forms; using System.Data; namespace daniweb { public partial class frmSql : Form { public frmSql() { InitializeComponent(); } private void button3_Click(object sender, EventArgs e) { const string connStr = "Data Source=apex2006sql;Initial Catalog=ServManLeather;Integrated Security=True;"; …
All 3 Replies
sknake 1,622
Senior Poster Featured Poster
ddanbe
commented:
Helpfull as always +6
Ionelul 7
Junior Poster in Training
maxwik -7
Newbie Poster
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.