Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 2504

https://community.embarcadero.com/answers/create-question

$
0
0

I am sending you a mail because I can not find a department about my problem. Pleasure if you can help with the subject

 

 I have been a borland interbase user since first release. Despite all the pressure i use interbase in my software. The first time I write in java, the program gives me errors like this

[interclient][interbase] arithmetic exception,numeric overflow,or string truncation

[interclient][interbase] Cannot transliterate character between character sets

in Turkish characters. My entry records are below. Please help me solve this problem. I am waiting for your reply. Good work.

Connection conn;

private String dburl =  "jdbc:interbase://localhost/c:/TSI/TSI.gdb";

private  String diver ="com.Interbase.jdbc.Driver";

private String userAdi="SYSDBA";

 private String userPass="masterkey";

 private String propertie ="?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8";

public Connection ConnecT() throws Exception{

       conn = null;

        JFrame frame = new JFrame(""); 

        try {

          

        Class.forName ( "interbase.interclient.Driver").newInstance();

        } catch (ClassNotFoundException | IllegalAccessException | InstantiationException e) {

            JOptionPane.showMessageDialog(null,"Datbase Error");

            return conn;

        }

 

        try {

          

            conn = DriverManager.getConnection(dburl+propertie, userAdi,userPass);

        } catch (SQLException ex) {

            JOptionPane.showMessageDialog(null,"No Connetct");

        }

        return conn;

     }

 


Viewing all articles
Browse latest Browse all 2504

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>