Presents: ObjectRoleModeling.com Thursday, July 24, 2008
 Search
Register Login
Forums
 
 

Note: To post to a thread, you must be logged in.

  Forums  
 
SearchForum Home
     
  Orthogonal Toolbox  Support  XML > SQL Scrip...
 XML > SQL Script
 
imgOfflinedig
1 posts
Joined
3/2/2006

XML > SQL Script
Posted: 02 Mar 06 10:21 AM

I read somewhere that I could use this tool to export to XML then take the XML and create the sql script to create the tables and relationship that I have setup in Microsoft 2002 Visio professional. Is this possible and if so how? Thanks

imgOfflineScot Becker
220 posts
www.orthogonalsoftware.com
4th
Joined
9/24/2004

Re: XML > SQL Script
Posted: 02 Mar 06 10:41 AM

See:

http://www.objectrolemodeling.com/WebLog/tabid/58/EntryID/63/Default.aspx
http://www.objectrolemodeling.com/WebLog/tabid/58/EntryID/62/Default.aspx
http://www.orthogonalsoftware.com/toolboxaddons.html

Scot.

imgOfflinetriffle
3 posts
Joined
4/28/2006

Re: XML > SQL Script
Posted: 28 Apr 06 8:36 AM Modified By triffle  on 4/28/2006 8:52:22 AM)

I have no problems using the tool, but I have no idea what to do with the XML file that I've created. 

I am new to XML, but not to SQL, etc...

FYI, I tried the instructions for the XSLT page, but here's the error that I get:

 

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


Invalid at the top level of the document. Error processing resource 'file:///C:/Documents and Settings/triffle/Desktop/test...

  <?xml version="1.0" encoding="UTF-8" ?> 

imgOfflinetriffle
3 posts
Joined
4/28/2006

Re: XML > SQL Script
Posted: 28 Apr 06 9:04 AM

Okay, I'm doing something wrong.  FYI, I have Viseo Pro 2003. 

I created a table called crap, gave it a crap_ID, crap_details, crap_code column and nothing else.  I tried exporting and got the same error. 

FYI, I -am- using the XSLT that transforms the XML into a DDL SQL...  I'm sure this is an easy one, so let me know your thoughts and thanks for your help in advance.  I really want to get this to work...  I told one of our developers that we weren't going to do this in SQL because I could do this in Viseo and parse out the SQL.  I hope I am still right.  :)

imgOfflineScot Becker
220 posts
www.orthogonalsoftware.com
4th
Joined
9/24/2004

Re: XML > SQL Script
Posted: 30 Apr 06 1:35 PM
Hi Triffle,

I can't reproduce this. Could you please e-mail me the vsd, the exported XML, and the XSLT you are using? Please e-mail them to my first name at object role modeling dot com.

Thanks,
Scot.
imgOfflinetriffle
3 posts
Joined
4/28/2006

Re: XML > SQL Script
Posted: 01 May 06 6:58 AM

Hey Scot,

I sent the vsd, xml and xslt to you.  Let me know if there's something else that I can provide.  I'm sure it's something simple on my end that I'm overlooking. 

 

Thanks,

Travis

imgOfflinepierre.cusson@cexp.ca
1 posts
Joined
6/6/2006

Re: XML > SQL Script
Posted: 06 Jun 06 7:15 AM Modified By pierre.cusson@cexp.ca  on 6/6/2006 7:16:15 AM)

I had the same issue. I simply had to copy the .xslt file in the same folder as my .xml file and change the <?xml-stylesheet type="text/xsl" href="OTERtoSQL.xslt"?> line in the .xml file.

I assume that have the .xslt file in the default "Program Files" folder may cause reference error for Internet Explorer. My .xml was on a network share also. This combine with the .xslt file being on the C: drive may have cause a path error or something.

By putting everything in the same folder solved it. I've been able to view the script all right. I just need to beautify it a little to make it human readable, other than that, DDL looks good.

Thanks for the tool, saved me a lot of time.

Pierre.

imgOfflineMercury
1 posts
Joined
8/29/2007

Re: XML > SQL Script
Posted: 29 Aug 07 1:44 PM
I'm having a similar problem as noted in the previous post.   I have a good visio diagram in Visio 2007 and have the plugin installed.  The plugin works and exports the XML using the ER to SQL stylesheet.  When I try to open the resulting XML file it seems to load but the page displayed is just blank.   I've tried to make sure that the style sheet path is right and have confirmed this by testing the HTML stylesheet (1.5) which works fine.  Any ideas what I could be doing wrong.  Also any tips in getting the XML into Access 2007 would be helpful.

Thank you very much.
Merc
imgOfflineScot Becker
220 posts
www.orthogonalsoftware.com
4th
Joined
9/24/2004

Re: XML > SQL Script
Posted: 03 Sep 07 6:37 AM Modified By Scot Becker  on 9/3/2007 6:38:18 AM)
Hi Merc,

It might be a rendering problem in your browser (i.e. if it's not HTML it doesn't interpret/display it). What browser/version are you using?

My knowledge of Access is dated, but I don't believe there was a DDL/import functionality. That may have changed with a later version. Dig around and see if they support some type of SQL DDL or maybe an XML schema? Once you know that, you can adjust the XSLT to gen the output in a version Access can read.

Scot.
  Orthogonal Toolbox  Support  XML > SQL Scrip...
 
  Syndication  
   
 
© 2003 - 2007 Orthogonal Software Corporation. All rights reserved. Terms Of Use Privacy Statement