473,407 Members | 2,676 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,407 software developers and data experts.

Migrating ASPNETDB from SQL 2005 Express edition to SQL 2000

I am trying to deploy a web site on a server but I am having problems with
the ASPNETDB database.

It works fine in development on my PC but as SQL Server 2005 Express Edition
only supports local databases I need to migrate ASPNETDB to one of our SQL
Servers running SQL Server 2000.

I have used aspnet_regsql.exe to create the database and added these lines
to the web config file in the connectionstrings section.

<remove name="LocalSqlServer"/>
<add name="LocalSqlServer"
connectionString="Data Source=RH-SQL-1;Initial
Catalog=ASPNETDB;Integrated Security=True"
providerName="System.Data.SqlClient"/>

When I try to run the site now I get the following error message:

Cannot open database requested in login 'ASPNETDB' Login fails.

Can anyone tell me what I have missed?
--
Derek
Jun 9 '06 #1
1 1693
Fixed this one.

Because I created the database my user was dbo and it would not allow me to
connect under my own name.

I recreated ASPNETDB using a tech account and I fire uo the web site
straight away.
--
Derek
"Derek" wrote:
I am trying to deploy a web site on a server but I am having problems with
the ASPNETDB database.

It works fine in development on my PC but as SQL Server 2005 Express Edition
only supports local databases I need to migrate ASPNETDB to one of our SQL
Servers running SQL Server 2000.

I have used aspnet_regsql.exe to create the database and added these lines
to the web config file in the connectionstrings section.

<remove name="LocalSqlServer"/>
<add name="LocalSqlServer"
connectionString="Data Source=RH-SQL-1;Initial
Catalog=ASPNETDB;Integrated Security=True"
providerName="System.Data.SqlClient"/>

When I try to run the site now I get the following error message:

Cannot open database requested in login 'ASPNETDB' Login fails.

Can anyone tell me what I have missed?
--
Derek

Jun 9 '06 #2

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

Similar topics

1
by: Lubomir | last post by:
Hi, I would like to ask, how different are C# 2005 Express Edition and C# within MS Visual Studio 2005. Than as well Visual Web Developer 2005 Express Edition and ASP within MS VS 2005. ...
4
by: Arne | last post by:
How do I create aspnet.mdf on a production machine? How do I administer users on a production machine?
8
by: nick | last post by:
I have only SQL Server 2005 installed on my PC. And I tried to add the following rows in web.config to use SQL Server 2005 instead of Express: <connectionStrings> <clear /> <add...
1
by: 3Dfelix | last post by:
Problems when uploading ASPNETDB.MDF to production server Hi all, I'm a little web with a login page and aspnetdb.mdf file as data base for users. I've done it on local server, with VS2005 and...
2
by: kress1963nov22 | last post by:
I recently purchased a good MS book ("Build a Web Site Now") by Jim Buyens. It has the Express Edition of MS-Visual Web Developer 2005 on CD and also MS SQL Server 2005 Express Edition on the CD. A...
4
by: jobs | last post by:
Works great on my client when I test from vs.net 2005. Howevever, when I deploy to the web server, I get this error: remotely and local from the web server. An error has occurred while...
0
by: R.A.M. | last post by:
Hello, Please help in the following problem. (I translate texts and messages from Polish to English, so there may be some differences). I have created ASP.NET application with aspnetdb database...
1
by: Scott M. | last post by:
I'm a newbie when it comes to SQL Server and am trying to understand why there is an aspnetdb.mdf created as a system database in SQL Server 2005 Express edition, but also another one of the same...
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
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
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
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
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,...
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.