the code for jdbc.odbc driver
created on windows 2000 server with the dsn name hide

the code: - 

-----------------------------------------------------
import java.sql.*;
import java.util.*;
import java.lang.*;

class ConnectApp {
        public static void main(String args[])
        {
        try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection connection =
DriverManager.getConnection("jdbc:odbc:hide", "sa",
"");
                DatabaseMetaData meta = connection.getMetaData();
                System.out.println("Database:
"+meta.getDatabaseProductName());
                System.out.println("  version
"+meta.getDatabaseProductVersion());
                System.out.println("User Name: 
"+meta.getUserName());
                connection.close();
        }       
        catch(Exception ex) {
        System.out.println(ex);
        System.exit(0);
    }
  }
}
------------------------------------------------------------------
u can create a odbc driver using the JNI(java native
interface) and use the driver for c++ programs
thanks
Pradyut

=====
Pradyut Kumar Bhattacharya
http://pradyut.topcities.com
http://groups.yahoo.com/group/d_dom/
India


                
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM
--------------------------------------------------------------------~-> 

If you have any comments or questions, submit it on the message board.
NO spam/ads/job posting or you will be BANNED from this group. Exception can be made 
it happen by notify me ahead of time.
all new members' message will be verified by me (spam..) before it get posted. 
Yahoo! Groups Links

<*> To reply to this message, go to:
    http://groups.yahoo.com/group/java_official/post?act=reply&messageNum=17224
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/java_official/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to