Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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 Search this Thread Display Modes
  #1 (permalink)  
Old October 20th, 2003, 03:31 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default How Can I Add Info From a Txt File Into a DB?

Hi there

Could anyone help me with the following problem:

A website I am working on has 2 different areas to it. One section is controlled by us (databases, webpages etc) and the other section is controlled by another company, the database of which we cannot access directly.

This company has agreed to write a generic script that will send out data in a text file, with each piece of info separated by a delimiter. We would then, somehow, need to put this data into a database so that this data could be accessed onscreen using recordsets etc.

e.g. If the text file was this:
Lucy|Robinson|Web Developer|Andy|Jones|Senior Developer|

Then we would want this information to be added automatically into a database that has already been created in SQL Server

            FirstName Surname Job Title
Record 1 Lucy Robinson Web Developer
Record 2 Andy Jones Senior Developer

Does anyone know whether this is possible, and if so, can anyone help me?

I really don't know where to start with this one!

Thanks in advance.

Lucy Robinson

Reply With Quote
  #2 (permalink)  
Old October 20th, 2003, 04:54 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is this SQL Server database on a server that is local to you? or is it up on a web server owned by a hosting company?

If you have access to the SQL Server and Web Server, create a dts package to import the data.
Where is this text file being saved at, at a place that you can access programatically?

Sal
Reply With Quote
  #3 (permalink)  
Old October 21st, 2003, 03:13 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, the SQL Server database that we'd want the text file imported into is on our server and we'd have access to it.

Could you explain a little bit more about the 'DTS package' you mentioned? We would want the importing of this text file to happen automatically, without someone actually going into SQL server and importing manually.

The text file would be saved in a folder (or in the root directory) of our website, which we have access to.

Cheers

Lucy
Reply With Quote
  #4 (permalink)  
Old October 21st, 2003, 11:00 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A DTS package can be schedule from a job in SQL Server and it can be configured to run on a daily, hourly, weekly basis. It can be saved on the server or it can be saved as a visual basic file.
If you have rights to create one in SQL Server, create one and have an administrator for the Database Server schedule a job to do this for you on a daily basis. The admin may even create the package for you.








Sal
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
ServerFileReportService Db Info at Runtime jason_l_riley BOOK: Professional Crystal Reports for VS.NET 0 January 15th, 2006 09:29 PM
How do I add up info for form validation? Lucy Javascript How-To 0 May 24th, 2005 04:44 AM
Output my txt from DB using JSP Befekadu Pro JSP 3 April 29th, 2005 06:48 AM
data from txt files to access db citizen99 Access VBA 3 January 25th, 2005 12:50 PM
info from pg won't post to db scottiegirl PHP Databases 3 September 26th, 2003 12:48 PM



All times are GMT -4. The time now is 02:33 PM.


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