connection string

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Nov 2006
Posts: 44
Reputation: amithasija is an unknown quantity at this point 
Solved Threads: 0
amithasija amithasija is offline Offline
Light Poster

connection string

 
0
  #1
Nov 29th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 6
Reputation: sushanth is an unknown quantity at this point 
Solved Threads: 1
sushanth's Avatar
sushanth sushanth is offline Offline
Newbie Poster

Re: connection string

 
0
  #2
Dec 5th, 2006
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..

With Warm Regards,
Sushanth.CP
Sr. Software Engineer
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 44
Reputation: amithasija is an unknown quantity at this point 
Solved Threads: 0
amithasija amithasija is offline Offline
Light Poster

thanx sushanth

 
0
  #3
Dec 5th, 2006
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.................?
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: connection string

 
0
  #4
Dec 7th, 2006
<appSettings/>
<
connectionStrings>
<
add name="pubsConnectionString1" connectionString="Data Source=P4C800E\SQLEXPRESS;Initial Catalog=pubs;Integrated Security=True"
providerName="System.Data.SqlClient" />
</
connectionStrings>
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC