473,803 Members | 3,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

importing asp.net membership tables

JJ
How can I import my current asp.net membership records in my local sql
server to the empty tables on the live server?

I've tried removing contraints with:

ALTER TABLE aspnet_Applicat ions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Membersh ip NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Paths NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationAllUsers NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationPerUser NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Profile NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Roles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_SchemaVe rsions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Users NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_UsersInR oles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_WebEvent _Events NOCHECK CONSTRAINT ALL

Then importing and selecting 'Enable identity insert' on each table, but I
still get errors relating to conflicting Keys.

I assume either I need to temporarily remove some other constraints or
import in a certain order (if so which order?)

Thanks in advance,

JJ
May 30 '07 #1
4 3348
KJ
Try using the Database Publishing Wizard:

http://www.microsoft.com/downloads/d...displaylang=en

It *should* generate the T-SQL script you need.

"JJ" <ab*@xyz.comwro te in message
news:uh******** ********@TK2MSF TNGP03.phx.gbl. ..
How can I import my current asp.net membership records in my local sql
server to the empty tables on the live server?

I've tried removing contraints with:

ALTER TABLE aspnet_Applicat ions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Membersh ip NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Paths NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationAllUsers NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationPerUser NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Profile NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Roles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_SchemaVe rsions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Users NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_UsersInR oles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_WebEvent _Events NOCHECK CONSTRAINT ALL

Then importing and selecting 'Enable identity insert' on each table, but I
still get errors relating to conflicting Keys.

I assume either I need to temporarily remove some other constraints or
import in a certain order (if so which order?)

Thanks in advance,

JJ

May 30 '07 #2
JJ
thanks - I'm trying that. I keep getting this error when trying run the
publish script on my shared hosts' sql server:

I've have set my database to use SQL_Latin1_Gene ral_CP1_CI_AS as instructed
by my hoster, but why then am I getting these errors???
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 45
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 52
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 76
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 83
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 90
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersInR oles_RemoveUser sFromRoles, Line 50
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersInR oles_RemoveUser sFromRoles, Line 58
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersInR oles_RemoveUser sFromRoles, Line 84
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersInR oles_RemoveUser sFromRoles, Line 92
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 15151, Level 16, State 1, Line 1
Cannot find the object 'aspnet_UsersIn Roles_AddUsersT oRoles', because it
does not exist or you do not have permission.
Msg 15151, Level 16, State 1, Line 1
Cannot find the object 'aspnet_UsersIn Roles_RemoveUse rsFromRoles', because
it does not exist or you do not have permission

"KJ" <n_**********@M ail.comwrote in message
news:OZ******** *****@TK2MSFTNG P06.phx.gbl...
Try using the Database Publishing Wizard:

http://www.microsoft.com/downloads/d...displaylang=en

It *should* generate the T-SQL script you need.

"JJ" <ab*@xyz.comwro te in message
news:uh******** ********@TK2MSF TNGP03.phx.gbl. ..
>How can I import my current asp.net membership records in my local sql
server to the empty tables on the live server?

I've tried removing contraints with:

ALTER TABLE aspnet_Applicat ions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Membersh ip NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Paths NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationAllUsers NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationPerUser NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Profile NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Roles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_SchemaVe rsions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Users NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_UsersInR oles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_WebEvent _Events NOCHECK CONSTRAINT ALL

Then importing and selecting 'Enable identity insert' on each table, but
I still get errors relating to conflicting Keys.

I assume either I need to temporarily remove some other constraints or
import in a certain order (if so which order?)

Thanks in advance,

JJ


May 30 '07 #3
KJ
Check this out:

http://community.sgdotnet.org/blogs/.../17/49593.aspx

"JJ" <ab*@xyz.comwro te in message
news:uI******** ******@TK2MSFTN GP03.phx.gbl...
thanks - I'm trying that. I keep getting this error when trying run the
publish script on my shared hosts' sql server:

I've have set my database to use SQL_Latin1_Gene ral_CP1_CI_AS as
instructed by my hoster, but why then am I getting these errors???
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 45
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 52
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 76
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 83
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure aspnet_UsersInR oles_AddUsersTo Roles,
Line 90
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersInR oles_RemoveUser sFromRoles, Line 50
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersInR oles_RemoveUser sFromRoles, Line 58
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersInR oles_RemoveUser sFromRoles, Line 84
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersInR oles_RemoveUser sFromRoles, Line 92
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Gen eral_CP1_CI_AS" in the equal to operation.
Msg 15151, Level 16, State 1, Line 1
Cannot find the object 'aspnet_UsersIn Roles_AddUsersT oRoles', because it
does not exist or you do not have permission.
Msg 15151, Level 16, State 1, Line 1
Cannot find the object 'aspnet_UsersIn Roles_RemoveUse rsFromRoles', because
it does not exist or you do not have permission

"KJ" <n_**********@M ail.comwrote in message
news:OZ******** *****@TK2MSFTNG P06.phx.gbl...
>Try using the Database Publishing Wizard:

http://www.microsoft.com/downloads/d...displaylang=en

It *should* generate the T-SQL script you need.

"JJ" <ab*@xyz.comwro te in message
news:uh******* *********@TK2MS FTNGP03.phx.gbl ...
>>How can I import my current asp.net membership records in my local sql
server to the empty tables on the live server?

I've tried removing contraints with:

ALTER TABLE aspnet_Applicat ions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Membersh ip NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Paths NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationAllUsers NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationPerUser NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Profile NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Roles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_SchemaVe rsions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Users NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_UsersInR oles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_WebEvent _Events NOCHECK CONSTRAINT ALL

Then importing and selecting 'Enable identity insert' on each table, but
I still get errors relating to conflicting Keys.

I assume either I need to temporarily remove some other constraints or
import in a certain order (if so which order?)

Thanks in advance,

JJ



May 30 '07 #4
JJ
Thanks. I'd got around the problem somehow, but that page explains exactly
what was happening and how I _should_ have solved it.

JJ

"KJ" <n_**********@M ail.comwrote in message
news:ui******** ******@TK2MSFTN GP04.phx.gbl...
Check this out:

http://community.sgdotnet.org/blogs/.../17/49593.aspx

"JJ" <ab*@xyz.comwro te in message
news:uI******** ******@TK2MSFTN GP03.phx.gbl...
>thanks - I'm trying that. I keep getting this error when trying run the
publish script on my shared hosts' sql server:

I've have set my database to use SQL_Latin1_Gene ral_CP1_CI_AS as
instructed by my hoster, but why then am I getting these errors???
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_AddUsersT oRoles, Line 45
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_AddUsersT oRoles, Line 52
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_AddUsersT oRoles, Line 76
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_AddUsersT oRoles, Line 83
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_AddUsersT oRoles, Line 90
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_RemoveUse rsFromRoles, Line 50
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_RemoveUse rsFromRoles, Line 58
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_RemoveUse rsFromRoles, Line 84
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 468, Level 16, State 9, Procedure
aspnet_UsersIn Roles_RemoveUse rsFromRoles, Line 92
Cannot resolve the collation conflict between "Latin1_General _CI_AS" and
"SQL_Latin1_Ge neral_CP1_CI_AS " in the equal to operation.
Msg 15151, Level 16, State 1, Line 1
Cannot find the object 'aspnet_UsersIn Roles_AddUsersT oRoles', because it
does not exist or you do not have permission.
Msg 15151, Level 16, State 1, Line 1
Cannot find the object 'aspnet_UsersIn Roles_RemoveUse rsFromRoles',
because it does not exist or you do not have permission

"KJ" <n_**********@M ail.comwrote in message
news:OZ******* ******@TK2MSFTN GP06.phx.gbl...
>>Try using the Database Publishing Wizard:

http://www.microsoft.com/downloads/d...displaylang=en

It *should* generate the T-SQL script you need.

"JJ" <ab*@xyz.comwro te in message
news:uh****** **********@TK2M SFTNGP03.phx.gb l...
How can I import my current asp.net membership records in my local sql
server to the empty tables on the live server?

I've tried removing contraints with:

ALTER TABLE aspnet_Applicat ions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Membersh ip NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Paths NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationAllUsers NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Personal izationPerUser NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Profile NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Roles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_SchemaVe rsions NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_Users NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_UsersInR oles NOCHECK CONSTRAINT ALL
ALTER TABLE aspnet_WebEvent _Events NOCHECK CONSTRAINT ALL

Then importing and selecting 'Enable identity insert' on each table,
but I still get errors relating to conflicting Keys.

I assume either I need to temporarily remove some other constraints or
import in a certain order (if so which order?)

Thanks in advance,

JJ



May 30 '07 #5

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

Similar topics

2
2516
by: dawg1998 | last post by:
I am setting up a new web application with ASP.NET 2.0 and I was wanting to utilize the 2.0 Membership and Profiles system. However, I am having a lot of trouble importing a table of user info into the aspnet_Users table due to the unique identifiers and large number of dependencies this new system has. Is there any way to easily import exisiting user data into the 2.0 Membership system without having to do data entry for 200+ users? ...
5
1667
by: JP.Gantlin | last post by:
I want to have a login page where the new user self-registers, giving some simple info like Real Estate Agent #. Do I need to used the membershiop/roles thing, or profiles? Are profiles part of the membership thing, or how are they tied together? Thanks
12
6228
by: JMO | last post by:
I can import a csv file with no problem. I can also add columns to the datagrid upon import. I want to be able to start importing at the 3rd row. This will pick up the headers necessary for the datagrid. Once I can get to that point I need some way to be able to add new data only to the new columns that were added. Here is some of my code: //Function For Importing Data From CSV File public DataSet ConnectCSV(string filetable)
5
2911
by: Mahernoz | last post by:
Hi Everyone! I have a problem here. I have used the latest asp.net membership & profiles functionality in my site. I have 2 roles admin and user. I also have a user named admin. Now, my website is running perfectly, but i want to deploy it.
3
1345
by: bbawa1 | last post by:
Hi, I am working on Membership and roles in Asp.net 2.0. I am using logincontrols in asp.net 2.0. When I use these login controls it automatically creates ASPNETDB.mdf database. which has it's own tables for membership. But I can't move this database to live server. Over live server I have only one database TWSAN I just want to copy tables from this database to TWSAN. Is this possible. Thanks,
3
2021
by: Michael Lang | last post by:
Hi there, I have a web application that works fine on my local dev machine. However I'm having less success on my hosting environment. When I detach the database for this site, copy it to my hosting environment and attach it through their interface, I can connect to the database in my hosting environment through the SQL Management studio, see all stored procs, functions, tables, and the data in the tables I had entered on my local dev...
6
2936
by: Jonathan Wood | last post by:
Although this will be a challenge at my level of ASP.NET knowledge, I'm thinking I should implement my own membership provider class. Looking over the methods I must implement, a number of questions come to mind. 1. How would one implement GetNumberOfUsersOnline? I'm not sure where there is any indication of this? And it this affected by the "Remember me next time" checkbox, which doesn't seem to work like it does on any other site...
1
1245
by: Jeff | last post by:
Hey ASP.NET 2.0 At work my boss have given me the task of developing a new website. Users will be able to register at the website and gain exclusive access to some information etc... Some users will have limited access to the information and some users (Administrators) will have total access. There will be 3 levels of users: Normal User, Power User and Administrator.
2
212
by: shapper | last post by:
Hello, Where can I find the tool, and the scripts to if possible, to deploy ASP.NET membership on my SQL database? And can I change the tables names? For example, instead of using aspnet_Users just use Users? Thanks, Miguel
0
9564
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10548
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9125
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.