473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Uploaded database

I cannot have access to my uploaded db. I get error listed below. I'd like to
know the following: If I set my connection infomation in web config. Do I
have to change it when it's uploaded, because the host request that I change
the name of the database. Will problems may arise with database and server
name? Also I've enabled remote access.

"An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance
Specified)

--
L. A. Jones
Jul 15 '07 #1
4 1446
On Jul 15, 9:06 am, Dave <D...@discussions.microsoft.comwrote:
I cannot have access to my uploaded db. I get error listed below. I'd like to
know the following: If I set my connection infomation in web config. Do I
have to change it when it's uploaded, because the host request that I change
the name of the database. Will problems may arise with database and server
name? Also I've enabled remote access.

"An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance
Specified)

--
L. A. Jones
Take a look at this article, it may help, I think
Recipe: Deploying a SQL Database to a Remote Hosting Environment (Part
1)
http://weblogs.asp.net/scottgu/archi...nt-part-1.aspx

Jul 15 '07 #2
"Dave" <Da**@discussions.microsoft.comwrote in message
news:66**********************************@microsof t.com...
>I cannot have access to my uploaded db. I get error listed below. I'd like
to
know the following: If I set my connection infomation in web config. Do I
have to change it when it's uploaded, because the host request that I
change
the name of the database. Will problems may arise with database and server
name? Also I've enabled remote access.

"An error has occurred while establishing a connection to the server.
When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance
Specified)
You talk of "the host", so I'm presuming that this is a database being
hosted by a 3rd-party ISP.

The error that you're seeing is a generic one which is thrown when a
connection to the database cannot be made. In this particular instance, it
almost certainly isn't anything to do with remote connections - instead, as
you suspect, it's because the server and/or database referenced in your
connection string doesn't exist on your host's environment.

In which case, you will almost certainly need to change your connection
string - your ISP should have provided you the necessary details for this.

You might also like to have a look at Web Deployment Projects:
http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx - this allows you
(among many other things) to replace the connectionString section of your
web.config when you deploy it.

Also, you shouldn't even need to worry about remote connections, firewalls
etc anyway - it's up to your ISP to configure this correctly for you.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 15 '07 #3
Dave,
Your post is really much too "general" to be able to come up with a specific
answer. If you are referring to SQL Server 2005 (Express) this allows local
file-based MDF database attachment to be specified in the connection string.
However in practice, few hosting companies permit this on the server (and it
probably would not work anyway) - what they require is that you populate the
database instance they give you, along with a specified connection string,
with all your "Stuff" via a script. Take a look at the "SQL SERVER DATABASE
PUBLICATION WIZARD", which is easy to find online with a search.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"Dave" wrote:
I cannot have access to my uploaded db. I get error listed below. I'd like to
know the following: If I set my connection infomation in web config. Do I
have to change it when it's uploaded, because the host request that I change
the name of the database. Will problems may arise with database and server
name? Also I've enabled remote access.

"An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance
Specified)

--
L. A. Jones
Jul 15 '07 #4
Dave wrote:
>I cannot have access to my uploaded db. I get error listed below. I'd like to
know the following: If I set my connection infomation in web config. Do I
have to change it when it's uploaded, because the host request that I change
the name of the database. Will problems may arise with database and server
name? Also I've enabled remote access.

"An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance
Specified)


Hi,

string connectionString = "Data Source=XXX.XX.XXX.XX;database=Database1;User
ID=user1;Password=absdfg;";

SqlConnection conn = new SqlConnection(connectionString);

You should ask the above details like Data Source =IP address , User name and
password from your ISP.

Database programming using Visual Basic 2005 and Csharp 2005
http://www.vkinfotek.com

--
Message posted via http://www.dotnetmonster.com

Jul 16 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mat | last post by:
Hi, I have a system that uploads images as BLOBs in a database. I also have a function that I use to resize uploaded images before saving as files. I would like to combine these two by resising...
2
by: bissatch | last post by:
Hi, I am trying to write script that is run when a form is submitted. The form contains an image input field and when submitted, the image is uploaded, resized and added as binary information to...
0
by: Satish Appasani | last post by:
Hi: I have a ASP.NET form with Web layout which I've achieved using panels. In one of the tab I have a File control to upload Images. When I put a file in the file control and move to another...
2
by: Brad | last post by:
I have code which takes an image, uploaded from a web page, and saves it to a database. Now I want to always resize an uploaded image before it is saved to the database. My code to resize is...
2
by: Greg | last post by:
I need to create an aspx page that accepts an uploaded text file from a user and parses the file contents into various, normalized database tables/columns. The input file is an industry standard,...
2
by: syam | last post by:
Hai evenerybody.. I uploaded a text/html file into the database now i want to read the contents of the file and write the contents to send as an email. How do i read the contents of the file,...
2
by: agarwalsrushti | last post by:
Hi, I have made a registration form for job site in which the user uploads a .doc or .txt file through form along with the other details stored in the database. The uploaded files is sored in the...
14
by: Jeigh | last post by:
Hello, I'm going to start making a script that will allow users to upload a file, then re download it later. I'll basically be doing the following: - The uploaded file will be given a string of...
8
by: zizi2 | last post by:
Hi, I have a webform that uload images as well. The image is uploaded well but the problem arises when the user does not upload any image. I want the form to save nothing for the image_name in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.