Wrox Programmer Forums
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 29th, 2006, 02:57 AM
Authorized User
 
Join Date: Jun 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Uploading aspnetdb.mdf to webhost

My current webhost only provides ms sql functionality by allowing the creation of ms sql files from a control panel. It does also allow the import of previously created files, BUT only *.mdb and *.bak files and NOT *.mdf files.

This presents me with a problem as I have relied upon Visual Web Developer Express to create login roles and membership rights for me in a file named aspnetdb.mdf, which unfortunately I cannot port to the webhost.

I have two questions:
Does any one know of a way to convert my aspnetdb.mdf file into backup format, so that I can use my webhosts import process?

Can anyone recommend a webhost that does allow straight forward import of *.mdf files?

Thanks




 
Old August 29th, 2006, 10:07 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

What version of SQL Server is your host using?

If they're using version 2005, you can create a backup of your database using SQL Server Management Studio.

Alternatively you can use Integration Services to copy your data into your new database.

If they're using 2000, you can use Integration Services as well. Or you can run the aspnet_regsql tool against the remote database to create the required structure.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old August 30th, 2006, 07:44 AM
Authorized User
 
Join Date: Jun 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Imar,

My webhost is supporting SQL Server 2000.

Since my last post, I have spotted a link to your really helpful paper on using Microsoft Access Providers instead. I think that might be my best option in the long run.

As an beginner to ASP.net, I am finding your step by step methodolgy very easy to follow. Thanks.

I did have a problem right at the end: When clicking on the security tab in the WSAT I got an exceptions error. I'll step through the process once more and let you know if I am still having problems.

Alternatively have you posted anything on how to use aspnet_regsql remotely?

Thanks for your help,




 
Old August 30th, 2006, 01:46 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Insel.

I am glad you found the article about Access providers useful. In case others are interested, here's a link to the article: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=404

It explains how to compile and use the Microsoft Access Providers that have been released by Microsoft as a shared source initiative and that allow you to use all the cool new ASP.NET 2 services with an Access database instead of SQL server.

I haven't posted anything about running aspnet_regsql remotely, but Scott Guthrie has in his article "Configuring ASP.NET 2.0 Application Services to use SQL Server 2000 or SQL Server 2005" located here: http://weblogs.asp.net/scottgu/archi...25/423703.aspx

(You may have seen it already because I linked to it from my article.)

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about ASPNETDB.MDF frankym BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 October 3rd, 2008 11:26 AM
Get password value from aspnetdb.mdf rsearing ASP.NET 2.0 Basics 8 October 12th, 2007 09:12 AM
ASPNETDB.MDF Changing motemape BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 27th, 2007 06:14 AM
aspnetdb.mdf Jackxxx ASP.NET 2.0 Basics 0 January 9th, 2007 01:37 PM
Delete user from ASPNETDB.mdf rsearing ASP.NET 2.0 Basics 2 January 7th, 2007 05:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.