Sql Server - How To Customize The Membership Database Tables

Jun 21, 2010

I want to add custom columns to some tables created by ASP.NET. For example; I need to add two fields such as FirstName and LastName to the aspnet_Membership table.

I can add this directly by editing the table but;

Is this the right thing to do (I mean; extending the table directly) OR should I create a separate table and hold the extra user data, there?How can I see these custom database fields as properties in code completion? example: membershipuser.FirstName;

View 4 Replies


Similar Messages:

How To Add Membership Tables To Existing Database

Oct 5, 2010

I was reading through this post here http://www.misfitgeek.com/op-ed/adding-asp-net-membership-to-your-own-database and thought to my self what the common practice is. What do developers using ASP.NET membership and authorization in their applications recommend as a best practice? creating the membership tables in the same database that stores their applications data or configuring a second database to store ONLY the membership information?.

My current setup is a different database for membership information ONLY but am thinking that increases the number of databases i have to maintain. If I have 5 applications using asp.net membership, then that means 5 more asp.net membership databases. So do you normally create the asp.net membership tables in your main database or you configure a separate membership table? what do you recommend.

View 1 Replies

Security :: Merging Membership Tables With Database?

Mar 7, 2010

I am using aspnet_regsql.exe to add membership tables to my database.

when I click the exe file it just opens up an XML file in visual web developer and does not start the wizard to merge the databases.

the run command where file is located is below

C:WINDOWSMicrosoft.NETFrameworkv2.0.50727

I just get the file below opening instead

[Code]...

View 1 Replies

Security :: Adding Membership Tables To Existing Database?

Feb 22, 2011

I am running windows 7 and NET Framework 4.

Problem is I dont know how to locate the asp.reg.sql tool that will do this using windows 7.

how to do this?

View 1 Replies

Security :: Adding Membership Tables To App_data Folder Database?

Oct 30, 2010

The following code is used to add the asp membership tables to an already existing database instead of creating a seperate database for membership and having two databases in the application.

aspnet_regsql.exe -S .SQLEXPRESS -U username -P password -d databsename -A all

It works fine by adding the membership tables to the existing database that is located in the c drive, program files sqlserver folder.

But my database however is not in the c drive but located in my asp website app_data folder, so the above code does not give any error and the tables are not added after I run it. how can I now add the membership tables using the above code when my database is located in the website app_data folder,

View 1 Replies

SQL Server :: ASPNET Membership Tables?

Oct 22, 2010

How can I sync up the aspnet membership tables among 2 different databases?

View 1 Replies

Use Existing Sql Server Tables Along With Role And Membership Provider?

Mar 30, 2011

I have an application in Asp.net and using sql server to store user information. There is a table named dbo.member which stores user information - fname, lastname, email, phone etc. We use LDAP for authentication. The entire application works on this member table. There is a unique userid(not password) associated with each member. I installed default aspnet_membership, aspnet_role tables by running aspnet_regsql.exe utility. Now with increasing number of applications, handling members' information is becoming nightmare. I hope Membership providers will solve this problem but I have doubts.

How can I integrate existing member table with default aspnet_membership table? Or should I integrate since it is very limited? Same is the case with aspnet_Profile - it is very limited and I have stored all profile information into member table. We store more information and we want to query all that information for a user. Should I create my own provider that will use dbo.Member table instead of dbo.Membership table and also with Profile provider?

View 1 Replies

Security :: How To Customize Membership Provider In .net 3.5

Sep 1, 2010

I have more problem in costomize membership provider, i did download the code in c# from videos tutorial, that code have Membership provider class. but i am unable to use that class. how i will use it.

View 7 Replies

C# - Profile Versus Customize A Membership Table

May 17, 2010

use a profile table to store information that's not present in membership table (like country, age, etc.), or customize a membership?

View 1 Replies

Security :: Customize Membership Roles To Create Separate Member Area?

Sep 21, 2010

I am using asp.net membership for all the users and roles, right now i have a website on which i have created 2 roles "admin" and "member" in this website i create accounts, so all the accounts are separated/distinguished by account name now i was to add one more role "accountholders" and i want to add this role in such a way that an account holder will be able to see his / her account's stuff ...

i as admin will be creating username and password for accountholders and i will provide them their login credentials so that they can login and see what's in their account. My idea of creating account is that, the accounts that i have in my database will be the key, so when i will create username for particular account , in the create user wizard i should have a drop downmenu will all the accounts name. so the user that i am
creating will be linked on that account only ..

View 4 Replies

Sql Server - Reference Membership Database In Another Database?

Jan 1, 2011

I am making a simple ASP.NET webpage for my school organization using VS2010. When I choose "New Website," I see that Visual Studio already sets up a database for managing memberships. I also have my own database (MyDatabase) that I need to use for the site, which contains information about the members of the organization (for example, email, phone-number, etc.)

I need to have a way to find out who the current logged-in user is, and allow them to edit ONLY their information (email, phone-number).The way I have considered doing it is:

- Add a field in MyDatabase called "UserName" and use it as a sort-of foreign key from the other database.

- Get the username of the logged-in user

- Use this username for my queries For example:

// (PseudoCode)
String loggedInUser = MembersDatbase.GetLoggedInUser();
var MemberInfo = SELECT * FROM MyDatabase.Users WHERE UserName=loggedInUser;

-Then the logged-in user will only have access to their information.

I'm not sure about the code yet, but I could probably figure that part out. I'm more interested in hearing if there is a better way of doing this. I do NOT want to merge the two databases into a single database.

View 3 Replies

Trying To View Tables On Another Server Database?

Feb 17, 2011

I'm really not a database person, so forgive me if this question. I'm using visual studio 2008 and i am trying to view tables on another server database. Example

I have my aspnetdb.mdf database, and my anaylsis.mdf database. What i am trying to do within visual studio is read table colunms that are inside aspnetdb.mdf from anaylsis.mdf.

View 4 Replies

SQL Server :: Cannot Delete Tables From Database?

Jul 23, 2010

IDE: MS Visual Studio 2008 / SQL Server 2005 Express / SQL Server Management Studio Express 2005
Skills: BeginnerI was trying to delete a table from my database ASPNETDB.MDF ,that DB was previously used for User login information i made it by using asp.net built in login support by opening ASP.NET configuration ,but now i want to built my own simple login control...so i want to remove all the tables made by ASP.NET configuration.I got this error when deleting one of the table"Could not drop object 'dbo.aspnet_Applications' because it is referenced by a FORIEGN KEY constraint"

View 7 Replies

SQL Server :: Select Column From All Tables In Database?

Sep 3, 2010

I want to retrieve the name and phone columns from all the tables in my database not in systables.

Ok this works but i dont want to get it from just the test table I want to get it from all the tables that I create

"USE mrpoteat SELECT name, phone FROM mrpoteat.dbo.test where name = name and phone = phone"

View 3 Replies

SQL Server :: Database With Less Number Of Tables And More Columns

Sep 28, 2010

What would you all suggest a database with less number of tables and more number of columns or more number of tables with less number of columns. I am developing a web application using Visual stuio 2005 and Sql Server 2005

View 2 Replies

SQL Server :: Alter Tables Structure In Database?

Dec 28, 2010

i have one database named as sampleDB its having more than 100 tables. this database running on production. here we have one requirement need to add companyid feild all the tables in our sampleDb. is it possible to write query to alter all the table.

View 3 Replies

SQL Server :: Copy Tables From 1DataBase To Another DataBase?

Oct 28, 2010

I have a Table in SQL Server DataBase with 200 + Rows

OriginDest(OID, DID)

I want to Copy all the row from OriginDest Table, DataBase1. To OrginDest, DataBase2 with Same Name

View 4 Replies

SQL Server :: Search Word In All Tables / Columns Of Database

Sep 15, 2010

I am developing the Home page of a Client. Apart from various things on this home page I have a text box and search button. Having said that, I have a database in which I have almost 12 tables with varying number of columns. Now my question is,Is there anyway to search a word typed by a user in the textbox to search it in all the tables(all columns) of the database.

View 2 Replies

SQL Server :: Use ASPNETDB.MDF To Add Own Tables Or Create A Separate Database?

Dec 6, 2010

I'm working on a new asp.net 4.0 resume web site. I'm starting off with SQL Server Express 2005 and using the standard security and login features given with ASPNETDB.mdf. My site will be hosted on GoDaddy.com.

Quesiton. Should the tables that will contain the information that users will be putting in like resumes, contact information and such go into ASPNETDB.mdf or should it go into a separate database.

View 2 Replies

ADO.NET :: Need To Query Atleast 35 Tables Using Linq To Sql(SQL Server Database?

Aug 27, 2010

I am a little new to this concept so bear with me.1) I need to query atleast 35 tables using linq to sql(SQL server database) . I am not able to add all the database entities in Linq to sql classes?

2)(View Model issue) When I use List<Reportcollection> and also List<Receipt> to convert the result then its giving an error that "Cannot convert list<anonymous> to list<string>"

View 6 Replies

SQL Server :: Database Tables / Have Lost A Bunch Of Memory?

Jan 19, 2011

I used to work in the IT field, but because of an accident and meds I have lost a bunch of my memory. So, I'm in need of relational database help..I've got a web site I want to put up that will sell books. I'll be using SQL server 2008. I'll be using Pay Pal's Cart, etc, so I just have to put up some buttons on the web site, but I need to track, display, etc, the books and properties about the books such as Authors, Paper back or hard cover, first edition, or something else, etc,..I have a table for books obviously, but I'm wondering if I should break out the Authors out of that table? I mean I don't see why except that if I end up with some books that have the same author then there names will be stored more than once, but I will be doing a lot more queries than inserts. I've got Customers, Book Types which is if the book is a hard cover, softcover, first edition, etc,. I will relate the Books to the Book Types of course, but again, should I have an authors table? Hope this makes sense.. I am using Visual Studio 2008 Pro, and want to do my relations there, so I thought I'd do so in the IDE if possible? I can't remember, but I thought it was possible?

View 6 Replies

SQL Server :: Query To Select Data From Multiple Tables And A Different Database?

Dec 1, 2010

Is there a way to select data from multiple tables other than the UNION ALL statement. Addtionally I need to select data from a different database.

My current statement is as follows (there are alot more fields but I have shortened it ):

SELECT server.dbo.SRFILE.SR_GROUP, server.dbo.SRFILE.SROWNERSHIP, server.dbo.SRFILE.SRCONMAE, BSFLBWF_1.Incidentx,
BSFLBWF_1.Severityx FROM server.dbo.SRFILE INNER JOIN
BSFLBWF AS BSFLBWF_1 ON BSFLBWF_1.Incidentx = server.dbo.SRFILE.SRONUMBER
WHERE (BSFLBWF_1.Closex IS NULL).........

View 4 Replies

Security :: Migrating Role / Membership Database To New Server?

Sep 21, 2010

I have an existing ASPNET role/membership database created on SQLExpress 2005 (WIndows 2003 Server). I created it under the .NET 3 framework many years ago using the aspnet_regsql.exe application in full GUI mode.

I am setting up a new Windows 2008R2 server with .Net Framework 4 and SQL Server 2008R2. I don't want users to have to recreate accounts or create roles, etc.

So...

1. Should I backup the current database and import it into the new system, and if so do I even need to use the aspnet_regsql.exe application. (If so which version do I use, different aspnet_regsql.exe files exist in different directories (i.e., FrameWork, FrameWork64)

2. Should I just run aspnet_regsql.exe on its own and then somehow try to import the current data into those tables.

I am concerned that if I just import somehow the roles within SQL server will not be created properly.

View 4 Replies

SQL Server :: Database Design / Create A Separate Table Which Will Contain The Translations For All 50 Tables?

Sep 28, 2010

I am working on a multi-lingual application Assume the following:

Database has 50 tables and application has to support 5 languages

Which is the best way to design the database:

1. Include a langugae column for each table. Repeat the values for each language. Say i have a country table which has 100 countries in it. Then my design will contain 500 rows (100 for each langugae)

2. Create a separate table which will contain the translations for all the 50 tables in with a foreign key to the parent table.

Which is more efficient out of the above two.

View 3 Replies

C# - 4 Custom Membership Provider Tables

Apr 3, 2011

Now this might just be straightforward, but I can't seem to figure it out..

I have set up the Custom Membership provider, and gave it the proper connection stuff.
What I know is that it connects to the correct database, but I know for sure that it doesn't look at the correct table.

How would I set it up to use a specific table? As the table already has users in them.

The table name is: members_info.

the column names are: member___id(key), member_name, member__pwd, member_perm

member___id => Being the Key and the account name to login with
member_name => Being the users Name or Nickname
member__pwd => 10 chars long (for now)
member_perm => holds 1 of the following values: 0) User 1)Admin 2)Banned


now I know that the later one is to be setup by the Role Provider, and I'm sure once I know how to do the membership one that one is similar in some way.

So my question is, how do I point the Custom Membership Provider to the table: members_info and to use member___id for username, members__pwd for password (and possibly get member_name out to say: Welcome {member_name}! when they login).

===

Added info.
Members__uid is the key value as it increases on each new entry.

===

Since you can't tell it to use a specific table

How can I set it up so, that it works with the tool provided in visual studio? (Website > ASP.net Configuration).

As it now says 0 users, on the security tab. I want to be able to manage the users through here too.

View 1 Replies







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