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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best Solution?

Status
Not open for further replies.

mrathi

Technical User
Joined
Oct 27, 2003
Messages
115
Location
US
Hi, Thanks for all the responses.

I have a login page. Once the user logs in correctly, he is directed to a form which has several text boxes. The values in the textboxes come from about 4 different tables. Every table will have exactly one row of data for one user. The user can change the values in textbox and save it to the database.

What is the best way to get the data from four tables when the user successfully logs in? The database is in oracle. Should I use stored procedure, if so an example will be useful? Or should I just write four sql statements in my asp.net and make four connections to the database?

Please help.

Thanks
 
I would probably just use an SP...

declare 4 variables
set them
return them to the app...
 
Here are the three reasons why you should use stored procedure:
1. Performance
2. Security
3. Reliability

- The Ultimate Resource for IT Professional!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top