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

Database on remote server

Database on remote server

On the remote server where my ASP.NET application is located there is no SQL
Server or SQL Server Express. When I test my application locally it works
fine because I have the SQL Server Express 2005 on my computer, but when I
deploy it I am getting error message telling me that there are some problems
connecting to the database. I have done the preparation on my SQL Server to
allow remote connection to the database. I am wondering if I understand the
problem right. The file located in my application with the extension .MDF
needs a service running on the remote server to allow my application to
connect to it (e.g SQL Server and SQL Server Browser services) .

Can anyone explain to me how this works? Do I need to create the same
database on the Database server at my ISP and change the connectionstring in
my application?

-DataBaseServer and WebServer are not the same server but I have access to
both

-The Webserver supports ASP.NET 2.0

TIRislaa
Oct 4 '06 #1
2 2063
So if you don't have SQL Server on your remote machine, where are you trying
to connect to? Back to your dev machine? For the most part, your database
needs to be on your operational .NET server or on another operational server
that has a dedicated database. Typically you develop using something like
SQL desktop on your dev machine, using one connection string (local) and
then change the connection string to your ops database when you compile your
app for publishing.

If you can tell me more about your setup, I can help you more.

Chip

"Tor Inge Rislaa" <to************@rislaa.nowrote in message
news:u2**************@TK2MSFTNGP05.phx.gbl...
Database on remote server

On the remote server where my ASP.NET application is located there is no
SQL Server or SQL Server Express. When I test my application locally it
works fine because I have the SQL Server Express 2005 on my computer, but
when I deploy it I am getting error message telling me that there are some
problems connecting to the database. I have done the preparation on my SQL
Server to allow remote connection to the database. I am wondering if I
understand the problem right. The file located in my application with the
extension .MDF needs a service running on the remote server to allow my
application to connect to it (e.g SQL Server and SQL Server Browser
services) .

Can anyone explain to me how this works? Do I need to create the same
database on the Database server at my ISP and change the connectionstring
in my application?

-DataBaseServer and WebServer are not the same server but I have access to
both

-The Webserver supports ASP.NET 2.0

TIRislaa


Oct 5 '06 #2
The Web server and the Database server are on the same network at my ISP but
it is not on the same IP Address. Instead of referring to local host I need
to point to the server by using IP address or DNS name .

By default, user information (used for roles, users by login controls) is
stored in a Microsoft SQL Server Express database in the Data folder of the
Web site. Is it possible to store the data in a remote SQL Server 2005
instead of the SQL Server Express database on your local computer?

TIRislaa

"Chip" <ch**@intradata.comskrev i melding
news:eo**************@TK2MSFTNGP04.phx.gbl...
So if you don't have SQL Server on your remote machine, where are you
trying to connect to? Back to your dev machine? For the most part, your
database needs to be on your operational .NET server or on another
operational server that has a dedicated database. Typically you develop
using something like SQL desktop on your dev machine, using one connection
string (local) and then change the connection string to your ops database
when you compile your app for publishing.

If you can tell me more about your setup, I can help you more.

Chip

"Tor Inge Rislaa" <to************@rislaa.nowrote in message
news:u2**************@TK2MSFTNGP05.phx.gbl...
>Database on remote server

On the remote server where my ASP.NET application is located there is no
SQL Server or SQL Server Express. When I test my application locally it
works fine because I have the SQL Server Express 2005 on my computer, but
when I deploy it I am getting error message telling me that there are
some problems connecting to the database. I have done the preparation on
my SQL Server to allow remote connection to the database. I am wondering
if I understand the problem right. The file located in my application
with the extension .MDF needs a service running on the remote server to
allow my application to connect to it (e.g SQL Server and SQL Server
Browser services) .

Can anyone explain to me how this works? Do I need to create the same
database on the Database server at my ISP and change the connectionstring
in my application?

-DataBaseServer and WebServer are not the same server but I have access
to both

-The Webserver supports ASP.NET 2.0

TIRislaa



Oct 6 '06 #3

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

Similar topics

20
by: xixi | last post by:
hi, we use db2 udb v8.1 on windows, i am trying to use federated database objects to create wrapper, even though i have update dbm cfg using federated yes, i still get error "the instance for the...
5
by: premmehrotra | last post by:
I currently have a multi-user access database which is put on a shared drive L: on a Windows Servers. Entire database is one file premdb.mdb. Users access this database from their laptops....
2
by: James | last post by:
Dear Access Guru's, Hopefully you can help me (as Microsoft don't seem to be able to) We have an Access database on a Windows 2003 server with 5 CALS in our office. Access is loaded onto...
0
by: Bennett Haselton | last post by:
In Visual Studio .Net 2002 Server Explorer, if I add a new connection under "Data Connections", I can specify a remote server name and the username and password that I want to use, but then when...
3
by: Pakna | last post by:
Hello, I have what may be a beginner's question regarding DB2. How does one access a remote table on a remote database via SQL? What is the command string, is there an equivalent of Oracle...
0
by: jaykris9 | last post by:
Hello, I have a database on my system with same name as that on the remote server.I do have DSN Name, userid & password for connecting the remote server. Is there any possibility of restoring the...
7
by: Martin | last post by:
Hello Does anyone know if it is possible to use the smo db.Create() method to create a new sql server database with sql server 2005 express? The debugger complains that remote operations are not...
7
by: =?Utf-8?B?a21jY29za2V5?= | last post by:
I'm trying to access an access database on the file server from a web server using asp.net and IIS 6.0. I can do it when I have anonymous access enabled in IIS 6.0 as in the public internet web...
4
by: dgleeson3 | last post by:
Hello all I am creating a VB.Net distributed SQL server 2005 application. Each computer in the system has a database with a table of users and their telephone numbers. Each computer has a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.