Results 1 to 3 of 3

Thread: How to store Additional information in Database

  1. #1
    Join Date
    May 2008
    Posts
    2,389

    How to store Additional information in Database

    Hi,
    I want to store some additional information such as users IP Adress, Age, etc inside the database during registration. Can't guess which table to look out for to insert additional information. Will it be aspnet_Membership or aspnet_Users.

    Thanks

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to store Additional information in Database

    Hi,
    Why dont you create your own table alongwith the custom coloumns then use the USERID to correlate it to the correct USER via the USER table, either as a foriegn key or the way the Standard Asp.Net 2.0 membership provider does it with the other tables.

    Try learning from Standard Membership Schema (the aspnet db) in SQL Management Studio and study the schema as well as the providers and classes in the Standard ASP.NET 2.0 Membership flow doing this you will have a good grasp over how it all fits together. Then after you see how Microsoft fits it's tables together and relates them, there's no reason you can't follow the same pattern and add your own tables, but it's important that you know how the whole thing fits together as to not overwrite built in functionality or otherwise conflict with it.

    Microsoft uses the built in USER table and it's unique ID to relate that user with all the other tables that come with the built in membership you can create your own tables and persist the membership data you want as well using the same approach and relations with the unique USERID.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How to store Additional information in Database

    This is best handled by using the Profile Provider. Like the Membership Provider, there's some configuration work you need to do to get started, but it doesn't require much coding to make it work.

    The standard profile data are stored in a blob field in the database, so I prefer to use the Table Profile Providers. These providers let you store each data element in its own column, which I think is a little easier.

Similar Threads

  1. Additional Logon Information Required error on Windows XP
    By Darpad in forum Windows Vista Network
    Replies: 6
    Last Post: 07-10-2011, 08:56 PM
  2. Replies: 3
    Last Post: 26-08-2011, 10:40 PM
  3. Replies: 1
    Last Post: 10-08-2010, 03:41 PM
  4. Is it possible to store video files in a database??
    By Chandranath in forum Software Development
    Replies: 3
    Last Post: 27-11-2009, 05:03 AM
  5. How to store byte array to database with JDBC?
    By RogerFielden in forum Software Development
    Replies: 3
    Last Post: 23-09-2009, 10:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,077,709.00307 seconds with 17 queries