Solved

connestring in asp.net

Posted on 2009-04-06
9
411 Views
Last Modified: 2013-11-30
i just get web space on host
i want to know which connestring i use to get data base in asp.net
0
Comment
Question by:chandresh43
  • 5
  • 4
9 Comments
 
LVL 27

Expert Comment

by:nmarun
ID: 24078957
That depends on what database you want to use. Have a look at: http://www.connectionstrings.com.
0
 
LVL 5

Author Comment

by:chandresh43
ID: 24079230

but witch string i use for host site database
0
 
LVL 27

Expert Comment

by:nmarun
ID: 24079243
What database application are you using? Is it SQL Server, Oracle, MS Access, MySQL.. etc?
0
 
LVL 5

Author Comment

by:chandresh43
ID: 24079264
sql server 2008
host ip is
https://74.86.34.98:8443/
database is shiv

 
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 27

Expert Comment

by:nmarun
ID: 24079558
Then your connection string should look something like:

Data Source=74.86.34.98,8443;Network Library=DBMSSOCN;Initial Catalog=shiv;User ID=myUsername;Password=myPassword;

Change the User ID and Password values.
0
 
LVL 5

Author Comment

by:chandresh43
ID: 24083446
it give me error
Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
0
 
LVL 27

Accepted Solution

by:
nmarun earned 500 total points
ID: 24083954
Try this:

<add key="DBConnection" value="Data Source=74.86.34.98,8443;Network Library=DBMSSOCN;Initial Catalog=shiv;User ID=myUsername;Password=myPassword;Connect Timeout=200;"/>

This sets the timeout to 200 seconds.
0
 
LVL 5

Author Comment

by:chandresh43
ID: 24084733
where i use this in web.config
or else
0
 
LVL 27

Expert Comment

by:nmarun
ID: 24087397
Yes, you add this to the web.config file. See the article below:
http://www.odetocode.com/Articles/345.aspx
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now