Normal Topic Exporting data (Read 4542 times)
Justjana
Member
*
Offline



Posts: 2
Joined: Mar 15th, 2005
Exporting data
Mar 15th, 2005 at 10:01pm
Print Post Print Post  
Hello everyone

I need to know how to export data from Sesame into Excel.  I need Excel because of the way I need to move data around and transfer into other paper work.  I was able to do this under the old Q&A, is it still possible now?

Thank you

Jana
  

Forever trusting in who we are, and nothing else matters. Metallica
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2483
Joined: Aug 20th, 2003
Re: Exporting data
Reply #1 - Mar 15th, 2005 at 10:33pm
Print Post Print Post  
Hello Jana,

Sesame can export to a comma delimited standard ASCII file which you can then open in Excel. Exporting data is covered on pages 288-298. In step 8 just end your filename with .csv

In Excel click Open
Browse to were your export file is
Where it says files of type change to one that includes *.csv
Then open your export file

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Exporting data
Reply #2 - Mar 16th, 2005 at 12:17am
Print Post Print Post  
Depending on what you are doing, you might want to consider an ODBC link to Sesame.  That will eliminate the need to export/import files between the programs,

But this cannot be used if any of your needed data is in subforms.

I do not think that the ODBC driver for Sesame has corrected that problem yet.  I have brought this up in the past.  If you are using subforms, then those fields will not be available.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Exporting data
Reply #3 - Mar 16th, 2005 at 2:16pm
Print Post Print Post  
Justjana, a simple ASCII export from Sesame's export spec should do just what you need, remember to tell excel that you are using a comma separated file.

Quote:
I do not think that the ODBC driver for Sesame has corrected that problem yet.  I have brought this up in the past.  If you are using subforms, then those fields will not be available.

Bob, I just ran a multilevel ODBC retrieve from Gems.db to MSWord. It does require that the default query be edited to connect the ParentID in the child table to the RecordID in the parent table in MSQuery. But other than that, it worked pretty well.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Exporting data
Reply #4 - Mar 16th, 2005 at 4:36pm
Print Post Print Post  
Thanks Mark, I will try to check that out in the tests I have done.

To keep subjects in correct section I have added additional comments in this forum message where it was acknowledged that this was an issue that hopefully would be resolved.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Justjana
Member
*
Offline



Posts: 2
Joined: Mar 15th, 2005
Re: Exporting data
Reply #5 - Mar 16th, 2005 at 6:35pm
Print Post Print Post  
Thank you everyone with your help.  I got done what I needed to do, not the way I would have liked but it worked.  I would have liked to play around with the ODBC format, but my Excel doesn’t seem to have it, odd, strange, but true.  I am currently trying to figure out what is going on.

I have an idea I would like to implement with Sesame but I need to be able to export quickly and easily to Excel to achieve my needs.  ODBC seems the best way to go.

Thank you again

Jana
  

Forever trusting in who we are, and nothing else matters. Metallica
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Exporting data
Reply #6 - Mar 16th, 2005 at 7:25pm
Print Post Print Post  
Jana,

An Export Spec can be saved and is easy to run.

If Export doesn't work for you, for some reason, you can also simply run a  Report. Sesame creates an HTML file when you run the report. Excel opens these files perfectly, complete with formatting, fonts, etc.

If you need to get fancy, you can use the SBasic file I/O commands in a Mass Update to write pretty much any file you need.

If you need to drive the export from inside Excel, you can consider the Sesame Extractor.

If all you need is a simple export, there are far simpler and technically more reliable options than setting up and running an ODBC connection. If you can explain why simply Exporting is not "the way you would have liked" perhaps we can help.  Smiley
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Exporting data
Reply #7 - Mar 16th, 2005 at 9:37pm
Print Post Print Post  
Hello Jana

Re ODBC, Excel does support ODBC, usually with no trouble.  You need to do a few things:

One time only:
1.  Creat/Define your ODBC connection.  (See Sesame instructions to do this).
2.  Need to have availablity to the source database (Start Sesame Server to connect to a Sesame database).
3.  Open Excel, click on Data, Get External data, New Database Query.
4.  Choose Data Source (Can select Sesame or other source).  Make the query and save it as  filename.dqy(dynamic query).

Make as many queries as you need to use in the future.

Future use.
1.  Be sure you have access to source database (Sesame Server is on).
2.  Open Excel, File, Open, change the type to Query(*.dqy), and select the query that you want to use.

Here is a snapshot of an ODBC connection I just made with Sesame\Data\Samples\Customers database in Excel 2000, showing all 378 records, sorted by Key.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged