|
-
Jun 22nd, 2006, 10:20 PM
#1
Thread Starter
Addicted Member
[02/03] inserting data in database
i'm trying to create new user in my application. Data would be enter in sql server 2000.
personal info of that user would be in one table while login info would be in separate table.these are present on a single web form. Also in both tables; userId is present and these are related with each other through it, if one is entered other should be automatically inserted. now i'm confused how to insert this data?
-
Jun 24th, 2006, 11:41 AM
#2
Re: [02/03] inserting data in database
Create a stored procedure which will insert the data into both tables inside a single transaction.
Then, call the stored procedure from your code passing the parameters it needs in.
Read this tutorial for how to use ADO.NET
http://samples.gotdotnet.com/quickst...teCommand.aspx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|