473,327 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Some SQL question..

Im sorry to post and sql question in the asp.net forum but just wanted
to know

Whats the difference between sql Functions and Procedures?

This is one of the simple question which is common interview question.

Dec 13 '06 #1
4 919
You can use functions in expressions like

select formatName (first_name, last_name, middle_name, title) ...

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"jack" <ga**********@gmail.comwrote in message
news:11**********************@16g2000cwy.googlegro ups.com...
Im sorry to post and sql question in the asp.net forum but just wanted
to know

Whats the difference between sql Functions and Procedures?

This is one of the simple question which is common interview question.

Dec 13 '06 #2
"jack" <ga**********@gmail.comwrote in message
news:11**********************@16g2000cwy.googlegro ups.com...
Im sorry to post and sql question in the asp.net forum but just wanted
to know

Whats the difference between sql Functions and Procedures?

This is one of the simple question which is common interview question.
Google found this in about 5 seconds:
http://qa.techinterviews.com/q/20060804232021AA6mjm4
Dec 13 '06 #3
Thanks for replying. but now i got that function can return tables
stored procedues cant.

Dec 16 '06 #4
"jack" <ga**********@gmail.comwrote in message
news:11**********************@f1g2000cwa.googlegro ups.com...
Thanks for replying. but now i got that function can return tables
stored procedues cant.
That's true though, for the vast majority of the time, makes no
difference...

Chances are that if your UDF returns a table it does so because you are
interested in the contents of the table anyway, and an SP obviously can
return the contents of a table as a recordset simply by running SELECT *
FROM MyTable
Dec 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Stanley J Mroczek | last post by:
I Set the EditCommandColumn to Visible=False to stop people who are not allowed to make any changes to a record. How can set it to Visible=true for some users? Please answer in VB Thanks Stan
12
by: Vibhajha | last post by:
Hi friends, My sister is in great problem , she has this exam of C++ and she is stuck up with some questions, if friends like this group provides some help to her, she will be very grateful....
9
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
18
by: free2cric | last post by:
Hi, I attanded an interview on C++ Question asked were and my answers to them.. 1. In a CPP program what does memory leak occure? -- i said.. In a constructor , the pointer variables were...
7
by: kamkwokho | last post by:
Could any answer following questions as many as you can. ii) Write a C shell script convertmin which will read in a number, thought of as representing minutes, and print out the number of...
193
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I...
0
by: valmir cinquini | last post by:
i'm developing a faq session of our website and I'm facing some problems handling xml files and DataSet relations First off all, here's the structure of my xml file: <?xml version="1.0"?>...
24
by: Kevin | last post by:
Hey guys. I'm looking to get together some VB programmers on Yahoo messenger. I sit at a computer and program all day. I have about 3 or 4 people already, but it would be really cool to have a...
3
by: tamerania2004 | last post by:
help me to answer some q in c# plzzzzzzzzzzzzzz link :cry: :cry: :cry: :cry: http://www.sendspace.com/file/gd1o99 ---------------------------------- http://community.ihostasp.net
2
by: David | last post by:
Hi list. I have 2 questions about the Pythonicity of some algorithms. One question is about generator usage, the other is about producer and consumer threads GENERATOR QUESTION Usually for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.