WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Insert a record To DB (Read 1562 times)
subscriber
YaBB Newbies
*
Offline



Posts: 1
Insert a record To DB
Dec 28th, 2010 at 11:11am
 
Hi,


i need insert a record to db after a copying a file. How can i do that?
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Insert a record To DB
Reply #1 - Dec 29th, 2010 at 9:25am
 
Hi,

WD does not have a task to insert records into any database.
The easiest way to do this is to use the "Run a bat file" task and do the copy inside that file followed by an insert into the database. Your database software needs to have a commandline sql program for that. An example script for SQL*Server can be found in this post:
http://www.watchdirectory.net/cgi-bin/yabb2/YaBB.pl?num=1255937411/1#1
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1