Home > Ask the Microsoft .Net Development Experts > ASP.NET and Web Development Questions & Answers > Managing Words docs in SQL via ASP
Ask The Win Development Expert: Questions & Answers
EMAIL THIS

Managing Words docs in SQL via ASP

Daniel Cazzulino EXPERT RESPONSE FROM: Daniel Cazzulino

Pose a Question
Other Win Development Categories
Meet all Win Development Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 01 October 2004
How do I read a Word document into a SQL database, search it via fulltext, and then display it via ASP?

>
You have two options:
* Save the word document as a binary object in the database (this article may help: http://weblogs.asp.net/cazzu/archive/2003/08/27/25568.aspx)
* Save the document as XML. At this point, in SQL Server 2000 you can only store this as a large text field and have it indexed. SQL Server has no knowledge of tags and the like, so they will get indexed too. This is not cool. In SQL Server 2005 you'll be able to store the XML as a new native type, and it can be fully indexed/optimized taking into account the structure and particularities of XML.

For displaying it later, you just have to send the file to the user using the same technique explained in the referenced article. If you send the XML generated directly from Word 2003, you don't even need to set the content type, as IE will know that it's something that needs to be opened with Word.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
ASP.NET and Web Development
Top ASP.NET expert advice from Danny Cazzulino
Access VB .NET Windows control on client side
Drop down list server control creates error message
Take care with InitializeComponent
Calling via command prompt from ASP.NET
Screen capturing
How to retrieve the MAC address of a client using ASP.NET
How to sort a dropdown list in ASP.NET
Accessing session variables in different pages
Automatically closing a .exe

ASP.NET
Top ASP.NET expert advice from Danny Cazzulino
Access VB .NET Windows control on client side
Drop down list server control creates error message
How to retrieve the MAC address of a client using ASP.NET
How to sort a dropdown list in ASP.NET
Accessing session variables in different pages
Automatically closing a .exe
Accessing a control on an independent application
Checking input by character to verify validity
Referencing an old Crystal Reports version

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Windows Development - White Papers, News and Expert Advice
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts