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

Using SQL Server on web host for membership database

A word of warning, I am new to .NET and fairly new to SQL Server.

The problem I have must be a common one, but I am uable to make it
work. I have a .NET project and have the user management and roles
working fine via Visual Studio and the default
"ASPNewSQlMembershipProvider." There is database file called "ASPNETDB
..MDF", and users are easily created and logged in. I can access the
tables fine. Now I just need to upload the application to a web host.
With the host we have a SQL Server 2000 database. They created the
database for us, we don't have admin control to the whole SQL Server
(as is true with most web hosts). The book I have and all the resources
I have found simply say to run the SQL Server Setup Wizard from the
command prompt with "aspnet_reqsql.exe". But here are my problems:

When run the wizard I cannot get past the database selection screen
(3rd screen). The error I get says "Failed to query a list of database
names from the SQL Server. Invalid object name 'sysdatabases' ". I am
100% sure that the server and login information is correct, I am using
it other places and it works fine. I called the web host and they were
no help.

My .NET book also says that, instead of the wizard, I can run the SQL
script called "InstallMembership.sql" that is in this folder:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 ". I am not sure how to
do this.

Can anyone shed some light on this? The only advice I could find was to
run the wizard, which seemed to work for most people. I don't really
care whether the application uses SQL Server or the default setup, I
just need it to work online.

Thanks in advance.

Jun 28 '06 #1
4 5629
It is pretty simple. Let me put up in stepwise,

1. Login to your database control panel (in most cases webhosting
companies provide web-based control panel for manipulating with the
database, for example in godaddy.com case the url for the db control
panel will look like mssqladmin.yoursitename.com)

2. Open the InstallMembership.sql in notepad and select all text, Copy
and paste in the control panel which has a kind of query analyzer interface.

3. Then just execute it.

Now if you check the list of tables you can see table's name starts with
aspnet_*.

Let me know in case of any trouble.

-
Vadivel Kumar
http://vadivelk.net

je************@gmail.com wrote:
A word of warning, I am new to .NET and fairly new to SQL Server.

The problem I have must be a common one, but I am uable to make it
work. I have a .NET project and have the user management and roles
working fine via Visual Studio and the default
"ASPNewSQlMembershipProvider." There is database file called "ASPNETDB
.MDF", and users are easily created and logged in. I can access the
tables fine. Now I just need to upload the application to a web host.
With the host we have a SQL Server 2000 database. They created the
database for us, we don't have admin control to the whole SQL Server
(as is true with most web hosts). The book I have and all the resources
I have found simply say to run the SQL Server Setup Wizard from the
command prompt with "aspnet_reqsql.exe". But here are my problems:

When run the wizard I cannot get past the database selection screen
(3rd screen). The error I get says "Failed to query a list of database
names from the SQL Server. Invalid object name 'sysdatabases' ". I am
100% sure that the server and login information is correct, I am using
it other places and it works fine. I called the web host and they were
no help.

My .NET book also says that, instead of the wizard, I can run the SQL
script called "InstallMembership.sql" that is in this folder:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 ". I am not sure how to
do this.

Can anyone shed some light on this? The only advice I could find was to
run the wizard, which seemed to work for most people. I don't really
care whether the application uses SQL Server or the default setup, I
just need it to work online.

Thanks in advance.

Jun 28 '06 #2
Thanks for your help. The web host doensn't seem to have an admin
panel. Is there a way to execute these scripts through Visual Studio,
Access, or another program?

Jun 28 '06 #3
No way to do that from your local machine. There should be a control
panel provided by the hosting company for dealing with the database.

You should talk with about this.

--
Vadivel Kumar
http://www.vadivelk.net
va**@online.vadivelk.net (remove "online.")

je************@gmail.com wrote:
Thanks for your help. The web host doensn't seem to have an admin
panel. Is there a way to execute these scripts through Visual Studio,
Access, or another program?

Jun 29 '06 #4
Vadivel, thanks for all your help. I was actually able to execute the
scripts from my local machine using SQL Server Management Studio, which
can be downloaded here:
http://msdn.microsoft.com/vstudio/ex...l/default.aspx

There is perhaps a better way to do this, but I am unable to find it.

Jul 6 '06 #5

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

Similar topics

3
by: Carl M. | last post by:
Okay, I'm 18 hours into this now and am at a loss. What I've done is create an application on my local workstation using VWD Express using the membership/roles provider and SQL Server Express...
7
by: C.Joseph Drayton | last post by:
I have a problem that I am hoping someone can help me with. First let me describe the problem. I have an HTML form that in one field has an onBlur call to a JavaScript function. When you exit the...
1
by: Andy | last post by:
Hi, I was wondering if someone could advise on if the following is possible. I have one website that is available to the public using Forms authentication and the Membership class, it...
3
by: jan82 | last post by:
Hi all I'm developing a website with Visual web developer in C#. Everything works fine when testing using ctrl+F5. Also, IIS runs ASP.NET pages without any problems. The problem I'm facing...
2
by: Runsrealfast | last post by:
I am currently setting up my website to login etc. The default that asp.net is set for is sql server express (express edition, to poor to buy the real thing!) my host will only allow for access....
2
by: shaun.laughton | last post by:
Hi All. I am new to ASP.NET 2.0 development, and am writing a small application to log time and expenses for projects. I have successfully set up Membership, Role and Profile providers using...
3
by: Andy Fish | last post by:
Hi, I am trying to figure out how to use asp.net membership providers for my vs2005 web project. unfortunately the only walkthrough in MSDN uses the "Web Site Administration Tool" to configure...
1
George Lft
by: George Lft | last post by:
ok, first of all, i built my register page using dreamweaver tool which the codes haven been out of control. Now i'm thinking that turning over everything - by using this another set of codes. And...
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
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
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
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...

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.