Solved

Please Help convert Excel File to MS-SQL table

Posted on 2008-10-22
4
211 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

733 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