Bob_Hansen
Senior Member Members
    Offline
 WOW, They have the Internet on computers now!
Posts: 1861
Location: Salem, NH
Joined: Nov 24 th, 2002
|
Re: ODBC
Reply #5 - May 23rd, 2008 at 6:43am
|
Print Post
|
These instructions are from memory, no access to Sesame right now.
Be sure you have the latest ODBC from Sesame. Extract the files from the ODBC Zip file, and install using setup.exe. You can create the ODBC connections here or proceed as shown next.
On XP PRO, using SesameSeasons as a sample ..... Start/Control Panel/Administrative Tools/Data Sources ODBC Tab for User DSN / Add opens a window to Create a New Data Source Select Sesame ODBC. Finish opens a window for Setup Data Source = User Friendly Intelligent Name for Data Source (Sesame2SeasonsTest) Database = Full path to Sesame database. (C:\Sesame2\Data\Samples\SesameSeasons.db) Host = Name of computer where database resides (Computer Name) Port = Port where database can be accessed (Use defaults 20000:20001)
Save results. Create a new ODBC for each Sesame FileName.db that you want to use as a source --------------------------------- Start Sesame Server with the same connection information as defined above with the Host and Port information. This is critical. You must be running a server to make the connection happen. --------------------------------- Now, in Access, open your database, then proceed: File/Get External Data/Link Tables/ Window opens, Change File Type at bottom of window to ODBC. Window opens, use Tab for Machine Data Source Select the Sesame ODBC that you want to use.
Now select the database "tables" that you want to use. These will be the Sesame databases. You can select them all. Now you can make your queries from these tables. You will see that these have a different icon from your normal tables. You may have problems with sub tables, you will get an error message saying that the table is not valid.
I use a naming convention in Sesame where my databases are named tblName and the forms are named frmName. This makes it good when using an ODBC link to Access so my "tables" have the same naming convention that I use in Access or any other databases that I am working with. I also name my FIELDS with a prefix like str, dat, tim, num, etc. to show the data type that is coming into the Access application. I do not include the prefix on the ELEMENT names.
Once the ODBC connection has been defined it can be used as a datasource in any other application that uses data sources, like Access, Word, Open Office, FoxPro, Excel, etc.
|