Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 25th, 2005, 03:26 PM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is This Possible?

Hi Everyone,

I was wondering is it possible to have a script that when a visitor fills out an online form and submits it, the information is saved in a database as several file types, such as csv, xml, and etc?

If the above script is possible... when visitors submit the form, can the script also update the current files by adding the information from the form to the current files? No matter how many people fill out the form, I only want one file for each file type.

Please let me know if this is possible so I can go hire a programmer.

Regards,
Brandon

 
Old December 27th, 2005, 05:35 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, you can, although it's an awkward design decision. IMO, you don't store information "in a database as several file types". You store information in the database it its own format. Then when you need to have a CSV version of the data, you export it to that format.

The CSV or XML or any other file version of your data is just another representation of the same data. Let the database store it in its own format, and then specify how you want it (in what format) when you actually need the data.

Imar---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old December 28th, 2005, 11:33 AM
Authorized User
 
Join Date: Sep 2005
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Store it in one format only and use XSL(T) to transform it to whatever you want

“I sense many useless updates in you... Useless updates lead to fragmentation... Fragmentation leads to downtime...Downtime leads to suffering..Fragmentation is the path to the darkside.. DBCC INDEXDEFRAG and DBCC DBREINDEX are the force...May the force be with you" -- http://sqlservercode.blogspot.com/









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.