Link to home
Create AccountLog in
Avatar of Jorge Paulino
Jorge PaulinoFlag for Portugal

asked on

Advantages and disadvantages of storage procedures

I have worked allot with SQL Server and I always used direct commands like sqlcommand, sqldatareader, etc, and never with storage procedures.

My question is: what the advantages and disadvantages of using then?

We have to create the storage procedures and the SQL instruction in the code, so why?

Any good example of it would be nice (VB).

Thanks
SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Note that you can perfectly work and set up datareaders while using stored procedures.  Using stored procedures simply means you have a nice clean separation between the Data Layer and the Object Layer...
agreed with racimo
Avatar of Jorge Paulino

ASKER

Thanks guys.

I'm going in the right way!

jpaulino