store procedure in sql
Example :
Create store procedure to fetch country details by passing to argument city and Country
CREATE PROCEDURE [dbo].[GetCustomerData]
@city nvarchar(max),
@country nvarchar(max)
AS
Select * from Customers
where
City like '%'+ @city +'%' or
Country like '%'+ @country +'%'
No comments