VBScript linking to SQL Database for file transfer information.
I have been all over google and can't find anything that can use VBScript to look at an SQL database and based on what it contains, transfer files, I am not great with VBScript,
still learning and at a BASIC LEVEL. I can picture what I need but have no idea how to compose.
The SQL database has 6 columns and I am trying to achieve the following.
Database & Table : [FILE_TRANSFER].[dbo].[MAIN_FILE_TRANSFER_OUTPUT]
Columns : [DESTURL1 ], [DESTURL2], [DESTURL3], [FullSource], [FullDestination], [DeleteFileAfterTransfer]
Criteria required
Does file exist within [FullSource]
If yes Next if no, look to next [Fullsource]
Does DESTURL1 exist No (Create) if yes Next
Does DESTURL2 exist No (Create) if yes Next
Does DESTURL3 exist No (Create) if yes Next
Copy [Fullsource] to [FullDestination]
(example : [Fullsource] c:\myfile.xls to [FullDestination] c:\thisismyfile.xls (Name change within [FullDestination])
If [DeleteFileAfterTransfer] = Yes, delete transferred file [FullSource]
TO extract SQL data to a file we would use BCP which is the main data extraction utility for SQLServer.
Post you questions in the SQLServer forum and they will help you.
There is no reason to use VBScript for this. It is the wrong tool.
¯\_(ツ)_/¯
Similar Messages
-
Need PL/SQL procedure for file transfer local system to server location
Hi Experts,
The requirement is one file ex: text file,excel file is there in Local system suppose c:newfolder/test.txt.
once run the concurrent program for this particular file in the local system should transfer into server location for the mentioned path.
is it possible to do in PL/SQL or shell script.
can you please share the code.
Thanks
MeherMeher Irk wrote:
The requirement is one file ex: text file,excel file is there in Local system suppose c:newfolder/test.txt.
once run the concurrent program for this particular file in the local system should transfer into server location for the mentioned path.Why do you want to copy a local file from the local client file system, via the Oracle database server, to a remote directory on the server?
Why is the Oracle database server to be used? For what purpose?
There are standard secure methods for a client to copy a file to a server. Such as sftp and scp. No complex Oracle database server layer needed in-between.
So why do you want to use the Oracle database to act as the copy mechanism for you?
It will only make sense if the local file is copied into the database (as a LOB or securefile) and managed by the database. I fail to see why Oracle should be acting as the go-between for the client file system copy process to the server file system. This introduces another moving part in the copy process. Adds more security issues. Adds more authentication issues. And what for? -
Which protocol we should use for file transfer in ios ?
which protocol we should use for file transfer in ios ?
My friend that's definitively a Lotus Domino question, you'll probably ask in the Domino's forums if it generates wsdl, or simple http services you're ready to consume those services in Flex.
-
Steps for File Transfer through FTPS...!!!
Hi ,
Can anyone please tell the steps for file transfer with FTPS.
Does PI file adapter has bulilt in feauture to handle this? or
Do we need to deploy anything to handle this?
Do we need to install any certificates by requesting from partner or It will do the encryptions/authentications on its own?
Any additional Steps we need to mention in File receiver adapter while we send the file through FTPS?
File is going through port 1090(unsecure connection) but it is not going through port (990) which is a secure connection.
Please suggest me.
Thanks
KrupakarHi Shabarish,
We got the certificate from the partner and loaded into the trusted CA's. I tried running by giving
Connectivity Security as "FTPS for Control and Data Connection" and Command Order as "AUTH TLS,USER,PASS,PBSZ,PROT"
Ip: XXX.YY.YY.ZZZ
Port: 990
User and pwd.
and I am getting the same below error
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier
I tried by selecting different options like
1. Without selecting the X509 certificate for client authentication.
2. Keystore as TRUSTED\view\entry-cert
X509 certificate and private key as TRUSTED\view\entry-cert
3. Keystore as TRUSTED\view
X509 certificate and private key as TRUSTED\entry-cert
4.Keystore as "view"
X509 certificate and private key as "entry-cert"
Please help me in this.
Thanks
Krupakar -
Urgent: Error: Client routine fdpvwr failed to prepare for file transfer
Hi Recently i have upgraded developer 6i by applying patches.
After when i am trying to submit active users and active responsibilities.
Those also getting completed
But when i am trying to click button view output or view log
I am getting error as "Client routine fdpvwr failed to prepare for file transfer"
Can anybody tell me what is the issue. Waiting for your reply
GaneshI am getting error as "Client routine fdpvwr failed to prepare for file transfer"
The error is reported in one note only, and it seems it is not applied to your current setup. I would suggest you log a SR to confirm if you need to apply patch 4653217 or not.
Note: 466743.1 - After Upgrade Of Db To 10.2.0.2, Receive Error When Viewing Conc Req Log/Output
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=466743.1 -
Database Log file Shrink information
Hello Team,
Database log file shrink information: Due to space problem
One of my database having 600 gb,under 600 gb log file having 260 gb, in this database we take full backup daily no log backup. If we shrink the log file any impact is happen?
We shrink the log file internally what will happen?
One of my database having 600 gb,log file having 260 gb, in this database we take full backup daily and every 15 min take log backup.
This is scenario we shrink the log file what will happen.Hello,
You should not try to shrink the log file regularly, because is resource intensive, it takes a lot of time and it creates fragmentation on the disk storage.
If you don’t backup the log files of the databases (option 1) you don’t have the ability to restore to a point in time between backups full and differential. If
you don’t want to backup files then it makes sense to change the recovery model to simple.
Backing up the logs regularly minimize the risk of the logs getting filled and extending their size.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Hello all,
As a new PHP/SQL developer I have found great technical assistance from both this forum and from David Powers and his wonderful books. I am at a crucial point in my web development and although I believe I know which direction I need to go, I am still uncertain and so I appeal to you all for your help, especially David Powers.
The website I am building is one which will house many photo galleries. I was able to successfully modify the code provided in David Powers’ book ‘php Solutions’ so that I got the photo galleries constructed and working in the manner I desired.
That being said, a person browsing my website will be presented with a link to see the photo galleries. There will be five (5) categories in which the photos will be separated, all based on specific styles. Now that I have the galleries working, I need to know how to structure things so that I can create a page, like a TOC (table o’ contents) that shows all photo galleries by displaying a thumbnail image or two along with the description. Perhaps I’ll limit the TOC page to only show the latest 25 galleries, arranged with the most current always on top.
The way I have my galleries set up, I have a separate database for each one, containing the photo filenames and other relevant data. To build my TOC structure, should I have an overall database that contains each gallery database filename along with category? This is where I have no idea what I’m doing so if my question sounds vague, please understand I have no other idea how to ask.
The site will grow to the point of having hundreds, if not thousands of photo galleries. I simply want to know how to (organize them) or otherwise allow me to build a method to display them in a TOC page or pages.
I know this is a bit dodgy, but with some info and questions back from you, I feel confident that I should be able to get my point across.
Lastly, I am still developing this site locally, so I have no links to provide (though I feel that shouldn’t be necessary right now).
Many sincere thanks to you all in advance,
wordmanbregent,
I'm chewing this over in my head, reading up on DB's in 'phpSolutions' and I think that things are slowly materializing.
Here is the structure of the website that I have planned:
MAIN PAGE
User is presented with a link on the main page to select photo galleries (other links are also present). Clicking the link takes them to the Category Page.
CATEGORY PAGE
On this page, the User will then have 5 choices based on categories (photo style). CLicking any of these 5 links will take them to respective TOC pages.
TOC PAGE
On this page, the user is greeted with a vertical list of galleries or photosets; one to three thumbs on the left, a small block of descriptive text on the right (ideally containing date/time info to show how recent the gallery is). Newest galleries appear at the top. Eventually, when there are tens or hundreds of galleries in any given catrgory, I'll need to adopt a method for breaking up the qualntity in groups (we can pick 20 for example) that can be scrolled through using a small navbar. This will keep the TOC Pages from getting endlessly long and avoid endless scrolling. User selects a gallery on this page to view.
THUMBNAIL PAGE
On choosing a gallery, a thumbnail page is generated (I have this working already)
IMAGE PAGE
On selecting any thumbnail in the grid, the user is taken to the full-sized photo with a navbar and photo counter at the top. Navlinks allow forward and back, a link to the first image, a link to the last image and one link back to the thumbnail page. (I have this working already).
I provide this info in an effort to help understand the basic structure of my site. The description above is as close to a step-by-step illustration as possible.
Thank you!
Sincerely,
wordman -
Access Report Link to SQL database
Hi,
I have been designing a report interface in Access that is supposed to retrieve data from an SQL Database. The problem is that i don't know how to connect the two so that it (report) retrieves data from the database. How do I connect the two?
martinHi breakage,
Based on my understanding, you want to connect to a SQL Server database on Access side, then retrieve the data from the database.
When connecting to a SQL Server database, Access creates a new table (linked table), and it's structure and contents are corresponding to the source object. In your scenario, you can open the Access database in which you want to create the linked tables,
then choose External Data tab. With the wizard, you can link the expected SQL Server database. For more information, please refer to the
Link to SQL Server data section of this article:
Import or link Access to SQL Server data .
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Slow Transfer Speeds For File Transfer Manager 5.0 Build 0032
I have a 20Mbit internet connection. When I download from the Microsoft download site I can get files downloading at reported speeds of up to 1.7 Mbytes per second.
When downloading from the TechNet Benefits section I have to use the Transfer Manager and I can only get speeds that vary between 30-80 Kbytes per second. Rarely any faster.
I am using XPPro & IE7 straight out onto the Internet via my router / firewall. No proxy server.
What can I do to speed the process up or bypass the File Download Manager?
Regards.Thanks for your feedback Tekky. FYI there is also a forum specifically for TechNet Website Feedback which is the more appropriate place for TechNet Subscriptions questions at http://social.technet.microsoft.com/forums/en/tnfeedback/threads/
There are many suggestions in this post about improving your network speeds when downloading from MSDN and TechNet subscriptions sites. Here is one more place to look for tips, which we have linked to from our Downloads and Product Keys FAQ (MSDN version, TechNet version):
The website for the Microsoft File Transfer Manager, particularly their troubleshooting page which includes additional discussion on configuring the FTM and on slow transfer speeds.
As Julie stated above, you can call TechNet Customer support and they can take you through some additional troubleshooting and diagnostic steps to assist. Julie has linked to the support phone numbers in her reply.
Thanks,
Mike Kinsman -
Plz hel for file transfer using zmodem protocol
someoe plz help me. i have to devlop an application that transfers files betwn 2 pcs(both ways) using dial up connection, further it should autodial the connection at periodic times.
i am trying to use Zmodem file transfer protocol. i succseed in sending string (for test)using my sender program with hyper terminal open on the other hand. it prints the string. but when i use my receive program, similar to given in samples(simpleread.java) it doesnt work.
actually when the ring comes from the sender how to send command to modem to hang up and connect to the calling pc if there are any such commands then plz help.
----sameersomeoe plz help me. i have to devlop an application
that transfers files betwn 2 pcs(both ways) using dial
up connection, further it should autodial the
connection at periodic times.
i am trying to use Zmodem file transfer protocol. i
succseed in sending string (for test)using my sender
program with hyper terminal open on the other hand. it
prints the string. but when i use my receive program,
similar to given in samples(simpleread.java) it doesnt
work.
actually when the ring comes from the sender how to
send command to modem to hang up and connect to the
calling pc if there are any such commands then plz
help.
----sameerU ddnt abrvt nuf. I r3r1t 4 U.
Sum1 plzz hep m3. i 1/2 2 dvlop app taht xfer fil betwn 2 pcs(bth wys)... -
Alert Configuartion for File Transfer
Hello,
I need some pointers in setting up the alerts for the file transfer for the given two scenarios -
1. An alert is generated everytime the polling fails i.e. the file adapter does not find a file to be read
2. An alert is generated when the file is transferred. I am just doing the file transfer so I am not using the message interface.
One option for this is to generate the mail by using JMS adapter, but I would prefer alert creation.
Thanks.
Regards,
MayankHi,
With Alert Framework you can apply the alert notifications wherever the file transfer in XI will failed.
Refer
XI : How to Re-Process failed XI Messages Automatically
XI : How to Re-Process failed XI Messages Automatically
XI: Alerts - Step by step
The specified item was not found.
For successfull messages there will not be the alert notification available. But as its mentioned by Amir, you can send mail confirmation with mail adapter, or can go for JMS adapter for sending the successful messages.
Thanks
swarup -
8900 to imac bluetooth connection for file transfer
Hello, I have a brand new curve 8900 javelin and a new IMAC. Both devices can see each other and I can manage to get a green connection light however it only lasts a few seconds and then disconnects. Can someone please tell me how to overcome this problem?
thank youThat's really weird, the different ways that the providers cripple the same phone. I do not need any plug-in for BT iSync but I can't do file transfer with BT or with USB (I do have a microSD card installed). Unfortunately, I have no use for iSync. I can also use the phone to provide Internet access for my Mac but the Mac is a desktop and a hardwired connection makes more sense.
The USB connection is really frustrating. Profiler knows that the phone is present and the phone knows that the Mac is present (the battery does charge) but otherwise it's as if it's not even connected.
I am able to put the card into a card reader and transfer files that way. I don't mind all that much but it's not easy getting the card out of the phone.
By the way, there are several RAZR versions. Is your "V3XX" the same phone as my "V3m?" -
CallManager SQL Database for Dir # config
I am looking for the SQL database that holds the setting for the Directry number configuration. What I am trying to figure out is which phone has which DID number assigned. We have around 250 did numbers and I do not know which users have which DID numbers. In callmanager under translation patterns a wild card was used i.e 569xxxx
If someone has a better suggestion to find out which users have which DID's I am open.I found two ways to do waht what I was looking for..
1.) The BAT tool. If you go in to BAT then choose configure then phones there is an option to export in the upper right hand side. When you choose export you are taken to a screen where you can select the detail of information you want and the types of phones. I chose this method to determin what exts were associated with waht outside DID.
2.) From SQL use the Num Plan table. This table holds all the settings for the device and line. -
I understand that Apache web server comes as a default with 10.6. I now how to turn it on along with PHP. My question is does it come with any database out of the box i.e. sqlite or do I need to install MySQL
Thanks,
Deanpocketmeapps wrote:
I understand that Apache web server comes as a default with 10.6. I now how to turn it on along with PHP.
Edit the file "/etc/apache2/httpd.conf" and uncomment the only php line in there. Then, turn on web sharing.
My question is does it come with any database out of the box i.e. sqlite or do I need to install MySQL
It comes with SQLite, but MySQL is a more traditional backend database for PHP. -
Bluetooth - any hope for file transfer in near future???
Hi,
Presently iPhone 4 does not allow bluetooth file transfer to other mobile devices and even my PC.
I am not interested in illegal music/video transfer but genuinely transferring my data files between pc and other mobile devices and use it like a mobile storage device. I don't like the idea of mailing my file and then downloading it again when I have both devices in my hand! It's not helpful when other devices do not have internet connection or limited internet usage.
Please let me know if apple policies would allow it to make file transfer possible in near future (except music and video). Otherwise it would greatly reduce its usability for me.
*I hate its file storing and transferring features.*
*Another reason for hating iPhone is 'Flash'.*
Apart from this, its simply superb.
agmadHoekstes wrote:
Why is something so simple its available on 10 year old Nokia 3310 bricks not available on an iPhone. Its ridiculous.
Because there is nowhere to put the files on an iPhone. There is no common file storage area on an iPhone that all apps can access. Each app sits in a sandbox for security purposes. Each app can only access its own files. You would have to have an app running where the files would go, and then the files would only be available to that app.
The old Nokia has a common file area and does not have the security the iPhone does, but then 10 years ago you probably did not need the security.
Maybe you are looking for
-
I've been running this set up for two years now without a hitch. Comcast Modem to TimeCapsule by Ethernet. Then TimeCapsule to Airport Express via WiFi. It used to work great because my TC was far away from my family room and the AE extended my ne
-
Capture Customer Class in time of BP creation from Screen
Hi All, I am facing a problem that I need to capture Customer Class , Sales Area Template and ID type in time of BP creation in DCHCK event. I have to check if user is putting these value correctly or not. If user entered wrong value then I have to
-
Should I make a back up of the website folder on iDisk? Is this folder the same as the Domain.sites2 folder in the Library? Is it the same as the folder that's created when I click Publish to Folder in iWeb? It's so confusing - from where should I
-
Exclamation Mark On Printer Icon
Every time I print from my iMac to my HP Photosmart 5510 printer, an exclamation mark in a yellow triangle appears on the printer icon in my Dock, like this: What does this mean? The "Now Printing" window that pops up on my screen looks like this, ag
-
Problem installing adobe x11 trial Error 1935
after downloading with adobe download assistant it gets about 90% through the installation then encounters a problem and undose everything and the green status bar goes back to the left. what can i do i really need to use this trial by morning. pleas