Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 storeprocedure code

Author  Topic 

rajnidas
Yak Posting Veteran

97 Posts

Posted - 2013-10-25 : 08:59:25
hi every one,

i want to create store procedure code for usp_get_CHQ_Details for following parameter

1.client id
2.vendor id
3.cheque no
4.cheque amount
5.cheque date.

give some sample coding which can help me .

thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-10-25 : 09:02:03
without knowing datatype of parameters we can only provide you stub like below based on assumptions


CREATE PROC usp_get_CHQ_Details
@clientid int,
@vendorid int
@chequeno varchar(30),
@chequeamount money,
@chequedate datetime
AS
....
..
Your Code
GO



------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-10-25 : 09:02:20
Take a look at this page - tutorial and examples available there: http://www.mssqltips.com/sqlservertutorial/160/sql-server-stored-procedure/
Also, comprehensive documentation from Microsoft here : http://technet.microsoft.com/en-us/library/ms345415.aspx

Google and you will find a lot more examples and tutorials.
Go to Top of Page

rajnidas
Yak Posting Veteran

97 Posts

Posted - 2013-10-25 : 09:07:00
thanks james and visakh murukes
Go to Top of Page
   

- Advertisement -