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.
| Author |
Topic |
|
samsun125
Yak Posting Veteran
63 Posts |
Posted - 2009-09-04 : 01:23:58
|
| Hi Friends,I have one query , from frontend i am sending labname,labdesc,labrate,remarks fieldsbut for to store these values i am using two tables.1.labtest colums are labid,labname, labdesc,remarks2.labtestrate columns are labrateid,labid,labratehow to store these values in two tables at a time using one stored procedure in sql serverThanksRama |
|
|
bklr
Master Smack Fu Yak Hacker
1693 Posts |
Posted - 2009-09-04 : 01:26:41
|
| create proc test(@labname varchar(32),@labdesc varchar(64),@labrate decimal(18,2),@remarks varchar(max))ASSET NOCOUNT ONBEGINdeclare @id intinsert into labtest select @labname,@labdesc,@remarksselect @id = scope_identity()insert into labtestrate select @id,@labrateENDSET NOCOUNT OFF |
 |
|
|
|
|
|
|
|