?
Solved

Please Help convert Excel File to MS-SQL table

Posted on 2008-10-22
4
Medium Priority
?
213 Views
Last Modified: 2011-10-19
Hi Everyone-

I would like to port this file to a table is SQL server,  I have created the database for the file and have used various tools but with no success.

Could someone please direct me on how to get this converted and into SQL server.  Is it possible to have the SQL code for the creation during the conversion.  So I can modify the table constraints and table values.

I was using Full convert enterprise, but don't have the full version for the SQL code.


KudlerCOA.xls
0
Comment
Question by:salberta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
mikainz earned 1500 total points
ID: 22777577
Why don't you use the import/export wizard built in SQL Server 2005?
see http://www.databasejournal.com/features/mssql/article.php/3580216 for a sample

0
 

Author Comment

by:salberta
ID: 22778276
Hi Mikainz-
 
I have used this, the values are imported but the columns are being entered as null by default.  When modify the values from null to NOT NULL and trying to set a primary key I get the following errot
''CHART OF ACCOUNTS$'' table
- Unable to modify table.  
Cannot insert the value NULL into column 'Description', table 'TEAMCHARTACCOUNTS.dbo.Tmp_'CHART OF ACCOUNTS$''; column does not allow nulls. INSERT fails.
The statement has been terminated.
0
 
LVL 8

Expert Comment

by:mikainz
ID: 22778393
You can only set to not null if all existing rows have contnent in that field.
You can only build a primary key if each content in that field is unique.
Please check this against your data.
Hth
 
0
 

Author Comment

by:salberta
ID: 22778846
The table has 350 rows from the import that are trailing and are null.   A select and delete is erroring out.
 
A Problem occured attmepting to delete row 1429
The row values updated or deleted either do not make the row unique or they alter multiple rows (315)
0

Featured Post

Stack Overflow Podcast - Frustrating Miracles

In this podcast, Stack Overflow interviewed Linux Academy CEO/Founder, Anthony James, and got his developer story!

"Follow your passion, be prepared to work hard and sacrifice, and, above all, don't let anyone limit your dreams."  - Donovan Bailey

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question