Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write modified date of imported file into the table?

Status
Not open for further replies.

Bdog05

Technical User
Apr 12, 2005
9
US
I am trying to setup a process whereby a text file is imported into a table daily. It would simplify my life greatly to be able to write either the filename, or the file's last modified date, into a seperate column in the table and associated with each row of data imported for the particular days file.

Anyone have any ideas how I can do this?

Thanks much for any help that can be provided.
 
You would have to use a script to compose and run a separate query to update the file-data field:
[tt]
UPDATE tblname
SET filedata='$filedata'
WHERE filedata IS NULL;
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top