ASPNETDB.mdf - Setting Your Website To Use Your Hosted DB Instead

May 13, 2007

Hi,

I'm running Visual Web Developer 2005 and have created a small site with a log-in function. In VWD this automatically creates the database ASPNETDB.mdf which stores all the user / log-on data.

I have 1 x MS SQL Server 2005 DB which I am using to store data for my site.

Can anyone advise me on how to setup my site / the ASPNetDB so that it runs on my MS SQL Server?

I've searched the ASP.NET forums etc and this does seem to be an area where people are struggling.

I have tried running the ASP.NET SQL Server Registration Tool (Aspnet_regsql.exe) and get the following error:

"Setup failed.

Exception:
An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 8152 and the SqlException message is: String or binary data would be truncated."

As a beginner I've struggled from downloading an online template, then uploading it to my site, and the log-on doesn't work. There didn't seem any instructions / advice on what to do with the ASPNETDB.mdf database.

Help / advice would be much appreciated!

Thanks,

Tom

View 2 Replies


ADVERTISEMENT

ASPNETDB.MDF In Visual Studio 2005 --&&> ISP-hosted MS SQL

Mar 5, 2007



I am using (and making some enhancements to) the auto-generated ASPNETDB database in Visual Studio 2005. Now, I would like to deploy the application I have built (together with the data it contains and uses) to my ISP's ASP.NET 2.0 server and my freshly-purchased MS SQL database.

I haven't a clue how to do the above. Some other posts mention Entreprise Manager and Data Transformation Tools, but I really don't know where to start. I wonder if someone would be kind enough to go through each step in detail? Don't worry about sounding condescending... I really am a novice!

I apologise for the naivety of this message...!

Any and all help hugely appreciated!

Josh Ord-Hume

View 3 Replies View Related

Is It Possible To Have A Website Remotely Hosted, Which Would Access Local Database?

Dec 24, 2007

Hi everybody,
Currently we have a MIS application, developed in VB 6.0 - SQL Server 2000 platform, which is used by around 60 users in our office.
We are planning to host a website remotely, which would allow clients to place orders, track order status etc. on it.
Would it be possible to access our local SQL database from the remote website?
 

View 4 Replies View Related

Multiple Users Of A Website Using Aspnetdb.mdf Database

Jul 15, 2007

I don't know whether this question belong here, but....
In the past I had many customers using the same website each with their own domain name and their own database. To accomplish that, I used MS Access and placed each customers database in separate directories. I steered the customer to the correct directory using their domain name. I am now trying to accomplish the same thing using aspnetdb.mdf and other .mdf database files. I am using the aspnetdb.mdf database for membership, etc. I want the aspnetdb.mdf database file to be unique for each customer. Does anyone know how to accomplish what I was doing with MS Access using aspnetdb.mdf? Is there any way to have multiple web.config files each of which would be dedicated to a particular customer?
 

View 1 Replies View Related

Updating Aspnetdb.mdf Once It Is Launched To The Website Hosting Server

Oct 5, 2006

I'm having my website hosted with webhost4life.com which is very helpful and a really great company if you are using Visual Web Developer with SQL Express.  The question I have for anyone who can help me is that my site will offer member roles for customer account maintenance with login and the works.  As you know, when you use memberships with Visual Web Developer, it associates all these controls with a database called aspnetdb.mdf.  And you maintain this database through the asp.net configuration control.  Once this database is launched, I've learned how to access it by changing my web.config file removing the LocalSQLServer and adding one with the connection string to the aspnetdb.mdf database on the server.  My question is, once I've done this and connected through that string, can I still use the asp.net configuration to edit the database (e.g. the users, roles, etc)?

View 1 Replies View Related

Using Aspnetdb Express Database For Private Website Tables

Mar 23, 2007

Hi, I am using express database and tools. I have an aspnetdb express database because I am using the login controls, personalisation...Can I use this database for my private tables also? Or do I need a separate express database for my private tables? Will using aspnetdb database, which contains special asp.net tables, for my private website tables create any kinds of problems in using my website? I want to use a single express database for my website, not two different express databases.
Regards, Sandy

View 1 Replies View Related

Moved Aspnetdb To SQL Server - What Permissions Do I Need To Give The ASP IIS Service Account For That? (Getting: Cannot Open Database Aspnetdb Requested By The Login. The Login Failed.)

May 12, 2008

I am getting the error:
Cannot open database "aspnetdb" requested by the login. The login failed.
When I browse to my ASP.NET 3.5 LINQ web application on the IIS 6.0 server on Server 2003.
I imagine this is because while I granted SQL Server 2005 login and permissions to my database that the application stores its data in, I did NOT grant any rights to the service account the IIS Application Pool uses for its identity to the aspnetdb database on SQL Server which is where all my roles information is stored at.
My question is what are the MINIMUM permissions needed for this database so it can perform its roles related functions?
I'm using Windows Authentications with the SQL Role provider for authorization.
 
Thank you.
 
 
EDIT: I think I only need to open the aspnetdb database and add my login to the aspnet_Roles_FullAccess role.  Is that correct?

View 2 Replies View Related

Hosted SQL Server: Where To Start?

Dec 17, 2004

I just added a 30MB SQL Server 2000 space for my site.

My host said that it only provides the space and nothing else. They will not be providing any means to connect to the database like Enterprise Manager 2000 or MS Client Network Utility. I'm not familiar with any of these and I looked at Microsoft's site to download it but I cannot find it.

Do you have any suggestions on how I go about setting up my hosted SQL Server? If those utilities are costly, are there cheaper/free alternatives?

Thanks.

View 3 Replies View Related

Adding Roles To Hosted Server

Oct 24, 2006

I need to find out how to add roles to my SQL that is on a hosted server.I have created 2 roles, but after publishing and uploading my site, when I try and create a user, I get the error:"Exception Details: System.Configuration.Provider.ProviderException: The role 'userAtype' was not found."There are two other roles that the same happens with.Running it locally all was fine, I just didn't seem to get this info where it needs to be when I uploaded it.I'm new to messing about with SQL, so sorry if this is really elementary.I have VS2005 Standard, and the SQL Server Management Studio Express.The hosting provider I have does not allow remote connections to the DB on shared hosting, so I need to (?) generate a script to populate the DB? and run it in their browser-based Querry Window?How would I do this?Thanks.

View 4 Replies View Related

Backup Strategies For Hosted Enviroment ?

Oct 2, 2007

Im about to start a project that will be hosted by a third party web host.  What is a common way to backup your database and have the backup saved ?  The data may end up being several 100 MB of user settings, text etc (blog type stuff).  If the DB gets to be several 100MB, then does making a backup and ftping it offsite  sound reasonable ?  Does ftp bandwidth usually count against your overall bandwidth usage ?  

View 2 Replies View Related

Can't Connect DataSource In VWD To Hosted Database

Mar 7, 2008

I've tried everything. The CreateUserWizard works fine, but then, I didn't have to connect anything for that. I've tried both SQLServer and MySQL. Connection Strings are correct, everything is correct as far as I can see. I've followed every step many many times. I'm about to go back to the old style and use VB6, because this is just stupid. The error I get is "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" If anyone could help me out with this I'd really appreciate it.

View 6 Replies View Related

Connecting To SQL Express On A Hosted Site

Dec 28, 2005

Folks.
I just moved my domain to GoDaddy.com.  When I run my website locally, everything works fine.
 
When I ftp it to my server space on GoDaddy.com, I get a "remote connection" error.  Does anyone have an example of a connection string I should be using to connect while on the server?
 
Thanks!

View 2 Replies View Related

Accessing Hosted Mssql Server

Jan 9, 2005

Hi there,

We've got an mssql database hosted on our fasthosts account, however I don't have any applications to access this. When using MySQL databases I use the MySQL control centre available on the MySQL website.

Are there any similar applications available (and if possible free!) that do a similar job for mssql.

Thanks for your help guys!

View 1 Replies View Related

Can A SQL2005 DB Be Hosted On A SQL2000 Server ?

Jan 2, 2007

Hi,
I'd like to host a small website created using VS2005 EE with a company that offers just SQL2000 DB support.
My question, can i use the DB created by VS site manager as a DB to the site, if not, is there any alternatives.
Thanks.

View 1 Replies View Related

Access Connection To Hosted Database?

Jun 28, 2012

I have a SQL Server 2005 database hosted by a provider that has about 500 databases on their site. I am running Access2007 on a Windows 7 Home Premium edition.

What I am trying to do is create a new Access2007 application and attach (i.e: Link) to the SQL Server tables. I am using SQL Authentication.

I have done this before where i attached via ODBC to Oracle, but it was on the corporate network - not on a hosted server. When i try to walk thru the Access process, it does not seem to let me give it the database name. I have the connection string i use in C# (for example: Data Source, Initial Catalog, UserID and Password), how to connect with Access2007.

View 4 Replies View Related

Security In Hosted Database Servers

Sep 22, 2007

Hello,

I am working on an ASP.NET apllication which will work with sensitve data that needs stored as encrypted. The ASP.NET application and SQL Server 2005 will be hosted outside of our company.

My questions are:


When I create a database master key, a certificate and a symetric key to encrypt and decrypt my data, will I be able to use these (master key, cert and symetric key) in other databases (say my local development SQL Server 2005 instance)?
Is a managed hosting a better solution to have total control over the the keys in the database?
Is there a white paper or guidance document for security in hosted databases?Thanks
-Al

View 3 Replies View Related

Sqlexpress Connection On Hosted Server

Sep 7, 2006

I am using a virtual dedicated server to host sqlexpress at a remote site. I can't get the connection from MS SQL Server Management Studio Express to connect over the Internet. I only have the box IP address (xxx.xxx.xxx.xxx) and have tried various forms of xxx.xxx.xxx.xxxsqlexpress as the server name.

Can someone point me in the right direction please?

Thanks, John

View 3 Replies View Related

Login Failed For SQL Job On A Hosted Facility

Mar 11, 2008

I am pushing data to a hosted facility and I can successfully push it from BIDS but the package fails login failure when scheduled as a job. I am not sure what to use on package protection level since this data is being pushed over the internet and If I encrypt all the data with a password it will be decrypted on the hosting facility.

Please help.

View 8 Replies View Related

Remote Hosted SQL Server - Approach?

Jul 18, 2007

I have been happily using RS (SQL200) on one of our local servers for some time. However, we have SQL2000 installed on a hosted, managed remote server for some applications we provide.



We need to report on the data so the obvious decision was to get RS installed on the remote machine so I could design and deploy the necessary reports from here to RS on the hosted server.



However, for various reasons (that I do not fully understand) the default install of RS does not work on the remote server and the hsoiting company won't install it in anything other than it's default dormat. So our original plan seems to be stuffed.



What are options here? It was suggested that we could 'replicate' the hosed server data to my 'local' SQL server but that seems to have hit a brick wall too.

What would I need to do to report using the 'local' RS against the 'remote' data - is this possible?

View 1 Replies View Related

Can't Connect To SQL Server When Hosted Within VMWare

Jun 2, 2008

Hi,
I'm having loads of trouble trying to connect to SQL Server using management studio when the database is hosted within VMware.

Here is what I've found:
1) I can ping the Virtual machine at 192.168.10.70
2) If I open the virtual machine and use management studio locally on the machine, but use the above IP address, correct credentials, the database logs in ok.
3) If I open management studio but on my development machine and put the EXACT same credentials into the login screen of step 2, I get the dreaded error: Timeout expired. The timeout period elapsed to completion of the server not responding....

Remote connections are set to allowed on the VM host machine too, so I know its not this that is the problem.
The VM also hosts IIS and serves ASP pages just fine.

What am I missing?

View 6 Replies View Related

Connecting To Hosted / Remote Database

Mar 18, 2006

Hello,

I would like to know whether is it possible to administer a database on a hosted site - i.e inserting some lines, executing a query. I normally access the files via ftp connection. And so far the only way I figured I can mess around with the database is to download it and change it on my desktop PC.

Thank You.

Tomáš Pajonk

View 5 Replies View Related

Restore Backup To Remote Hosted Server

Aug 21, 2006

Sorry if this is elementary, but I have searched and cannot find an answer.
I have a backup file of a sql server 2000 database. I want to restore it to a remote hosted sql server 2005.
Using sql server management studio, it seems to me that I cannot access the files stored local on my computer.
Does anybody have a solution?
What is the best way to deploy my backup file to the remote server?
Thanks for any suggestions!

View 1 Replies View Related

DB Access Works In Debug But Fails When Hosted

Mar 28, 2007

I have written a intranet page that writes some info into a sql database, basically following the 'SQL Server 2005 Express for Beginners' video.When I debug the application from within 'Visual Web Develop 2005 express' it works fine entries are entered into the DB and I can then edit the db using the admin page.But when I host the site using IIS I doesn't work, submissions to the database seem to fail I can see the DB in the admin page but if I try to edit them or delete them it fails. What could I doing wrong could I be missing a setting in IIS? Any ideas??Here's my webconfig if that helps at all:  <?xml version="1.0"?><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">    <connectionStrings>        <add name="studentprofilesConnectionString1" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|studentprofiles.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>    </connectionStrings>    <system.web>        <roleManager defaultProvider="AspNetWindowsTokenRoleProvider" />  <compilation debug="true" defaultLanguage="c#" /></system.web></configuration>  

View 1 Replies View Related

How To Setup Profile, Roles, Etc In My Hosted Sqlserver?

Jan 11, 2006

I've been working with godaddy.com, and when I setup there the sqlserver databases it tells me if I want to create the tables and stored procedures that conform the typical profile, roles and users features... the same as if I execute the aspnet_regsql.exeNow I'm working with anotherhoster (aruba) and I've setup the database OK, but i didn't found any way to setup the profile, roles, users, etc features.Aruba uses the mssql server web admin.How can I setup this features? Of course, aruba doesn't let me to execute the aspnet_regsql.exe...thanks

View 7 Replies View Related

Insert Data From Office To Hosted Database

Apr 28, 2006

What is the best way to insert records into an SQL Server 2005 database that's being hosted with my website.  The data will originate from customer sites as transactions.  Do I connect to the hosted database using TCP/IP or do I create web pages that accept the data variables?  This is all new to me!
I need this to happen unattended and 24/7/365
Thanks
Tim

View 1 Replies View Related

Accessing Stored Procedures On Hosted Server

Oct 19, 2007

I have several hosted websites using MS SQL Server 2005 and ASP.NET 2.0 set up as DotNetNuke portals. I need to do a minor patch in a stored procedure to fix buggy functionality in one module. I have the patch, but what do I need to install on my local machine in order to edit the stored procedures on the hosted database?

The hosting company's support said to install SQL Server Management Services (SSMSEE.msi), but the install fails giving a link to a pre-requisite component called ADOMD.msi. That one seems to install okay, but I still get the same error when trying to install the Management program.

Perhaps I need SQL Server Express on my local machine? I'm really just looking for the best way to access and edit stored procedures on my hosted database?

I would REALLY appreciate a nudge in the right direction...?

Thanks.

Michael E. Smith

View 2 Replies View Related

Remote Hosted Database - SQLServer 2000

Jul 20, 2005

Hi allWe have a small database that we host on our own local server. In order toget the information into the database I have a VB program that collates theinformation from a variety of sources and then over our local internalnetwork writes it to the database tables.This information is then made available over the internet using thecompanies broadband connection. In order to alleviate bandwidth issues weare looking at paying for someone else to host the database.What I am hoping to achieve is to keep the VB software, but during the nightupload the data to the remotely hosted SQL server using say a series ofupdate statements. Does anyone know if this is possible, and will SQL Serverlook after the integratory of the data. Is there any issues with therelatively low speed of then Internet as compared with a local networkenvironment. The amount of data we are looking at moving is very little,some where in the region of a few hundred records per night split over about10 tables.many thanksAndy

View 1 Replies View Related

Best Practice For Upgrade Of Live Hosted Database?

Sep 11, 2007

I'm not sure this is the exact forum in which to ask this question, so if there is a more appropriate forum, please point me in that direction.

Basically I'm looking for advice and best practices for dealing with an upgrade plan for a hosted database. Here is the situation:
- Hosted software application (.Net)
- Uses SQL Server 2005
- When we upgrade the software application to a new version, there will be schema and data changes that need to be applied to the database
- For the software application, we have considered upgrading an offline machine and then switching old one instantaneously.
- For the database, I'm trying to figure out if we can keep everything live for upgrades, or if we should have a small amount of scheduled downtime to upgrade.

So we have identified 2 basic directions:
1) Keep the database live and apply the new script changes just after the application software is upgraded. This means zero downtime, but we'd have to design and test our application to be backward compatible, so that the new version of the application code could handle both the new schema design, and the old schema design. It seems that this option would add a huge amount of complexity because we would essentially be testing a 3rd app/schema combination.
2) Take a small amount of scheduled downtime and upgrade the application code and database all at once.

Obviously option #2 is the most desirable from a development process point of view, and #1 is the most desirable option from a business point of view (zero downtime).

So, I'm looking for some advice on this. Do most people take the whole system down? Are there 100% live systems that deal with this? Are there other approaches I'm not considering?

Any information would be greatly appreciated. Thanks.

View 4 Replies View Related

Code And Data Security In Hosted Servers

May 2, 2008

Dear guys

I want to publish my web site and sql server on a hosted server. But i'm worried about people behind the server. all of my codes including web and stored procedures of sql server are open. as far as I know, there is no effective way to protect web pages source. how about sql server? I mean compiling stored procedures.

and another important thing is data. I think certain people have potential to see or change all of my records, or for example give email address of my customers to a third party or ... .

Is there any way?

View 4 Replies View Related

Backups/Restores Of Remote Hosted SQL Server To Local?

Aug 21, 2005

Is there any way to backup a remote SQL Server that is on a hosted account to a local drive?  We have a web hosted account that has a SQL Server that we do not have full admin rights on, just dbo access to the data and structure.  We would like to be able to do backups and restores to our local development server if possible.  Perhaps vis DTS or some similar means?  WE cannot use the normal backup/restore as we do not have right to these fucntions nor can we access the servers local drives directly.

View 2 Replies View Related

SQL 2012 :: Updating DB Hosted Offsite With A DB That Is Running Locally?

Feb 17, 2014

how to update a SQL 2012 DB that is hosted off-site with a SQL DB that is running locally. This is a situation where the updates are one-way, local to remote.

View 5 Replies View Related

SQL 2012 :: Attaching MDF / LDF Hosted On Another Server / Mapped Drive

Mar 20, 2015

Although clearly not best practice for a produciton DB, is it supported to attach MDF/LDF files that are hosted on a network drive?

I have been exploring options to host a read only archive database that we need to access on a very short term adhoc basis.

View 2 Replies View Related

TSQL To Run DBCC Rebuild_repair On An MSDE 2000-hosted DB

Jul 20, 2005

Hi AllBit of confirmation needed really, as I've just come home and found that myPC is only running SQL 7.0, when I know the below code only works in SQL2000 (I think!!!).What I want to do is put a particular DB in single user mode, do a DBCCrepair_rebuild then put it back to how it was all from a text file that isexecuted via osql (MSDE's isql equivalent). Will the below do it?alter database AccountsDataset single_userwith rollback immediategodbcc checkdb('AccountsData',repair_rebuild)goalter database AccountsDataset multi_usergoDo I need anything else, like use Master or something bearing in mind thetext file/osql method that I have to use?ThanksLaphan

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved