INSERT INTO TestTable
(
Test1,
Test2,
Test3,
Test4,
Test5
)
VALUES
(
@Test1,
@Test2,
@Test3,
@Test4,
@Test5
)
SET @Id = SCOPE_IDENTITY()
im trying to get all the unset variables in my query this is my Regex which also gets @Id which my goal is not to include all variable that has been set on the query
this is my regex
Regex.Matches(sql, @"\@\w+").Cast<Match>().Select(m => m.Value).ToList();