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

SQL Express User/ Role database to SQL Server

I've created a small web application that uses the new C# Login
controls and internet user management. The application works fine on
my development PC with all the user management taken care of in the
ASPNETDB.mdb. I've used the nice 'administer website' utility and all
my users, roles etc are all happily working.

I now try to publish this project to one of our office servers running
IIS. All seems well and the mdb file is copied with the publish. Now
from what I can tell here this is never going to work because I have
no SQL * on the target PC?

Ideally what I'd like here is to create the same database on another
PC that runs SQL server. I've actually got this working with the main
application function quite happily. I've even used the aspnet_regsql
tool and created a new User / application / roles database on the
target SQL server.

I think all I'm having trouble with is the connection string in the
web config file to change my deployed web application from the local
ASPNETDB.mdb to the server? Can anyone help?

This is the Connection string for the application DB:
"Data Source=TAP;Initial Catalog=AspireLicensing;Integrated
Security=True;Pooling=False"

This is what VS says is the connection string for the aspnet_regsql
created DB:
Data Source=TAP;Initial Catalog=AspireLicensingUserDB;Integrated
Security=True
Machine.config has:
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=.
\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|
aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /
>
</connectionStrings>
My web.config has the following:
<connectionStrings>
<add name="AspireLicensingConnectionString" connectionString="Data
Source=TAP;Initial Catalog=AspireLicensing;Integrated
Security=True;Pooling=False" providerName="System.Data.SqlClient" />
I really have tried a few posts that recommend changes to the
webconfig but can't crack it. Any help would be very much appreciated.

Steve

May 1 '07 #1
1 1985

Ok, long questions aren't easy to answer. Let me try a different
angle:

When I select 'Administer Website' within VS 2005 and the Web site
administration tool pops up....
In the Provider tab I only get the one provider option. Does anyone
know how to add my new provider - preferably the one I created on the
SQL server 'tap'?

(Has my concept of all this SQL Express gone FUBAR. It's just to get
the development up and running not for implementation surely.)

May 2 '07 #2

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

Similar topics

1
by: DC_DBA | last post by:
I want to 'grant sysdba to a user' for an application. (At least that is what I believe so far after having had this problem dumped on me 2 days ago.) The support we get from the application vendor...
3
by: Jon Ley | last post by:
I am having a problem restricting write access to tables in my database. In my database I have a table called, for the sake of argument, 'TableX'. In my SQL Server Logins, I have set up a login...
1
by: Tom Dauria | last post by:
I have a SQL database with an Access front end. In the database I have a read only and a read write role. When a read only user opens the database I want all the fields on the form to be locked...
0
by: John Salerno | last post by:
I know this is a C# group, but I'm getting a little desperate. It's been several weeks since I posted my question to the WD forums and no one has responded. All I want to know is how to get...
4
by: BravesCharm | last post by:
I am trying to connect to SQL Server 2005 Express with Visual C# 2005 Express using this code: static void Main(string args) { SqlConnection conn = new SqlConnection(@"Data...
0
by: Nate Hekman | last post by:
I'm trying to set up a Membership/Role Provider for an ASP.NET 2.0 beta 2 site using SqlMembershipProvider, and am having problems configuring SQL Server. I'm comfortable with ASP.NET but very...
4
by: Bruno | last post by:
Hello, VS.net installs sql express as datastore for role/membership management. I don't like this! I'm not able to choose other databases like ms-access, in the Web Site Administration Tool ....
1
by: kito | last post by:
Hi, I have a problem, when I want to access to my SQL Server Express database from my ASP.NET application. My workstation ID is KITOLAP-HP My username is user01 Now I built the following...
3
by: ianforgroupuse | last post by:
I'm running Vista Business edition on 2005 Virtual PC. Installed SQL Server 2005 Express latest download, with instance of MSSQLSERVER and service accounts running under "NT AUTHORITY\SYSTEM"....
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
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...
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
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
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,...

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.