Is it possible to use SQL XML to insert, and get output from each record?
Posted
by nbolton
on Stack Overflow
See other posts from Stack Overflow
or by nbolton
Published on 2010-03-31T08:36:28Z
Indexed on
2010/03/31
8:43 UTC
Read the original article
Hit count: 228
sql-server
|sqlxml
I would like to perform a SQL XML insert (on MSSQL), and in this case I need to insert a list of files into the DB (this is simple enough). However, there's an auto generated PK column (ID), and I need the ID for each newly created filename without performing a 2nd query. Is this possible? I guess it doesn't matter if the result is/isn't XML, but the input certainly has to be.
© Stack Overflow or respective owner