Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Migrating ASPNETDB from SQL 2005 Express edition to SQL 2000

 
Thread Tools Search this Thread
Old 06-09-2006, 02:06 PM   #1
Default 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


=?Utf-8?B?RGVyZWs=?=
  Reply With Quote
Old 06-09-2006, 02:40 PM   #2
=?Utf-8?B?RGVyZWs=?=
 
Posts: n/a
Default RE: Migrating ASPNETDB from SQL 2005 Express edition to SQL 2000
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



=?Utf-8?B?RGVyZWs=?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fox Studio Classics - R1 vs R2 ayric DVD Video 1 05-10-2006 05:56 PM
A-1 Cheap Dvds CHEAPDVDS DVD Video 0 06-19-2005 03:30 AM
requesting a hand up - read for your Mom [short message with Quotes] Miss Marple DVD Video 1 03-17-2005 10:07 PM
New Releases: More WB 2 Packs, Discontinued titles: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 0 10-19-2004 05:45 AM
More New Silver Pressed DVDs Added.. SPW DVD Video 0 05-13-2004 12:30 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46