Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

connestring in asp.net

Posted on 2009-04-06
9
Medium Priority
?
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 5

Author Comment

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

 
0
 
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 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

688 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