SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


function and procedures


function and procedures

Author
Message
rama_kavuri
rama_kavuri
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 4
in an interview i have said that the functions are executed at the clients memory and stored procedures are executed at he server side

as long back i have read these on the differences between function and procedures on a web site now when i browse it is not visible may be my search mistakes

can any body correct this give the links where i can find these (MS SQL Server)
twin.devil
twin.devil
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2389 Visits: 2675
rama_kavuri (6/25/2014)
in an interview i have said that the functions are executed at the clients memory and stored procedures are executed at he server side

as long back i have read these on the differences between function and procedures on a web site now when i browse it is not visible may be my search mistakes

can any body correct this give the links where i can find these (MS SQL Server)


Every call made to the sql server is executed on the server side. there is no client side involved. Both have different working in the world of sql server.

you can find hundreds of article u just need to google it.

one of them is this http://stackoverflow.com/questions/1179758/function-vs-stored-procedure-in-sql-server
rama_kavuri
rama_kavuri
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 4
As far as i know,both the functions and stored procedures are objects created on the database,so it is server side.
you can say any adhoc query or dynamic sql used within the application as cleint side.


Javeed Ahmed


this was answered like this ..............................?

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=194870
twin.devil
twin.devil
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2389 Visits: 2675
no that not correct the

SwePeso statement explains it better

EVERYTHING that is defined as T-SQL is executed at server side.
Microsoft SQL Serve works with sets and can return data from the server to the client during the batch (collection of statements).

if i put it this way, Everything is server side in sql server. :-)
Grant Fritchey
Grant Fritchey
SSC-Forever
SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)

Group: General Forum Members
Points: 40551 Visits: 32666
It does depend on what we're talking about when we say functions. If you're talking in-line table functions or multi-statement table valued functions that are created within SQL Server, then those are executed on SQL Server. If you're talking about functions within C#, F#, Java, or name your programming language, and we're not talking about Common Language Runtime (CLR) functions, then those functions are executed on the client. But we have to define the terms better to know which is right.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search