SQL Server : creating stored procedure -
i need write stored procedure should take customerid
parameter , return name
atbv_contacts
, parameter of contactid
column same customerid
.
my problem guess i'm trying id, therefore won't show me customer's id. plus don't think procedure written correctly following errors:
msg 3609, level 16, state 2, procedure atsp_getnameid, line 7
transaction ended in trigger. batch has been aborted.msg 50000, level 18, state 1, procedure strg_database_changelog, line 90
invalid object name. please check typo.
my current code:
create procedure atsp_getnameid (@customerid int) begin select contactid atbv_contacts contactid '%' + @customerid + '%' end
replace this
create procedure atsp_getnameid (@customerid int) begin select contactid atbv_contacts contactid =@customerid end
Comments
Post a Comment