Unable connect to SQLServer

I using JDBC driver (Microsoft SQL Server 2000 Driver for
JDBC) to access Database (SQLServer 2000).
I using NonXA-Datasource
driver: com.microsoft.jdbc.sqlserver.SQLServerDriver
INDI name : jdbc/SqlServer
url : jdbc.microsoft.sqlserver://local:1433;user=testuser;password=testpass;databasename=TestDB
reference name: jdbc/TestDB
I had set J2EE_CLASSPATH to classpath of jar file (msbase.jar,mssqlserver.jar,msutil.jar)
function makeconnection :
private void makeConnection() throws NamingException, SQLException {
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup(dbName);
con = ds.getConnection("testuser","testpass");
with dbname
private String dbName = "java:comp/env/jdbc/TestDB";
But when I run application, I receive exception 'unable to connect to database'
Can you help me? Thanhs.
Leb.

What is your JNDI provider? Is it Weblogic? Or some LDAP scheme?
The reason I ask is that you specify
DataSource ds = (DataSource) ic.lookup(dbName);which means that should already have loaded a 'pool' ( even if you just specified one )? So some application server is managing a 'pool' of DataSources for you. Which also means that if you arent getting a connection with
ds.getConnection();The pool is never being built properly.
Now it is my understanding that you should typically provide your pool with username and password so it can actually load the pool ( test connections even ) when the app server starts or the context loads. If you don't, then you arent getting connected, and the pool return empty DataSource objects which you'll try to connect to afterward as you are doing unsuccessfully.
So by this rationale, there is a problem in your configuration of the datasource itself. Check that in fact the class is in your classpath and being loaded, and that the datasource configuration is valid.
If you can though, please be more specific about the situation ( app server etc ).
L
I using JDBC driver (Microsoft SQL Server 2000 Driver
for
JDBC) to access Database (SQLServer 2000).
I using NonXA-Datasource
driver: com.microsoft.jdbc.sqlserver.SQLServerDriver
INDI name : jdbc/SqlServer
url :
jdbc.microsoft.sqlserver://local:1433;user=testuser;pas
word=testpass;databasename=TestDB
reference name: jdbc/TestDB
I had set J2EE_CLASSPATH to classpath of jar file
(msbase.jar,mssqlserver.jar,msutil.jar)
function makeconnection :
private void makeConnection() throws
s NamingException, SQLException {
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup(dbName);
con = ds.getConnection("testuser","testpass");
with dbname
private String dbName = "java:comp/env/jdbc/TestDB";
But when I run application, I receive exception
'unable to connect to database'
Can you help me? Thanhs.
Leb.

Similar Messages

  • I'm unable connect my I pad mini to my laptop(window 7,64 bit) after formatting,my iTunes didn't find my device,before format everything working properly but this time lot of problem plz help

    I'm unable connect my I pad mini to my laptop(window 7,64 bit) after formatting,my iTunes didn't find my device,before format everything working properly but this time lot of problem plz help

    You formatted your computer's hard drive? If so, it's like starting with a new computer unless you restored all of your content from a backup but it does;t sound like that's the case.
    See wjosten's excellent how-to here: Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • SQLJ connection to SQLServer

    Hello,
    Is it possible using SQLJ to connect to sqlserver? When I try, I am getting error:
    java.lang.IllegalArgumentException: SQLJ programs translated with the option -codegen=oracle must be run under Oracle JDBC 9.0.0 or higher. If the Oracle JDBC driver is wrapped, then the wrapper must implement all of the oracle.jdbc.OracleXxxx interfaces. Alternatively, you can translate SQLJ programs either with -codegen=iso or with -codegen=jdbc.
    Code
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
              Oracle.connect("jdbc:microsoft:sqlserver://10.10.10.10:1433;DatabaseName=zzz;User=123;Password=1234",true);
    #sql iterator SeatCursor1(Timestamp CLOSE_DATE, String TERMINAL_PRODUCT_NUMBER,String NAME,String TANK_CODE,int OPENING_PHYSICAL_GROSS_QTY,int CLOSING_PHYSICAL_GROSS_QTY);
    SeatCursor1 sc;
    #sql sc = { select  CLOSE_DATE ,TERMINAL_PRODUCT_NUMBER,NAME,TANK_CODE,OPENING_PHYSICAL_GROSS_QTY,CLOSING_PHYSICAL_GROSS_QTY from cbv by CLOSE_DATE desc};

    Cosmos,
    I don't use SQLJ, but it's just a sort of "shorthand" for JDBC code, so pardon me if this is a silly suggestion, but why don't you just write pure JDBC code -- without using SQLJ?
    [Note that below code is uncompiled and untested.]
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    String url = "jdbc:microsoft:sqlserver://10.10.10.10:1433/zzz";
    String user = "123";
    String password = "1234";
    Connection c =  = DriverManager.getConnection(url, user, password);
    Statement s = c.createStatement();
    String sqlQuery = "select ...";
    ResultSet rs = s.executeQuery(sqlQuery);
    while (rs.next()) {
      // Process the result set
    }If you haven't already done so, I suggest looking at the JDBC Database Access trail in the Java Tutorial:
    http://java.sun.com/docs/books/tutorial/jdbc/index.html
    Good Luck,
    Avi.

  • Oracle client connecting to sqlserver

    oracle client connecting to sqlserver in local machine. working fine.
    but I am connecting to remote sqlserver getting error
    obojects does not exist
    listenter not started.
    No firewall, port is open, entry in the sqlnet.ora, tnsnames.ora, listener.ora
    all correct.
    I have qusetion, connecting oracle client and sqlserver
    we need install any special odbc
    please let me know

    this question should be in HS forum
    and oracle client (eg sqlplus) can't directly connect to other ODBC databases., but oracle server can through heterogeneous connectivity (HS) and yes server will need ODBC driver to do that.
    http://www.oracle-doku.de/oracle_10g_documentation/server.101/b10764/toc.htm
    Eugene Roytman

  • Connection to sqlserver

    what folder does the jar file for the sqlserver jdbc drivers go? The documentation says [JRE_HOME]/lib, but the Oracle drivers are in oc4j\jdbc\lib folder.

    Hi JD;
    I didn't install SQLServer 2000/2005 BUT what I installed in my laptop was small version of SQLServer called "SQLServer Express" same as Oracle XE.
    This is what I did to accomplish the task on SQLServer Express:
    1) Downloaded latest version of SQLServer JDBC driver from Microsoft website
    2) Set up login connection to SQLServer using "SQLServer Authenication" NOT windows.
    3) Create AdventureWorks or Nortwind schema downloaded from Microsoft website.
    4) Create a user thru SQLServer Management Studio is like ORACLE DB console.
    5) test the connection from SQLServer
    6) test the connextion using XMLP JDBC connection
    Also to make more spicier I did the connection to MS-ACCESS using ODBC:JDBC driver BUT the Query Builder didn't work but my small sqlscript worked for a demo to clients.
    Here are the link to achieve:
    http://download.microsoft.com/download/d/8/6/d865cf0c-c44b-401b-b426-b3bf5c628112/SQLServerDatabasesAndSamplesOverview.htm
    http://www.oracle.com/technology/products/jdev/howtos/bc4j/bc_psqlserverwalkthrough.html
    HTH
    Shaun S

  • BB8520 Application Loader Was Unable Connect With Your Device .

    Hi ,
    I am upgrade my bb8520 using bd program , but untill reconnecting to jvm it come up applicayion loader was unable connect with your device . please reconect your device , enter the password , if required , and click retry . but the phone is running at the half way . I don't know how . Please advice .
    Thank You .

    ryouiken wrote:
    Hi ,
    I am upgrade my bb8520 using bd program , but untill reconnecting to jvm it come up applicayion loader was unable connect with your device . please reconect your device , enter the password , if required , and click retry . but the phone is running at the half way . I don't know how . Please advice .
    Thank You .
    Hi ryouiken,
    Try using BlackBerry Desktop Software. Read this article.
    How to perform a clean reload of the BlackBerry Device Software for Windows
    Good luck!
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

  • Unable connect to server

    "Unable connect to server" - when trying to start the application. Firewall disabled, antivirus is absent. What to do? Free trial version.

    Hi
    Are you still facing the same issue
    CHeck the following thread
    http://forums.adobe.com/thread/1003997

  • Hang process mamping connect to sqlserver 2000

    Help me
    Problem this, before one weeks , process mapping connect to sqlserver still running
    but, after this process mapping hang get data from sqlserver 2000
    because i try 10, 100, 5000 record mapping still running, but 100000 record still hang, this is i try method row_bases.
    and i try method set based, data still empty in target (4 hours)
    this data from sqlserver +/- 1600000 record,
    how to solve problem this.
    owb client 11.1.0.6.0
    owb repository 11.1.0.1.1
    db ver 11.1.0.6
    db sqlserver 2000
    OS Window NT 2000
    Tx

    do you mean the url?
    it seems to be right.
    the server is on THE_B
    the instance is MIAINSTANCE
    (when i've installed the DBMS i've specified "miaInstance" as instance name,but whe I access to it I see MIAINSTANCE as name.it can be a case sensitive problem?)
    i've specified the following URL
    ...sqlserver://THE_B\MIAINSTANCE:1433;SelectMethod=....
    i've also tryed
    ...sqlserver://THE_B\miaInstance:1433;SelectMethod=....
    but it still doesen't work.
    yes,the instance is running.

  • "Unable connect to service.

" - only photoshop ?

    exact error message -
    Unable connect to service.
    Please check that your permissions allow extensions to connect to the Internet.
    only for photoshop cc - 64 bit, other apps like prelude, premire, il connect fine. - I tried uninstall and then reinstall extension manager, no change. 

    I see this when I open PS cc 64,  then select menu option - window - extensions - adobe exchange; the adobe exchange panel becomes active then shows but the message "Unable connect to service.

Please check that your permissions allow extensions to connect to the Internet." appears. 
    Check my firewall? -   I turn off my firewall - try again and get the same unable connect message.  The extension panel opens and works fine in my other CC installed apps.

  • Unable to establish connection with SQLServer from Java Application

    Dear All,
    I am facing the issue of establishing connection with SQL Server from Java project developed in NWDS. I am writing a jaas plug-in, as a part of that I am writing a login module to authenticate a web application through jaas, and I got need of fetching some data from SQL Server which is located in remote host. I am getting error in the line of code
    <b>Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver")</b>
    I also added the 3 jar files (msbase.jar,mssqlserver.jar,and msutil.jar) to my login module project and copied the same files at C:\usr\sap\J2E\JC01\j2ee\cluster\server0\bin\ext\MSSQL.
    My MI Landscape is j2ee stack + abap stack +WAS 6.40 with MAXDb as a database.
    Could anyone please let me know the solution if you are aware of it.
    Thanks and Regards,
    Kishore

    I solved it by writing the following code
    Connection con;
    Statement stmt;
    DataSource ds;
    Context ctx;
    ctx = new InitialContext();
    if(ctx == null)     throw new Exception("Boom - No Context");
    ds=(DataSource)ctx.lookup("jdbc/SQLDB");     
    con = ds.getConnection();
    stmt = con.createStatement();
    String query = "SELECT * FROM SubjectBIR where Subject_ID='" + user + "'";
    ResultSet result  = stmt.executeQuery(query);
    stmt.close();
    con.close();

  • Error when connect to sqlserver

    I encounter the following error,any 1 can tell me reason?
    com.solarmetric.kodo.runtime.FatalDataStoreException: java.sql.SQLException:
    [Microsoft][SQLServer JDBC Driver]Error establishing socket.
    [code=0;state=08001]
    NestedThrowables:
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing
    socket.
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Connection timed
    out: connect
    at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLException
    s.java:58)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:212)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    ..java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:125)
    NestedThrowablesStackTrace:
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing
    socket.
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(Data
    SourceImpl.java:932)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.findConnection(DataSo
    urceImpl.java:844)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSou
    rceImpl.java:563)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    321)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    314)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:63)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    ..java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:125)
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Connection timed
    out: connect
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(Data
    SourceImpl.java:932)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.findConnection(DataSo
    urceImpl.java:844)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSou
    rceImpl.java:563)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    321)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    314)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:63)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    ..java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:125)
    com.solarmetric.kodo.runtime.UserException: This operation cannot be
    performed while a Transaction is active.
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.close(PersistenceManager
    Impl.java:1058)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.close(PersistenceManager
    Impl.java:1042)
    at com.ipacs.als.test.Test.main(Test.java:183)
    Exception in thread "main" Process terminated with exit code 1
    Regards,
    geduo

    Geduo-
    It sounds like your ConnectionURL is not correct. Can you post the
    properties you are trying to use?
    In article <[email protected]>, geduo wrote:
    I encounter the following error,any 1 can tell me reason?
    com.solarmetric.kodo.runtime.FatalDataStoreException: java.sql.SQLException:
    [Microsoft][SQLServer JDBC Driver]Error establishing socket.
    [code=0;state=08001]
    NestedThrowables:
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing
    socket.
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Connection timed
    out: connect
    at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLException
    s.java:58)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:212)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    .java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:125)
    NestedThrowablesStackTrace:
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing
    socket.
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(Data
    SourceImpl.java:932)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.findConnection(DataSo
    urceImpl.java:844)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSou
    rceImpl.java:563)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    321)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    314)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:63)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    .java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:125)
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Connection timed
    out: connect
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(Data
    SourceImpl.java:932)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.findConnection(DataSo
    urceImpl.java:844)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSou
    rceImpl.java:563)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    321)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    314)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:63)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    .java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:125)
    com.solarmetric.kodo.runtime.UserException: This operation cannot be
    performed while a Transaction is active.
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.close(PersistenceManager
    Impl.java:1058)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.close(PersistenceManager
    Impl.java:1042)
    at com.ipacs.als.test.Test.main(Test.java:183)
    Exception in thread "main" Process terminated with exit code 1
    Regards,
    geduo
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Connecting to SQLserver 2005 via Web Analysis using a JDBC driver

    We are currently working on a web analysis suite and have been trying to create a SQL spreadsheet data object.
    After downloading and supposedly installing the sqljdbc.jar driver, we are having problems getting a connection to MS SQL server 2005.
    We set the classpath to this driver in the operating system (Windows server 2003) but are unsure exactly how to set this classpath in Tomcat 5.0.28 as recommended by the help file. We have tried editing the catalina.bat and catalina.50.bat in the \Hyperion\common\appServers\Tomcat\5.0.28\bin folder to point to sqljdbc.jar, but to no avail.
    So....does anyone have any experience on setting up the JDBC driver for MSSQLServer 2005 and making a connection in Web Analysis. Could you please give a step by step account of how this is done?

    Hi,
    In the past I have used two methods either updating the registry for the web application or by placing the jar file in the following directory
    \Hyperion\deployments\Tomcat5\WebAnalysis\webapps\WebAnalysis\WEB-INF\lib
    If you do place it in that directory you will need to restart the web analysis web server.
    Then in web analysis studio go to file > new > database connection >Relational
    Select Microsoft SQL Server
    JDBC Driver
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection string
    jdbc:microsoft:sqlserver://<servername>:1433;DatabaseName=<dbname>;SelectMethod=cursor
    Enter username/password
    There is always the Merant SQL server connection that can be used as well.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Connecting to sqlserver using named pipe

    I would like to connect to mssql (running on same PC as SQL Developer) using named pipes.
    The host is listed in the Windows Service Manager as \\SX3102971\SIMSLOCAL
    I have gone to the 'Oracle' tab, selected 'Advanced' and in the 'Custom JDBC URL'
    entered
    jdbc:jtds:sqlserver:\\SX3102971\SIMSLOCAL;namedPipe=true;user=<username>;password=<password>
    where <username> and <password> are the true values.
    I receive a message
    Staus : Failure -Invalid connection information specified. Verify the URL format for the specified driver.
    Can anyone advise on what may be wrong?
    Also, can SQLDeveloper handle blank passwords?
    The database is installed as part of a third party application, which sets the default dba logon with no password. SQL Developer states that a password is required. For the example above I have created my own log on.

    Hi,
    I managed to solve the problem. So don't worry about it.
    For others who are looking for the solution...
    - I have referred to the http://www.qint.de/joria/doc/jdbc/jtds.html.
    - I have changed the URL element in IDEConnections.xml file located under where SQLDEVELOPER software is installed.
    - The URL must look like the following ...
    <URL>jdbc:jtds:sqlserver://\\.\;namedPipe=true;instance=<name of the database - without the server name>;</URL>
    Hope this helps.
    Regards
    Raja
    Message was edited by:
    rajaram_r

  • -How to use JDBC to connect the SQLServer and Oracle.

    Hi,
    I create a table in the WIP DB, I want to modify this table when use "PRE-START" activity in POD.
    SAPME version: 5.2.3.4     SDK:2.0    DB:SQL2005 and Oracle 10.2g
    SourceCode like below:
    public void execute(StartHookDTO dto) throws Exception {
              initServices();
              try{
                   Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                   Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=SAPMEWIP", "sa" ,"sap12345");
                   conn.close();
              }catch(Exception e){
                   e.printStackTrace();
    Besides, I already setup the JDBC ClassPath in ConfigTool, but it gets somes error when executing.
    the error code like below:
    java.sql.SQLException: No suitable driver
    Please give me some support or a example, thank you so much!
    Br,
    Alex

    You probably want to use the WIP Datasource defined in JNDI.

  • Connecting to SQLServer 2k named Instance

    Hey guys, this time i need some URGENT help, i swapped from windows to linux platform and using CF9, when i create a DSN in windows using SERVER_NAME\INSTANCE_NAME for the Server field, filling user name and password with a Microsoft SQL Server native DSN works perfectly, but when i do this same thing on Linux i get this nasty error:
    java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC  Driver]The requested instance is either invalid or not running.
    The root cause was that:  java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC  Driver]The requested instance is either invalid or not running.
    So i tryed to create a connection using the "Other" as DSN type and filled out this info:
    CF Data Source Name: Test
    JDBC URL: jdbc:sqlserver://SERVER_NAME\INSTANCE_NAME:1433;DatabaseName=MyDatabase
    Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Driver Name: SQL Server JDBC
    User name: myuser
    Password: mypass
    i get this error:
    Connection verification failed for data source: test
    com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP  connection to the host FULLSQL, port 1433 has failed. Error: "Connection  refused. Verify the connection properties, check that an instance of  SQL Server is running on the host and accepting TCP/IP connections at  the port, and that no firewall is blocking TCP connections to the  port.".
    This was done after downloading sqljdbc_3.0.1301.101_enu.tar.gz from microsoft's web site and placing the sqljdbc4.jar file inside the /opt/coldfusion9/runtime/lib directory.
    So basically the first way to create the connection works on windows but not on linux, and the second way does not work in any place even tho it's supposed to be working...
    Please send me some help ASAP, need this thing working BADLY!

    Okay, just solved the mistery... i will NEVER connect since every time you install a new SQL Server instance THAT new instance will listen to a different port, in this case the default 1433 was working but for the first instance and i was trying to connect to a second one listening in some other port i can't remember ATM.
    Thanx for that help ne way Adam....!

Maybe you are looking for

  • How does one clear the Local Storage in Safari 6.0?

    I used to be able to delete the cookies in the Local Stiorage folder.  But the old path ~/Library/Safari/LocalStorage doesn't exist anymore since the system got updated to OSX 10.7.4 and Safari 6.0.  And as ever emptying the cache via the develop dro

  • Shipping Options Lock iPad web browser

    I am not sure how many of you have noticed it but when you have shipping options in your Shopping cart, after you slect one, you receive a confirmation box where you have to click on OK. Whan this box appears on iPad (I tested on iPad3 with the lates

  • Help..i got a text message with pics i need printi...

    i was telling my daughter to send pics via text message to my N97 thinking i could print them off but i cant..please help me. Solved! Go to Solution.

  • Video freezes every few seconds

    My new iPad video playback freezes every few seconds.  I have a decentish Internet speed (2.3MB) and have turned all apps off and even reset.  Any ideas?

  • Can't see my video

    I recently became a iPhone 4s user, I want to download video taken with my phone into my editing software (Pinnacle Studio) and it doesn't work? I am using windows xp sp3