Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: David Brayley on April 10, 2006, 08:18:08 am

Title: Problem Importing Database Schema from MSSQL
Post by: David Brayley on April 10, 2006, 08:18:08 am
I'm evaluating Enterprise Architect for, among other things, data modeling.

I've tried to import the schema of an existing MS SQL Server (2000) database, but get no results.

The list of available tables in the dialog "Select Tables to Import" is empty.

I know that the ODBC connection itself is working, because the "Import DDL Schema from ODBC Data Source" dialog retrieves the name of the actual databae that I want to reverse engineer. I can import the database's stored procedures (though this operation does encounter some errors).

Can someone suggest what I might be doing wrong?

Thanks,
David Brayley

Title: Re: Problem Importing Database Schema from MSSQL
Post by: «Midnight» on April 10, 2006, 08:42:05 am
OK Dave, I've tried this on my own without a problem. Here's what I did:
At this point I was presented the list, fully populated with the various entities as one would hope.

I am using the current build (789) of EA, with MS SQL Server 2000, SP 4 (or whatever the current revision level is). This is a SQL Server Developer installation rather than MSDE, but I have done the above with MSDE in the past (EA version 4.x or 5.x) without a hitch.

FWIW, I imported the EA schema from a model I have created in a SQL Server repository, excluding system tables, but including user stored procedures. EA balked on several of the stored procedures, claiming parsing errors, but finished the import just the same.

HTH,
(the other)David
Title: Re: Problem Importing Database Schema from MSSQL
Post by: David Brayley on April 12, 2006, 03:45:00 pm
Many thanks, other David, for looking at this. I've reviewed the steps you followed - essentially the same as the ones I followed, verified that I have all the same versions of software that you do (I do), and repeated the attempt to reverse engineer, with no change in results. I still see an empty list of tables to import.

To eliminate the possibility that this is a problem with my database, or my server, I tried importing the "Northwind" database from my local machine, and another application database from a server on our network. Results are the same.

At this point I'm not sure what question to ask, or where to look. Any suggestions?
Title: Re: Problem Importing Database Schema from MSSQL
Post by: «Midnight» on April 12, 2006, 06:13:24 pm
Did you select the Import as New Objects radio button checked? (I think this is the default, but who knows?)

There has got to be some step I missed. It'll be something I do automatically, so to me it is not so much obvious but unconcious. I do this often enough that it could be a problem.

Another question: did you have a package selected in the Project View tree? Once again the answer is almost certainly "yes," as it should be impossible to start the schema import process without doing so.

David
Title: Re: Problem Importing Database Schema from MSSQL
Post by: David Brayley on April 13, 2006, 12:24:48 pm
I've found that solution. I'd inadvertently entered a value in the "Schema/Owner" field - a value that did not correspond to any Schema or Owner in the database. Leaving this field empty did the trick.

Many thanks for the help!
Title: Re: Problem Importing Database Schema from MSSQL
Post by: «Midnight» on April 13, 2006, 01:38:48 pm
I am so glad you found it. I was really beginning to wonder what I'd forgotten about the process, and when it would surface here and trash my database.

So all is well, and you can get back to development. Excellent!
Title: Re: Problem Importing Database Schema from MSSQL
Post by: thomaskilian on June 29, 2006, 05:41:42 am
I just found this one - hoorray! This saved my day :D