Store XML file in SQL SERVER

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
smelchi
Posts: 15
Joined: Fri 18 Jun 2010 16:37

Store XML file in SQL SERVER

Post by smelchi » Tue 27 Aug 2013 20:59

Hi
I have one (1) XML file for each order, with authentication and certificate information stored at XML ( size of 8 Kbyte ).

Which is the better way to load and store one XML Field in SQL SERVER using UNIDAC? I am using SQL EXPRESS R2 2008 and 2012.

I need to keep XML files for five years. I will need to retrive XML and save it to file.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Store XML file in SQL SERVER

Post by AlexP » Wed 28 Aug 2013 08:38

Hello,

In UniDAC, XML fields are mapped as TMemoFields, therefore, to load and unload XML files, you can use the following TBlobField class methods:

Code: Select all

LoadFromFile
SaveToFile

Post Reply