943,945 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 4464
  • ASP.NET RSS
Nov 29th, 2006
0

connection string

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
amithasija is offline Offline
44 posts
since Nov 2006
Dec 5th, 2006
0

Re: connection string

Hello 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..

Reputation Points: 10
Solved Threads: 1
Newbie Poster
sushanth is offline Offline
6 posts
since Dec 2006
Dec 5th, 2006
0

thanx sushanth

thanx for your reply sushanth,i have 1 more question for u,i developed one window aoolication using firbird database as stanalone server,so when i try to do any really fast on my running application(like click on datagrig values very contineously,than my application got hangs.and run again only when i restart my machine.can u help me this case also.................?
Reputation Points: 10
Solved Threads: 0
Light Poster
amithasija is offline Offline
44 posts
since Nov 2006
Dec 7th, 2006
0

Re: connection string

<appSettings/>
<
connectionStrings>
<
add name="pubsConnectionString1" connectionString="Data Source=P4C800E\SQLEXPRESS;Initial Catalog=pubs;Integrated Security=True"
providerName="System.Data.SqlClient" />
</
connectionStrings>
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC