I want to do something like this:
DECLARE @number INT = 2
DECLARE @TableResult AS TABLE
(
Row1 VARCHAR (150),
Row2 VARCHAR (1500),
Row3 VARCHAR (150),
Row4 NUMERIC(18, @number)
)
Because @number is going to change.
I tried it and and got an "incorrect syntax" error.
Is there any way I can do something like that?
Numericcouldn't be provided dynamically or via a variable.