Advertisement

06.03.2008 at 08:06PM PDT, ID: 23455478
[x]
Attachment Details

THE BEST WAY TO IMPORT DATA FROM EXCEL

Asked by justin_smith in Microsoft Excel Spreadsheet Software, SQL Server 2005

Tags: Microsoft, SQL Server, 2005, IMPORTING DATA FROM EXCEL, T-SQL

Hi,

I have need to import marketing information into the SQL 2005 from an Excel sheet..
Currently I am using DTS Wizard to import them..

But everytime i do this its a nightmare to get it right...
Even after the automated process i have to manually check if anything has been missed.

For instance if the excel report has field that has actual numbers as well as that look like numbers it mixes them up.. This happens even after i make the entire column to text or general.. So some of the cells are missing after the import..

Further i dont like this idea about the Wizard as well as it is time consuming..

Does any have a better idea to do this..

I have heard about openrowset.. but i dont much about it...
I would prefer a mechanism that gives me much programatic control in accessing and formating the columns while they are imported into SQL server

Thanks Start Free Trial
[+][-]06.03.2008 at 08:23PM PDT, ID: 21706655

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.03.2008 at 08:39PM PDT, ID: 21706720

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.03.2008 at 10:07PM PDT, ID: 21707102

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Excel Spreadsheet Software, SQL Server 2005
Tags: Microsoft, SQL Server, 2005, IMPORTING DATA FROM EXCEL, T-SQL
Sign Up Now!
Solution Provided By: rstomar
Participating Experts: 1
Solution Grade: C
 
 
[+][-]06.03.2008 at 10:09PM PDT, ID: 21707114

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628