Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 29th, 2006, 12:24 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML SIZE LIMIT

Hi,

In the book "SQL Server 2005 XML", it say one of the limitations of SQL XML is that the xml data type instance can not exceed 2GB. Does't it mean that one colum in a table can not exceed 2GB or one row that have xml column can not exceed 2GB (individual document).

Thanks,

Anourak

Reply With Quote
  #2 (permalink)  
Old August 29th, 2006, 04:32 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Wellington, FL , USA.
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi Tristany,

In BOL it states the following:

"The xml data type lets you store XML documents and fragments in a SQL Server database. An XML fragment is an XML instance that is missing a single top-level element. You can create columns and variables of the xml type and store XML instances in them. Note that the stored representation of xml data type instances cannot exceed 2 GB."

Hope this helps...

Scott

Reply With Quote
  #3 (permalink)  
Old August 30th, 2006, 12:48 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I'm still confuse, sorry... When you say "xml data type instances cannot exceed 2 GB", you mean one column XML can not exceed 2GB or one document in the XML column can not exceed 2GB...

Thanks,

Anourak

Reply With Quote
  #4 (permalink)  
Old August 30th, 2006, 02:36 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Wellington, FL , USA.
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi Anourak,

That means that the size of the xml document in the xml data type column cannot exceed 2GB.

Scott

Reply With Quote
  #5 (permalink)  
Old September 12th, 2006, 10:04 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the answer,

Right now I created a small web application(Questionnaire document) that store all the field in the xml data type. I just want to know if it is a good idea to store every field in xml format. Like that the client can add or delete any field they want. Right now the xml web application is working fine, but xml data type is so new that I'm questioning about the reliability.

thanks,

Anourak

Reply With Quote
  #6 (permalink)  
Old September 12th, 2006, 10:32 AM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Wellington, FL , USA.
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Well, I don't know if I would store EVERY field in xml format. From a reliability perspective, I would not hesitate to use it. Microsoft put a lot of thought and work into support XML. However, you have to ask yourself some questions. A relational model will work if your data is structured and has a known schema. XML works well if your data is not structured (meaning, you don't know the stucture of the data) or if the structure of the data is not consistent (changes often).

Look in the SQL Server 2005 Book Online under XML best practices. It does a very good job laying out the options available to you as to when to use a relational model and when to use XML data type.

Reply With Quote
  #7 (permalink)  
Old September 14th, 2006, 09:58 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The meaning that I store the entire field in XML format is because the client can create a fast web application. They don't need to create a table... It is very resemblance then the Lotus Notes application. In my understanding, Notes document is an XML. Of course, Notes have a size limit for one database. In SQL server, the XML documents can not exceed 2GB. I hope that XQUERY, is powerful enough to do a complex reports.

Thanks

Anourak

Reply With Quote
  #8 (permalink)  
Old September 14th, 2006, 02:01 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Wellington, FL , USA.
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

XQuery in SQL Server 2005 is very good. I have not used it against extremely large documents, so I would be interested in hearing how it performs on the type and size of documents you are talking about.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
User file size limit underscore10304 Windows Server 0 September 28th, 2006 07:57 AM
Limit the Size of String Input phungleon Classic ASP Databases 3 May 5th, 2005 12:31 AM
Compatibility DLL size limit? Yehuda Pro VB 6 10 June 10th, 2004 05:36 PM
how to limit the size of upload image? rockercheng Classic ASP Basics 1 August 8th, 2003 02:00 AM



All times are GMT -4. The time now is 10:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.