Can you give an example of Stored Procedure?

Answer Posted / ghous

user defines sp...
say i want to select some values based on parameter

create sp dbo.spname
'declare var

@parametername int
as
select * from table_name
where file_name=@parametername

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are the authentication modes in sql server?

490


What is ssl in sql server?

535


What are date and time data types in ms sql server?

512


What is ssrs?

95


What is change tracking in sql server?

535






Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?

599


Explain use of expression builder.

555


What is a rownum?

484


What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?

674


What is a periodical index?

497


What is wide table?

519


What is checkpoint process in the sql server?

536


What is a full text index?

483


What is the recursive stored procedure in sql server?

513


What is replace and stuff function in sql server?

553