Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Procedure Vs Query

Author  Topic 

sanjay5219
Posting Yak Master

240 Posts

Posted - 2010-10-04 : 12:15:38
Dear All,

I wanted to know that what is feasible

run three queries(one insert and two update) or create on procedure and write all these queries in that.

Thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-10-04 : 12:18:22
where will input values come from?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sanjay5219
Posting Yak Master

240 Posts

Posted - 2010-10-04 : 12:38:54
from ASP.Net Page
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-10-04 : 12:42:17
the procedure would be better

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sanjay5219
Posting Yak Master

240 Posts

Posted - 2010-10-04 : 12:47:00
Can u please exlain why ?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-10-04 : 12:51:57
see

http://www.sqlbook.com/SQL-Server/Why-use-Stored-Procedures-41.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -