Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Mas90 database

Status
Not open for further replies.

butasan

Programmer
Joined
Sep 11, 2006
Messages
1
Location
US
Could someone give me an example how to connect mas90 server from Java?
I've been researching this for couple of days, but found none.
All I could find were following lines from this forum.

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc:odbc:SOTAMAS90");

I am desparated for advice or guidance!
 
I would look for examples in VB then translate them. There are quite a few out there including several on this board.

John
 
Here is sample code from a VB script I use:

strConnectionString = "DSN=SOTAMAS90;UID=Louis|SAF;PWD=target"
Set connection = CreateObject("ADODB.Connection")
connection.Open strConnectionString



SAF = Three character company code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top