Solved

Please Help convert Excel File to MS-SQL table

Posted on 2008-10-22
4
203 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
  • 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

948 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now