Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Foreign Key in ASPNETDB + Read Only Database

Author  Topic 

revans611
Starting Member

1 Post

Posted - 2010-02-15 : 08:53:26
I am experimenting with customizing a createuserwizard control in ASP.NET. Within Visual Web Developer, I created a new user information table in the ASPNETDB database that contains a UserID field that is supposed to be a foreign key to the table that contains the user name and password. How can I create a relation between the two tables thereby linkning the records in the two tables for each user? Additionally, when I tried to ope the ASPNETDB database in the SQL manager, it was a read only database.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-15 : 09:00:20
you need to use join in your sql query between tables Userdetails and userinformation on UserID field to get relevant user details

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -