Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to store data about my customers? How to link & update 2 tables?

Status
Not open for further replies.

may1hem

Programmer
Jul 28, 2002
262
GB
I am asking my customers to create a new account for themselves, and this works fine using the ASP.net CreateNewUser wizard control. But now I want to store various extra information about my customers, such as details of which products they buy. How can I do this?

I'm familiar with how to do this in Microsoft Access, but now my Web space uses SQL Server 2000 and I'm using Visual Studio 2005 and I want to learn how to use these new tools.

Taking the simple scenario, one of my customers logs into my site, then I want them to choose a product or service that they're interested in. From my Access experience, I know that I need to store a list of my products & services in a separate table and use a third linking table with extra information about each individual purchase such as quantity and date of puchase etc.

I can create the tables easily in SQL Server but I don't know how to create the form and then how to store the data back into the tables, including the currently logged-on user's ID.

How can I do this?

Thanks,
May

 
Sorry to answer your linking and updating question, the idea is of creating the tables in SQL is like creating them in access "If you can say that".
You need unique keys to establish a relationship between the tables in sql just like you do in access.
there are a lot of documentations of this subject, just google it and I am sure you will find all you need.


Good luck
 
Thanks for your advice, I'm working through this now.

May
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top