Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to generate create table script on an existing table in ms sql server?

1091


Explain datetimeoffset data type in sal server 2008?

850


what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration

968


What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

4295


What are functions in the sql server?

1126


Do you know what are the differences between lost updates and uncommitted dependencies?

1008


You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?

2092


If a stored procedure is taking a table data type, how it looks?

6351


How to modify existing triggers using "alter trigger"?

934


explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

862


Can we return Data from 4(more than 1) tables in stored procedure?

1005


Do you know spatial data types - geometry and geography in sql server 2008?

968


Why truncate is ddl command?

993


How to declare and use cursor variables?

1073


Tell me about joins in database system and explain each in detail.

1005