views:

12

answers:

1

Is there a way for a SQL 2005 stored procedure to open a XML file in the file system (for exampe C:\Temp\Test.xml ) and edit a value within that file? I am working with a SQL 2005 database (containing metadata) that stores XML data separately in files (instead of using built-in SQL XML features).

A: 

Please, take a look here: Reading an XML file from SQL Server

Rubens Farias
i like that answer. it doesn't say whether or not "writing the updated XML" back out to the file is possible or not. this seems like it will work but unfortunately it requires a whole bunch of extra work: http://www.sqldbatips.com/showarticle.asp?ID=23
djangofan
following its code, isnt directly possible; but you can also to write a managed stored procedure: http://www.devx.com/dotnet/Article/21286
Rubens Farias
i was afraid it was going to be that difficult. thanks, i'll use that method but its going to be a mountain to climb for me...
djangofan