The situation: I am using Allen-Bradley (Rockwell) software package known as FactoryTalk Transaction Manager, which allows PLC's to use the power of SQL Server to do things.
Using SQL Server 2012, I need to specify the direction of parameters within the stored procedure, which I incorrectly assumed was as simple as an
@QuarantineReason nvarchar(256) OUTPUT
However when viewed in the Object Explorer of SSMS the properties for the stored procedure parameter shows
@QuarantineReason (nvarchar(256), Input/Output, No default)
In order to simplify my life greatly, I would like the parameter to be an output only, as this saves me binding the input side of things in the Allen-Bradley software.
I found several MS documentation resources online but they all seem to specify C# as the codebase, which is bewildering to me.
SqlParameter.Direction Property
Input, Output and Input/Output SqlParameter Behavior Explained