Click here to Skip to main content
15,913,773 members
Home / Discussions / Database
   

Database

 
AnswerRe: Alter column? Pin
Eric Dahlvang23-Jun-06 6:26
Eric Dahlvang23-Jun-06 6:26 
GeneralRe: Alter column? Pin
Kschuler23-Jun-06 8:57
Kschuler23-Jun-06 8:57 
Questionnot sure of advantages of functions over stored procedures Pin
sishya23-Jun-06 2:33
sishya23-Jun-06 2:33 
AnswerRe: not sure of advantages of functions over stored procedures Pin
J4amieC23-Jun-06 3:11
J4amieC23-Jun-06 3:11 
GeneralRe: not sure of advantages of functions over stored procedures Pin
Colin Angus Mackay23-Jun-06 3:42
Colin Angus Mackay23-Jun-06 3:42 
GeneralRe: not sure of advantages of functions over stored procedures Pin
J4amieC26-Jun-06 2:49
J4amieC26-Jun-06 2:49 
GeneralRe: not sure of advantages of functions over stored procedures Pin
Colin Angus Mackay26-Jun-06 8:25
Colin Angus Mackay26-Jun-06 8:25 
AnswerRe: not sure of advantages of functions over stored procedures Pin
Colin Angus Mackay23-Jun-06 3:48
Colin Angus Mackay23-Jun-06 3:48 
sishya wrote:
Can anyone tell me the advantages of functions over stored procedures and vice versa and i am not shoor if i can use system ftions like getdate() in functions
pls help me out


You cannot use functions such as GETDATE() because they are non-deterministic. A function must have a deterministic operation. i.e. Given the same inputs it will always produce the same output.

I wouldn't go around and convert stored procedures to functions just because.

I wouldn't say functions or stored procedures have any avantages over each other. They are designed for different uses.

A function can return data to calling code more easily that a stored procedure can. A stored procedure can perform data modification actions (INSERT/UPDATE/DELETE) that a function can't.


Scottish Developers events:
* .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy
* Developer Day Scotland: are you interested in speaking or attending?

My: Website | Blog
Questionchecking for existence of server and SQL instance Pin
Talal Sultan23-Jun-06 0:27
Talal Sultan23-Jun-06 0:27 
AnswerRe: checking for existence of server and SQL instance Pin
Colin Angus Mackay23-Jun-06 1:08
Colin Angus Mackay23-Jun-06 1:08 
GeneralRe: checking for existence of server and SQL instance Pin
Talal Sultan23-Jun-06 3:15
Talal Sultan23-Jun-06 3:15 
QuestionUsing Centralized Database MS SQL Server2000 Pin
Varun Arora22-Jun-06 23:20
Varun Arora22-Jun-06 23:20 
AnswerRe: Using Centralized Database MS SQL Server2000 Pin
Colin Angus Mackay23-Jun-06 1:04
Colin Angus Mackay23-Jun-06 1:04 
Questiondata from database Pin
rcshek22-Jun-06 15:12
rcshek22-Jun-06 15:12 
AnswerRe: data from database Pin
VK-Cadec23-Jun-06 8:25
VK-Cadec23-Jun-06 8:25 
Questionquery Pin
Tara1422-Jun-06 10:57
Tara1422-Jun-06 10:57 
AnswerRe: query Pin
Eric Dahlvang22-Jun-06 11:35
Eric Dahlvang22-Jun-06 11:35 
GeneralRe: query Pin
Tara1422-Jun-06 19:11
Tara1422-Jun-06 19:11 
QuestionStored procedure Pin
Nayota22-Jun-06 8:29
Nayota22-Jun-06 8:29 
AnswerRe: Stored procedure Pin
Dustin Metzgar22-Jun-06 9:23
Dustin Metzgar22-Jun-06 9:23 
GeneralRe: Stored procedure Pin
Nayota22-Jun-06 10:22
Nayota22-Jun-06 10:22 
GeneralRe: Stored procedure Pin
jonathan1522-Jun-06 23:08
jonathan1522-Jun-06 23:08 
QuestionDataset update Pin
kjosh22-Jun-06 6:10
kjosh22-Jun-06 6:10 
Questionimage Pin
md_refay22-Jun-06 4:26
md_refay22-Jun-06 4:26 
AnswerRe: image Pin
Colin Angus Mackay22-Jun-06 4:51
Colin Angus Mackay22-Jun-06 4:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.