-
For example, i have 2 insert statements that i need to execute and the second one needs to use the SCOPE_IDENTITY() created from the first insert. Can you do this using SqlBuilder? Something like this
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I don't know, did you try it? |
Beta Was this translation helpful? Give feedback.
-
Tried it but a parameter is created with that value rather than using that
|
Beta Was this translation helpful? Give feedback.
-
I don't follow, you are not using parameter values in your SqlBuilder, the resulting command should only contain text, what happens beyond that is out of the scope of this library. |
Beta Was this translation helpful? Give feedback.
-
Now I see the problem, don't use the |
Beta Was this translation helpful? Give feedback.
-
Thanks. Working perfectly
|
Beta Was this translation helpful? Give feedback.
Now I see the problem, don't use the
VALUES
method, everything you pass will be treated as parameter values. UseAppend
orAppendClause
.