Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

function and procedures Expand / Collapse
Author
Message
Posted Wednesday, June 25, 2014 12:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, June 25, 2014 2:30 AM
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)
Post #1585752
Posted Wednesday, June 25, 2014 12:32 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 3:33 AM
Points: 856, Visits: 1,506
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



Post #1585758
Posted Wednesday, June 25, 2014 12:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, June 25, 2014 2:30 AM
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
Post #1585762
Posted Wednesday, June 25, 2014 1:02 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 3:33 AM
Points: 856, Visits: 1,506
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.
Post #1585769
Posted Wednesday, June 25, 2014 4:01 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 8:22 AM
Points: 14,205, Visits: 28,534
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
Post #1585800
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse