Click here to Skip to main content
15,914,014 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hiya,

I am using the ASP.NET Membership Database which it provides and I want to have a drop down box on a form to give all the members within a user group, for selection. I then want to take that information and store the User ID into another table. In short, I want to see their user name and store their user id. I am using SQL Server 2008.

Does anyone have any suggestions as to how I would do this?

Cheers
Posted
Comments
Sergey Alexandrovich Kryukov 9-Jan-12 19:12pm    
Not clear what's the problem. You have all the pieces...
--SA

1 solution

The tables for this are either in your database (cos that's how you set it up by using aspnet_regsql.exe) or in a database on your server (don't recall the name as I've only ever created it inside my own db).

To do anything like this you'll need to write your own stored procedure to extract the data from the requisite tables.

Best thing to do is find the tables, figure out which ones hold the data your want and then extract it - all the object names are pretty self-explanatory. You should also look through the stored procs it creates in case you can reuse any of them for your own purposes.
 
Share this answer
 
Comments
Scrappy 1871 9-Jan-12 20:21pm    
Wasn't aware of the stored procedures as this is the first time I've used the aspnet_regsql.exe system. Normally my pages are really simple to do a quick job. Cheers for the help!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900