i am a faculty in NIIT, INDIA.
i am working over ms-windows and sqlserver2000 as backend.
i want to know if there is any way to connect to a database without
creating a DSN(Data Source Name) which we have to create in-order to
connect to a database.
Silvio Bierman - 27 Sep 2007 11:20 GMT
> i am a faculty in NIIT, INDIA.
> i am working over ms-windows and sqlserver2000 as backend.
> i want to know if there is any way to connect to a database without
> creating a DSN(Data Source Name) which we have to create in-order to
> connect to a database.
If you are talking about an ODBC datasource then you would only do that
if you where using the JdbcOdbc driver, which is really a bad idea.
If you want to access SQLServer directly simply use the Jdbc driver from
MS or use the jTDS driver. Both will work fine and allow you to connect
to any SQLServer as long as it accepts connections via TCP/IP (which is
not default, if I am not mistaken).
Silvio Bierman
Roedy Green - 28 Sep 2007 03:03 GMT
On Thu, 27 Sep 2007 12:20:11 +0200, Silvio Bierman
<sbierman@jambo-software.com> wrote, quoted or indirectly quoted
someone who said :
>If you want to access SQLServer directly simply use the Jdbc driver from
>MS or use the jTDS driver
see http://mindprod.com/jgloss/jdbc.html#CONNECTING

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Lee Fesperman - 28 Sep 2007 07:47 GMT
> i am a faculty in NIIT, INDIA.
> i am working over ms-windows and sqlserver2000 as backend.
> i want to know if there is any way to connect to a database without
> creating a DSN(Data Source Name) which we have to create in-order to
> connect to a database.
Yes, most ODBC drivers support connecting without a DSN. Google for
answers with "DSN-less connection".
However, I must echo the advice of others, against using the standard
JDBC/ODBC driver and for using a native JDBC driver.
--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)