I have code shown below and want to send it to MS SQL server via DBEXEC. How can this be done?
if exists (select * from table with (updlock,serializable) where key = @key)
update table set ...
where key = @key
insert into table (key, ...)
values (@key, ...)
Thanks in advance,
Technical support and scripting issues
1 post • Page 1 of 1