Skip to main content

Posts

Showing posts from February, 2014

Concepts in .Net to learn

Q1. Explain the differences between Server-side and Client-side code? Ans. Server side code will execute at server (where the website is hosted) end, & all the business logic will execute at server end where as client side code will execute at client side (usually written in javascript, vbscript, jscript) at browser end.

Concepts -IIII

Difference between stored procedure and function 1) Procedure can return zero or n values whereas function can return one value which is mandatory. 2) Procedures can have input, output parameters for it whereas functions can have only input parameters. 3) Procedure allows select as well as DML statement in it whereas function allows only select statement in it. 4) Functions can be called from procedure whereas procedures cannot be called from function. 5) Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function. 6) We can go for transaction management in procedure whereas we can't go in function. 7) Procedures cannot be utilized in a select statement whereas function can be embedded in a select statement.

Difference between String & string

"String" is an alias ( the same thing called with different names) of "string". So technically both the below code statements will give the same output.