How can import xlsx file to Sql server 2000 - sql

Recently i moved to office 2007. im trying to import excel file to sql server 2000 using import and export data tool ,the tool gave data source as excel 97 - 2000 but while importing xlsx file ,im getting error "Error source Microsoft Jet databse Engine", external table is not in the expected format. Can you tell me how can i import office excel file xlsx to sql server 2000 using import and export data tool.
Appreciate your prompt comments

You could use an OLEDB connection, assuming DTS supports it. It's been a while since I've used it, so I can't remember. Connection looks something like this: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myExcel2007file.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES";
If your DTS server doesn't have Office installed you'll need to install the drivers:
http://www.microsoft.com/downloads/details.aspx?familyid=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en

The simple way is use Access 2007 to create a Access Project to connect to SQL 2000, and then import Excel 2007 data by Access 2007 Project.

Saving the document into 97-2003 format is fine when you have a spreadsheet that is smaller than 65536 rows, if it's not then using GordonB's link works

I agree with "schooner", the easiest way to import Excel 2007 into SQL 2K is to save the excel document into a 97-2003 format.

You could always just save it to a 97-2000 format XLS file

Related

need to convert CSV file to DBF file from MS-Access 2007 through Macro

I need to convert CSV file to DBF file from MS-Access 2007 through Macro
Please Help me!
I am stuck with it.
I want to automate it,as its a daily need in my firm
I need a button that whenever i click on it,it picks up the CSV file and convert it into DBF file
I Have the idea,what all i can do but i dont know how to do it.
You can't. Access 2007 knows nothing about DBF files.
One option is to get hold of an Access 2000 copy. Then export your data to an Access 2000 format mdb file, and open this in Access 2000 and export as DBF.
Edit:
This answer claims to work with Access 2007:
Export MS Access tables as dBase 5 through VBA
Also, I tested that with Access 2000. It doesn't know dBase 5, but dBase IV works for me:
DoCmd.TransferDatabase acExport, "dBase IV", "c:\test", acTable, "TestTable", "DBTable4", False, False
Note that the file name is limited to eight characters.

Importing other versions of an Excel Sheet into SQL Server 2014

I was wondering whether there might be another way that will allow SQL Server 2014 to import other versions of excel and not only 2007.
Currently my SQL Server is not linked to a datawarehouse whereby I can link the tables and pull data, so therefore extracts are being pulled from the application system and those extracts are imported into SQL Server with Excel 2007. Now the issue is that Excel only allows +-65 000 lines, therefore the rest if the data is not importing into Excel.
I have tried to convert the file to a txt format but due to the different format of each field, the data gets 'scrammed' and is not pulled correctly into the columns.
SQL Server only allows for a Excel 2007 version to be imported, is there another way to import an Excel worksheet as that will allow me to pull in lines more than 65 000 or is there perhaps another way to go about it.
(the txt file does not work).

SQL Server unable to upload excel file

I try to create a new table by uploading an Excel file, but it is stuck on the last step of SQL Server Import and Export Wizard; the openrowset function works
While importing excel file in sql server you would have got excel, Select microsoft Excel 97-2003 format if you are using latest verion of excel Or else it's better you export it to access database and upload it.

Import data into SQL Server from an Excel file

I have an Excel (version 2007) file which has more than 700 columns and I need to import that data into my SQL Server database. When I import the data, it only imports the first 255 columns as columns in table that is created by SQL Server. I want to know how to import all 700 columns.
You can try saving the excel data file as a text delimited file, then choose "flat file" in DTS. That should solve your problem.
Here is another solution to the problem as well: https://waheedrous.wordpress.com/2014/01/14/ssis-importing-an-excel-file-with-over-255-columns/

Importing 2007 files in SQL SERVER 2008 R2

Good Day,
Today i am facing this error upon importing an excel file to a databe in sql server 2008
i do not know what causes this error, i do not know if it is because the excel file is 48MB in size, or because there is a sheet where in there are 113956 rows? if so can you help me find a work around to this? i really need to import the data inside my excel file to the database. i tried selecting the 2007 version of my excel file in the dropdown box like below but it still outputs the same problem. so any help?
Thank You.
There are a couple of things you can try:
Resave the Excel file as a delimited text file - that way you can get around the MS Office driver.
Try cutting the Excel file in half by saving it in two different files.
Out of curiosity, how many columns does this Excel file have? I believe there is a 255 column limit.
I tried Re saving the file but not in a CSV format, i have found out that the excel file is read only although its properties are not set to read-only, upon resaving the excel file to another file the import now works for me.