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 |
|
AdamWest
Constraint Violating Yak Guru
360 Posts |
Posted - 2012-02-22 : 12:14:42
|
| this is failing Msg 102, Level 15, State 1, Procedure PBM_GET_INS_COVERAGE, Line 21Incorrect syntax near '@RESNDCS'.what is the problme?USE [PBM_olda]GO/****** Object: */SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE PROCEDURE [PBM_GET_INS_COVERAGE] @RESNDCS varchar(500) -- @DATEFROM datetime, -- @DATETHRU datetime, -- @PATNUMBER NUMERIC(9, 0), -- @MEDNAME VARCHAR(100) as begin SELECT * FROM ogen_fed_m_rxnorm rxnorm INNER JOIN ogen_fed_d_basic_formulary formulary ON (rxnorm.rxcui = formulary.rxcui) INNER JOIN ogen_fed_m_partd_plan fplan ON (fplan.formulary_id = formulary.formulary_id) WHERE rxnorm.gcn_seqno = @RESNDCS |
|
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2012-02-22 : 12:21:15
|
You need a matching END to go with the BEGIN as in:...WHERE rxnorm.gcn_seqno = @RESNDCS END |
 |
|
|
|
|
|