3
Answers

SQL connection string

Soumya Surendran

Soumya Surendran

15y
8.5k
1

hai expert please help me......
I am using SQL server managent studio express and c# for windows application...i have copied my data base to bin..I am using the following connection string..but it is not taking the database from bin.
SqlConnection  con=new SqlConnection( "Data Source=.\\SQLEXPRESS;Initial Catalog=dbRDAgent;Integrated Security=SSPI");
Plaese give me the connection string for establishing a connection to the database in bin.
thanks in advance................
Answers (3)
0
Rashid Khan

Rashid Khan

NA 104 0 14y
Well haven't get any reply for this.
but i got a code from other source
here is the link
http://www.codeproject.com/script/Articles/ArticleVersion.aspx?aid=18042&av=213874

add this class in your existing project create object of this class and use its properties.
it works fine  but need to change as per your requirement . like spacing, alignment etc
i got my solution may be it works for other too
Have a nice day
Bye

0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 14y
If the query got resolved, then mark the post that helped you as Answer so will be helpful for others. Otherwise if you got the solution please share with us.
0
Krishna Garad

Krishna Garad

NA 16.5k 6.2m 14y