i know this is not a question u'll enjoy,but i am new to asp.net but i need a connectio string to start my project ,so can anybody plz tell me how to get connection string while using sql server 2005.plzz
amithasija
0
Light Poster
Recommended Answers
Jump to PostHello Amitha,
you can create the connection string in web.config file.
for eg:
<appSettings>
<add key = "ConnectionString" value = "Persist Security Info=False; User ID=sa; Password=; Initial Catalog=NTBS; Data Source=(local)" />
</appSettings>
and you can call the connection string using
ConfigurationSettings.AppSettings["ConnectionString"];
command..
All 3 Replies
Reply to this topic
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.