473,387 Members | 1,882 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,387 software developers and data experts.

SQL 2005 Express Connection Problem

I'm a newbie to asp.net, but I have been a programmer for years.

I have a question that I'm hoping someone can give me a good answer
for, I have been trying to set up a site remotely and I've been using
the login control that comes with Visual Web Developer 2005 Express,
this comes with SQL 2005 Express. The remote site is not a company
computer, but basically a host that I'm paying for. When I deploy on
this remote site and try to log in I get this error:

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)

Using the Database Explorer I noticed that on my laptop the database
file is sitting on my C: Drive. I also noticed that on the remote
server I deploy to has all my files on their D: Drive. My question is
do I have to set my SQL 20005 Express file up locally exactly the way
the file will set remotely? In other words... If, on the remote
server, my files will be on D:\(url)\asp_data... in order for my login
control to be able to use it, it has to be set the same way?

Also, does that remote site need to be set up with SQL 2005 express as
well? or will the site be able to work off of that file?

And Finally, I also have SQL Server 2000, if I wanted to use this login
control (the one that comes with Visual Web Developer 2005), how can I
reference this server instead of SQL 2005 Express? It seems Visual Web
Developer 2005 wants to use it automatically.

Thanks in advance

Jan 24 '07 #1
1 3238
sql2005 (and sqlexpress) support auto attaching a database in the
connect string. you need to be a database admin for this to work. also
sql2005 or sqlexpress needs to be installed on the webserver for this to
work.
none of this will probably work unless you have a dedicated server at
your hosted site. contact your host and check on database availability.
they might let you attach a database, but more likey they will reate one
and you will need to supply installing scripts.

-- bruce (sqlwork.com)
Marvinq wrote:
I'm a newbie to asp.net, but I have been a programmer for years.

I have a question that I'm hoping someone can give me a good answer
for, I have been trying to set up a site remotely and I've been using
the login control that comes with Visual Web Developer 2005 Express,
this comes with SQL 2005 Express. The remote site is not a company
computer, but basically a host that I'm paying for. When I deploy on
this remote site and try to log in I get this error:

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)

Using the Database Explorer I noticed that on my laptop the database
file is sitting on my C: Drive. I also noticed that on the remote
server I deploy to has all my files on their D: Drive. My question is
do I have to set my SQL 20005 Express file up locally exactly the way
the file will set remotely? In other words... If, on the remote
server, my files will be on D:\(url)\asp_data... in order for my login
control to be able to use it, it has to be set the same way?

Also, does that remote site need to be set up with SQL 2005 express as
well? or will the site be able to work off of that file?

And Finally, I also have SQL Server 2000, if I wanted to use this login
control (the one that comes with Visual Web Developer 2005), how can I
reference this server instead of SQL 2005 Express? It seems Visual Web
Developer 2005 wants to use it automatically.

Thanks in advance
Jan 24 '07 #2

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

Similar topics

1
by: amber | last post by:
Hello, I've just upgraded to VS.NET 2005 and SQL Server Express 2005. I converted my 2003 project into 2005. Now, when I try to run it, I get the error message: A first chance exception of...
1
by: Loane Sharp | last post by:
Hi there I'm not sure that this is strictly relevant to the ASP.NET newsgroup, but perhaps you've encountered a similar problem. Please help!!! I'm using the "System.Data.SqlClient" namespace...
1
by: Wade | last post by:
Is it possible to connect to a SQL 2005 Express db using Visual Basic 2005 Express? I cannot get past the connection.open statement without the error "...Version=2.0.0.0;...
7
by: aaa | last post by:
I have a problem connecting .net 2003 (framework 1.1) with sql express 2005 (framework 2.0) What is the problem: definitions or compatibility?
3
by: Arpan | last post by:
I recently installed SQL Server 2005 (Management Studio Express) along with SQL Server 2005 Express (Configuration Manager) in my Win2K Pro m/c & use IIS 5.0 to run ASPX projects. I could add my...
13
by: josh | last post by:
I'm pretty new to both sql 2005 and VB but please bear with me. I have installed SQL 2005 express on a Windows 2003 Standard server. I have also installed VB 2005 Express edition on the server. SQL...
7
by: Miro | last post by:
I think i have found my problem following an example ive searched for on the net. I am using vb.net 2005 express. What I am looking for is a drag drop from the toolbar that is an...
6
by: greg.hart | last post by:
Hello all, Just wanted to get some clarification on something. I was setting out to create a login page for people to login and then be able to access certain aspects of the website. Instead...
0
by: mina | last post by:
My application which is written in vb.net 2005 uses sql server 2005 express as a database, this application is multi-user. So i am used 3 xp machine to install my application i can say...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.