StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



How do I use the XML DataTypeExpand / Collapse
Author
Message
Posted 01/28/2008 12:13:39 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: Yesterday @ 12:26:43 AM
Posts: 33, Visits: 327
I am wanting to utilize the SQL 2005 XML DataType as a field for a history table and I'm having trouble figuring out how to do this.  I haven't been able to find any VB examples that  show how to really use this data type.

What I want to do is have a History table with 4 fields.  HistoryID, TableID, RecordID, and History (XML).

I'm creating dynamic datasets with the the info I need to store for the history and I have not been able to figure out how to read or write to the XML field.  All I need is a link to some examples using VB.NET and if somebody can help, an example using a StrataFrame businessobject.

Any help with this is greatly appreciated.

Thanks!

Post #13771
Posted 01/28/2008 12:46:55 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 7:08:30 PM
Posts: 4,811, Visits: 4,781
Really you may be better off creating a VarBinary(MAX) field and serializing the DataSet (or XML data) into that field.  I believe that this will be less complicated and produce better results.  Anytime that we have the need to store XML contents, we will generally use a VarChar(MAX) and store teh XML text or use a VarBinary(MAX) and store the Byte() array of the file.  Either way will work, and the VarChar(MAX) may be easier than storing it as a VarBinary byte array.  But this the approach that I would take.
Post #13773
Posted 01/28/2008 12:49:53 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: Yesterday @ 12:26:43 AM
Posts: 33, Visits: 327
I'll look into trying that instead.

Thank you!

Post #13774
Posted 01/28/2008 1:12:06 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 7:08:30 PM
Posts: 4,811, Visits: 4,781
No problem
Post #13778
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 3:05am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.