sql - Pass in table value parameter or the individual parameters into a stored procedure? -
sql - Pass in table value parameter or the individual parameters into a stored procedure? -
is there general performance difference in sql server 2012 passing in table valued parameter versus passing in fixed set of individual scalar-valued parameters stored procedure?
also, passing in same individual set of scalar-valued parameters cut down recompilation of stored procedure versus passing in table parameter might have different number of row values within?
i working on trying cut down recompilation of of lengthiest stored procedures (3000+ lines unfortunately cannot share) , notice many of them have tabled value parameter beingness passed other potential "issues" can improved upon including including creation of multiple temp tables, indexes beingness created temp tables within stored procedure, missing indexes on main tables, , conditional logic may or may not run part of stored procedure.
thank time.
edit: clarified fixed set of scalar-valued based on comments.
sql sql-server sql-server-2012 query-performance recompile
Comments
Post a Comment