
Let’s say after I had login I will be prompt to enter the Name and address how do I insert data with at least 2 table linking to each other using Store procedures?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try something like this:
As your homework you can write a third stored procedure which calls two above
and use result from first one in second one. Hint — use
EXECto assign value returned bystored procedure (here are details: http://msdn.microsoft.com/en-us/library/ms174998.aspx).
I didn’t test it, so it can fails due to misspelling.
Also I’ve never used columns with space inside so I am not sure how to handle them.
I assume that:
logintable) already exists and value oflogin.loginIDis accessible (user has already logged-in).One more thing — I would not use column names with space (or non-Latin characters).