May 12, 2008 at 6:16 am
Can we have multiple tables in the same cursor?
Also I want to know where we will use stored procedures and functions....I mean in what scenario they are used....Both of them can be used for similar purpose...
May 12, 2008 at 10:17 pm
Yes, a cursor can have a join to multiple tables in it... but using a cursor is usually a mistake.
Store procs don't have to return anything... functions do.
These are sweeping subjects... recommend you lookup stored procs and functions in Books Online and read about them a bit.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 3:17 am
http://msdn.microsoft.com/en-us/library/aa174792.aspx
http://databases.about.com/od/sqlserver/a/storedprocedure.htm
Just go through the above link,I hope you will get some idea.
karthik
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply