How to convert xls files to xlsx files and save in a folder using SSIS? - ssis

How to convert .xls file to .xlsx file in ssis.
My requirement is to export the user defined stored procedure in to excel destination.
This is my control flow task:
[Execute SQL Task (Drop excel table)]-->[Execute SQL Task (create
excel table)]-->[Data flow Task]
My Data flow task is :
[OLEDB Source (to execute the stored procedure)]-->[Data
conversion(convert to unicode)]--> [Excel Destination]
When I do this, the excel destination table is stored as .xls file. I need to convert to .xlsx file. I have excel 2013 installed on my server but file saved as .xls. Please help me to write a code to convert xls files to xlsx file using SSIS.
Thank you for your time and help !

which version of data tool are you using? SSDT or BIDS?
If you are using SSDT, like Alex said, you can choose excel 2007 in the EXCEL destination and save the file as .xlsx.
If you are using BIDS before SS 2005, you can try to use OLE DB destination and create a new connection manager through Native OLE DB\Microsoft Office 12.0 Access Database Engine OLE DB Provider.

Related

How to extract image from ms Access to file directory

I have gone through a data migration and previous data is stored in MS-Access DB so the database has file attachment field,, here is the problem that i want to extract attached file or image to file directory.
OR if its possible for conversion to MySQL database.
Any Solution ???

Sql Server - Run job which contains dtsx that creates files in a remote folder in another server

I am doing a SSIS dtsx file in which I access data in Dynamics CRM. This is the procedure:
* Someone copies files in a folder (.txt files from OCR, that's an external process).
* The SSIS grabs those files and copy them to another folder "Processed". Then the SSIS looks for data in those .txt and creates records for entities in Dynamics CRM.
* When some record canĀ“t be created on CRM, it is an Error and the SSIS creates a temporal table in SQLServer with the error. Then the SSIS creates some .txt files which show all the errors, the number of the row and name of the original file.
I could run it from the Visual Studio, but I am not able to run it from a job. I've followed those steps: https://www.codeproject.com/Articles/14401/How-to-Schedule-and-Run-a-SSIS-package-DTS-Job-in , but still not running.
What may I do to handle this?
The dtsx in the job is in a SQL server and the files which I want to work with are in a CRM server.
Thanks very much for your help!
Finally ir worked!!
I followed the steps again and I could run the job successfully.

How to convert bak file into sql file (sql bak file to mysql supported) and the execute that file to restore automatically

i want to convert a bak file of sql server into .sql/.csv/.xml file for mysql database.
And then i need a script that will automatically pick the file from server drive(suppose file is in D drive in mycomputer and script will automatically pick file from D drive) and execute sql/csv file to restore into my sql database(online) .
Actually i have two system, 1- is on VB that runs on local host and generates a bakup file daily
in the system and now i am going to create a new web application for same system that runs on VB.
i want that in my web application i write a script that will pick and backup file and ist convert into mysql supoported format(sql/csv/xml)(if necessary) and then execute that file for updating into mysql online database.
ANy kind of help will be highly appericiated.
many thanx in advance.
Possible by using MySql Migration Tool kit.
First install the software ,follow below steps

Receive Excel Files from FTP Task changing file names everytime

Im loading excel files from ftp server to SQL Server where ftp server will contain only one file.
There is change of having the file with different name on monthly basis and old file is deleted. At that time if we run the package the package will fails, because ftp server contains new file with new name.
So, how to capture the new file.
Can anybody help me?
you need to use MASK to set the file name for example *.xlsx. Go to FTP Task Editor, set RemotePath to /your ftp path/*.xlsx.

How to convert excel file into mdf file

i have an exel file. i want to change this file into mdf formmat. Plz tell me the full procedure, how i can convert this file. i m using excel 2003 nd sql server 2000.
You can not convert. The mdf is a SQL server file. You can import data from Excel to SQL server. There is a Data Import Wizard in SQL server to get you started.