cause of must declare parm1... from trying create a procedure?

G. Gunn - fs 146 Reputation points

When trying create a store proc from vst 2017 server explorer for a database under procedure. upon clicking the update arrow
I got the message


CREATE PROCEDURE [dbo].[_f_fi_sym_tooLong]  
    @fi_sym varchar(32),  
 @fi_class varchar(4),  
 @sMsg varchar(255) output   
 set @sMsg = 'must be 8 or less characters: Fi_Sym=' + @fi_sym+' fi_class='+@fi_class+', except for option symbol (when fi_class=O), max 20, or 11 max if ends with .TO'  
 RETURN -14  

I know the there is no problem with the code itself but why am I getting error on the default parms from the initial stub.

I also get similar problem with functions.
PS I'm migrating a sql anywhere database 10 to sql server, ultimately to sql server 2016 or 2019

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,737 questions
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
395 questions
{count} votes

Accepted answer
  1. Erland Sommarskog 77,581 Reputation points MVP

    I'm not good at SSDT, as I don't use it myself, but it seems that you press Update, which performs an build and update for the entire project, not only the stored procedure you are looking at.

    Try a Build or Validate option which will tell you where in the project you have this error.

    0 comments No comments

0 additional answers

Sort by: Most helpful