SQL Server 2005 : connection refused

Hi,
I have installed SQL Server 2005 (Enterprise trial) on my PC,
then configured windows Admin Tools/ODBC DataSource.
I did not give a server name, so it picked up my computer name (OK-6400) as server name.
Created a DB called ZM there, a few tables, added some data, so it works fine through ODBC (with SqlDbx).
It never asked for port, so I assume it is 1433, am I wrong?
Now I need to connect to it through JDBC.
Tried several times through Eclipse (342) Database Development wizard.
1) With MSFT JDBC driver tried to use URL: jdbc:sqlserver://localhost:1433;databaseName=OK-6400/ZM
Tried with or without that server name:
"The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect"
2) With JTDS driver URL: jdbc:jtds:sqlserver://localhost:1433/ZM - same connection refused
or with jdbc:jtds:sqlserver://localhost:1433/ZM;instance=OK-6400 -
- "java.sql.SQLException: Unable to get information from SQL Server: localhost."
Am I doing something wrong ? Please help !
(Haven't used SQL Server before)
Using Win XP.
Thank you,
Oleg.

TheAvalanche wrote:
SQL Server 2005 by default has TCP/IP access disabled. If TCP/IP access is enabled it uses a random port number by default I doubt that. Do you have some documentation that says that?
The following link demonstrates how to change it.
[http://social.msdn.microsoft.com/forums/en-US/sqlsecurity/thread/249bd1e7-76e2-48f6-a3e0-204a532bee54/]

Similar Messages

  • Oracle 10.2 to MS-SQL Server 2005 connectivity

    Hi,
    I Have oracle10.2 installed on windows server 2003 (server2) and MS SQL server 2005 on windows server 2005(server1).
    Connectivity architecture
    1. I have created the DSN in windows odbc drivers in server2 and tested (connectivity is successful).
    2. Created Heterogeneous Services Initialization File called initbowmacnet.ora (same as DSN) made the changes as below
    #SQL SERVER DSN
    HS_FDS_CONNECT_INFO = "SERVER=10.1.1.2;DATABASE=bowmacnet"
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_RECOVERY_ACCOUNT=oracle
    HS_FDS_RECOVERY_PWD=oracle
    3. Made changes to listener.ora as below.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    BOWMACNET =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.2)(PORT = 1522))
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = orasrv1.tlisoftware.com)(PORT = 1521))
    4. Changes to tnsnames.ora file
    BOWMACNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = bowmacnet)
    (HS = OK)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = orasrv1.tlisoftware.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Unfortunately i am getting error connecting database
    C:\>lsnrctl start bowmacnet
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-AUG-2008 01:59:47
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    Log messages written to E:\oracle\product\10.2.0\db_1\network\log\bowmacnet.log
    Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=10.1.1.2)(PORT=1522))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    Listener failed to start. See the error message(s) above...
    C:\>tnsping bowmacnet
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-AUG-2
    008 02:00:33
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 10.1.1.2)(PORT = 1522))) (CONNECT_DATA = (SID = BOWMACNET)) (HS = OK))
    TNS-12541: TNS:no listener
    kindly let me know what to do. please Help me out to resolve this issue
    thanks and Regards
    Prasad N

    The listener must have the ip address/hostname of the machine where it is configured.
    According to you configuration:
    IP address 10.1.1.2 is for host orasrv1.tlisoftware.com.
    Is this correct? Why don't you use the hostname as it was done for the listener with name listener?

  • Oracle to sql server 2005 connectivity

    windows server 2003
    oracle 10.2.0.3
    hi @all
    i want to use generic connectivity to select columns from a table which is located
    in a sql server 2000 alternativ 2005
    system dsn...done
    listener entries...done
    tnsnames entries...done
    tnsping works for both entries (sqlserver 2000 dsn and 2005 dsn)
    db links works for both entries too
    but only this works
    select *
    from table@sqlserver2000
    the follwing gives errors
    (connection to sql server 2005 was established...i have monitored this with sql server profiler)
    select *
    from table@sqlserver2005
    Thu Dec 13 15:42:24 2007
    HS: Lost RPC connection to remote Agent...
    HS: ... Agent SID = (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost)(PORT=1521))(CONNECT_DATA=(SID=sqlserver2005))), NCR status = -2147385341
    any ideas why the select works for sql server 2000 but not for sql server 2005

    See DG4MSQL manual, appendix A lists all supported data types and does NOT contain uniqueidentifier as well.
    So the view on the SQL Server side is the best solution:
    SQL Server:
    select * from test_unique:
    col1
    6F93D519-5BE9-4006-8792-2EE03A5BF5CA
    create view test_unique_vw select cast(col1 as varchar(36))
    Oracle:
    select * from "test_unique_vw"@dg4msql;
    col1
    6F93D519-5BE9-4006-8792-2EE03A5BF5CA

  • SQL Server 2005 Connection Status Pending

    Hi all,
    How do I debug a SQL Server connection in ?  The status goes to pending and stays there.
    MII V12.0.4
    VMWare/Windows 2003 64bit
    SQL Server 2005 JDBC Driver 1.2, a Type 4 JDBC
    I deployed the sqljdbc.jar to MII (downloaded and deployed).
    I created a new IDBC type SQL.  I changed the following:
      JDBC Driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
      Password: abcdefg!
      Server URL:   jdbc:sqlserver://xx.xx.xx.xx:4813;databaseName=MYDB;
      User Name: my_user
    I am able to use a Java program from my PC to connect to the database using sqljdbc.jar
      Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
      String connectionUrl = "jdbc:sqlserver://xx.xx.xx.xx:4813;" +
            "databaseName=MYDB;user=my_user;password=abcdefg!;";
    I used NetWeaver Administration/Sys Mgmt/Monitoring/Logs  and didn't see anything interesting.
    I don't know what to do next and I don't have access to
    Thanks,
    --Amy Smith
    --Haworth

    Amy,
    Where is the server located? I think its the problem with some firewall blocking that port. Configure the firewall to allow the port.
    One more option you can try is to use system name instead of IP. Make an entry in the hosts file(drivers\etc) and use the server's host name and try. I had faced similar kind of problem before and this thing had worked for me.
    Regards,
    Prasanna

  • MS SQL Server 2005 connection problem?

    Hi all,
    I am a beginner in these things, so be patient please. I have established database connection with my MS SQL 2005 server with a 3rd party JDBC driver. Testing databasae connection was successfull, but there are no tables from my created database in JDeveloper. Instead of my tables there are some for me unknown tables. Can anybody help me with this problem? just ask for further information.
    Here is port, that I have used to make connection. Actually I don't know, if this port is good. I get this information from my SQL server configuration manager.
    http://b.imagehost.org/0592/Clipboard01.jpg
    -->
    http://b.imagehost.org/0592/Clipboard04.jpg
    This is my simple testing database that was created in MS SQL:
    http://b.imagehost.org/0592/Clipboard03-3.jpg
    as you can see on the picture, my database called "skusobna" includes only one table called "osoba".
    After making connection to MS SQL Server there are only these uknown tables.I don't know from where are these tables inserted, but my database with table "osoba" isn't included.
    http://b.imagehost.org/0592/Clipboard02-2.jpg
    All I want to do is to connect my database to JDeveloper that I can see my tables created in MS SQL.
    Thanks...

    Here is port, that I have used to make connection. Actually I don't know, if this port is good. I get this information from my SQL server configuration manager.
    http://b.imagehost.org/0592/Clipboard01.jpg
    The port is correct.
    -->
    http://b.imagehost.org/0592/Clipboard04.jpg
    The connection url is correct.
    This is my simple testing database that was created in MS SQL:
    http://b.imagehost.org/0592/Clipboard03-3.jpg
    as you can see on the picture, my database called "skusobna" includes only one table called "osoba".
    The database is correct.
    After making connection to MS SQL Server there are only these uknown tables.I don't know from where are these tables inserted, but my database with table "osoba" isn't included.
    http://b.imagehost.org/0592/Clipboard02-2.jpg
    Click on the dbo node for the osoba table.

  • Connection refused in SQL Server 2005

    I have just installed SQL Server 2005 Developer Edition, and
    I still have SQL Server 7 running on port 1433.
    I have many SQL7 databases connected to CF7.0.2
    When I try to connect to a new database that I can read and
    write to in SQL2005, I get a connection refused error.
    I'm not sure what port to connect to as SQL2005 port shows 0
    which apparently means dynamic port allocation.
    When I try port 1434 I get connection refused.
    I have user name set to sa (and this is enabled in SQL2005)
    and no password (windows authentication). Same result if user name
    is blank.
    Anyone got any idea what these settings should be?
    Doug

    I have now switched off dynamic port allocation and changed
    the port to 1435 and I think I now connect to SQL Server 2005, but
    I now get the error:
    The user is not associated with a trusted SQL Server
    connection.
    I have tried using sa and tried setting up another user name,
    but cannot get past this error.
    Any help would be appreciated.
    Doug

  • Sql server 2005 and jsp connectivity

    hello everyone....am new to JSP...:-)
    i use apache tomcat server 4.1.37,SQL SERVER 2005(Studio express),dreamweaver cs3..
    this is my first page...
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="new2.jsp">
    <label>
    Username
    <input type="text" name="text1" id="text1" />
    </label>
    <p>
    <label>
    Password
    <input type="text" name="text2" id="text2" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="button1" id="button1" value="Submit" />
    </label>
    </p>
    </form>
    </body>
    </html>
    this runs fine..coz there are only HTML codes...now the problem part...
    <%@page contentType="text/html" import="com.microsoft.sqlserver.jdbc.*, java.sql.*"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>
    <% String user = request.getParameter("text1");
    String pass = request.getParameter("text2");
    Connection con = null;
    try {
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=webpage;user=Administrator");
    Statement stat=con.createStatement();
         ResultSet res =stat.executeQuery("select * from login");
    boolean l = false;
         while(res.next())
              if (user.equals(res.getString(2)) && pass.equals(res.getString(3)))
    l = true;
    if (l)
    out.println("<p>Welcome " + user + "</p>");
    else
    out.println("<p>Login Failed</p>" );
    con.close();
    } catch (ClassNotFoundException ex) {
    System.out.println("Exception: " + ex);
    catch (SQLException ex) {
    //Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("Exception: " + ex);
    %>
    </body>
    </html>
    when i run this in the browser...i get JSP Pages displayed(but not the welcome...or login failed..)..which is under the html tag...
    but the tomcat server gives an error:
    Exception:com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed.java.net.ConnectException:connection refused.connect.
    Some of my questions...
    1)apache tomcat runs on port :8080 and in this code i use port :1433.Does this not have any bearing?
    when i change 1433 to 8080..it gives TDS prelogin response is incomplete.target server must be sql server 2000 or later.
    2)i use user=Administrator but when i go to Sql server management studio->object explorer->right-click->view connection properties..it gives user name as NEW-D348F33DAD2\Administrator...but if I use this it gives an error pointing to the forward slash(\).So what should be used?
    P.S. i have installed the jdbc driver and the database "webpage" has been created!

    anand_chhetri wrote:
    hello everyone....am new to JSP...:-)
    i use apache tomcat server 4.1.37,SQL SERVER 2005(Studio express),dreamweaver cs3..Tomcat is up to version 6; why are you using such an old one?
    Dreamweaver is irrelevant.
    Which JDK?
    >
    this is my first page...
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="new2.jsp">
    <label>
    Username
    <input type="text" name="text1" id="text1" />
    </label>
    <p>
    <label>
    Password
    <input type="text" name="text2" id="text2" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="button1" id="button1" value="Submit" />
    </label>
    </p>
    </form>
    </body>
    </html>
    this runs fine..coz there are only HTML codes...now the problem part...OK.
    You don't need to import the Microsoft SQL server JDBC.
    <%@page contentType="text/html" import="com.microsoft.sqlserver.jdbc.*, java.sql.*"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>Where do you think these come from? This page must be your "new2.jsp"
    <% String user = request.getParameter("text1");
    String pass = request.getParameter("text2");
    Connection con = null;
    try {
    Since you didn't get a ClassNotFoundException here, I'll assume that you got the JAR into the CLASSPATH.
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");Your app logs in as admin? With no password? Very bad.
    con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=webpage;user=Administrator");
    Statement stat=con.createStatement();
         ResultSet res =stat.executeQuery("select * from login");
    boolean l = false;
         while(res.next())
              if (user.equals(res.getString(2)) && pass.equals(res.getString(3)))
    l = true;
    if (l)
    out.println("<p>Welcome " + user + "</p>");
    else
    out.println("<p>Login Failed</p>" );
    con.close();
    } catch (ClassNotFoundException ex) {
    System.out.println("Exception: " + ex);
    catch (SQLException ex) {
    //Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("Exception: " + ex);
    %>
    </body>
    </html>
    when i run this in the browser...i get JSP Pages displayed(but not the welcome...or login failed..)..which is under the html tag...
    but the tomcat server gives an error:
    Exception:com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed.java.net.ConnectException:connection refused.connect.Bad connection URL. Can you write a simple class that connects without Tomcat, one that you can run on the command line?
    Some of my questions...
    1)apache tomcat runs on port :8080 and in this code i use port :1433.Does this not have any bearing?No.
    when i change 1433 to 8080..it gives TDS prelogin response is incomplete.target server must be sql server 2000 or later.No - Tomcat listens on 8080, SQL Server listens on 1433. You need both.
    2)i use user=Administrator but when i go to Sql server management studio->object explorer->right-click->view connection properties..it gives user name as NEW-D348F33DAD2\Administrator...but if I use this it gives an error pointing to the forward slash(\).So what should be used?Look at the driver docs to see how to add a password.
    P.S. i have installed the jdbc driver and the database "webpage" has been created!What does "installed" mean? The JARs should be in Tomcat's common/lib directory.
    %

  • Connectivity with sql server 2005

    i am trying to connect sql server 2005 through jdbc.i am using microsoft sql server 2005 type 4 driver.i am using the following code -
    import java.sql.*;
    public class SqlConnectivity {
         public static void main(String[] args) {
    String ConnectionUrl="jdbc:sqlserver://localhost:1433;databaseName=oji;integratedSecurity=true; ";     
              System.out.println(connectionUrl);
              Connection con = null;
              Statement stmt = null;
              ResultSet rs = null;
         try {
              Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
              con = DriverManager.getConnection(connectionUrl);
              String SQL = "SELECT * FROM student";
              stmt = con.createStatement();
              rs = stmt.executeQuery(SQL);
              while (rs.next()) {
                   System.out.println(rs.getString(1) + " " + rs.getString(2));
              catch (Exception e) {
                   e.printStackTrace();
              finally {
                   if (rs != null) try { rs.close(); } catch(Exception e) {}
                   if (stmt != null) try { stmt.close(); } catch(Exception e) {}
                   if (con != null) try { con.close(); } catch(Exception e) {}
    and i am getting the following error ::
    java.net.ConnectException:Connection refused :connect.
    please tell me how can i remove this error??

    i am getting the following error::
    com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the ho
    st has failed. java.net.ConnectException: Connection refused: connect
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(U
    nknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknow
    n Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover
    (Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Sour
    ce)
    at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at SqlConnectivity.main(SqlConnectivity.java:18)

  • Required Microsoft Sql Server 2005 Server Roles for JDBC Connection

    Hi!
    I have developed a database in MS SQL Server 2005, to which I would require only bulkadmin server role from an external java application, because I only need to update rows, insert values or use select queries in the database.
    The problem is that, using either the Microsoft JDBC Driver 1.1 or the Java JDBC ODBC Driver and the Windows XP Data Base (ODBC) configurations, I need a user with sysadmin server role inside Sql Server, otherwise JDBC won't connect to the database using the selected user. Even if I leave the sql login with setupadmin or any server role lower than sysadmin, the connection is refused.
    Is there no way to connect using JDBC to MS Sql Server 2005 other than granting the connected user sysadmin rights? My code looks as follows:
    String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    String url = "jdbc:sqlserver://FIREBLADE\\SQLEXPRESS";
    String user = "username";
    String password = "password$$";
    Connection conn;
    Class.forName(driver);
    conn = DriverManager.getConnection(url,user,password);
    if (conn != null)
    System.out.println("\nSQL Server Connection established ...\n");
    I have heard that Java JDBC connections to Microsoft require high-level access, and if that's the case I would rather migrate my database to MySql.
    Any informed answer is more than welcome. Thanks for reading my post!

    Well i personally prefer usage of open source MS SQL SERVER 2k jdbc driver called jtds instead of the driver provided by MS themselves(which is proproteriry) as i had similar problem which i personally encountered when i was using it.
    go through the below link for further info.
    http://jtds.sourceforge.net/
    REGARDS,
    RaHuL

  • Unable to connect SQL server 2005 databse with JSF applications !

    Hello guys!
    Help me out to connect SQL server 2005 Databse with JSF applications using JDBC-ODBC bridge. I'm working with Netbeans 6.1 IDE.
    I tried for the basic applications but instead got this error:
    "unable to deploy jdbc drivers to the <project>domain/lib"
    Please help me out with working sample codes that connects MS SQL server 2005 DB with JSF!!
    Thank you guys!

    1) don't use the bridge driver
    2) don't do database access from JSF
    3) learn how to use your application server
    4) learn how to use your IDE

  • SQL Server 2005 replaced with SQL Server 2014 trying to connect front end Access as guest (read only ODBC)

    We have replaced a SQL Server 2005 with a SQL Server 2014 (new physical server.)  Have the new server set up to use SQL Server login OR Windows user login. Had old server connecting (for a particular DB) to front end Access (2010 or 2013) as guest for
    anyone logged into the Windows NT Network with a read only ODBC connection. Have the DB in the new server set to include guest as db_datareader (with only SELECT permission for the securables of each table and view being linked) but when any Windows user not
    specifically listed as a SQL DB user tries to use the front end they get an error of:
    Microsoft SQL Server Login
    Connection failed:
    SQL State: '28000'
    SQL Server Error: 18456
    [Microsoft][OCBC SQL Server Driver][SQL Server] Login failed for user {domain\user}.
    After closing that pop-up window a server login window appears. Of course, since the guest user is not specifically listed as a user in the DB that fails also. It seems like there should be a very simple solution to this, but I can't seem to find it. I want
    to allow anyone logged in on the Windows system (locally) to be able to open the MS Access file (on their work station machine) and run their own (read only; select) queries on the SQL Server database. Any suggestions?
    Thanks a billion in advance ----

    Thanks for the response Olaf. I have now spent weeks researching this. I realize that using the guest account in most situations is not advised. As mentioned, I have restricted the guest account to allow the db_datareader role only, and have explicitly denied
    all other roles, as well as allowing select only, and still have no access for the guest account.
    The suggested fix in the second link you provided, of using Windows groups is not plausible for my situation either. We are a scientific field research institution, with a few long term users and lots of users that may have Windows accounts for a few months,
    and then they are gone. It would be a nightmare for the network tech to try to keep a group account up to date, and we need to give access (read only, of course) to anyone logged into the system. Realize that the ONLY access of any kind to this database is
    thru MS Access ACCDB, using a (by default) read only OCDB connection.
    This type of access is used particularly because researchers need to be able to set up their own queries, and the MS Access query interface is particularly convenient for people who are not themselves SQL experts, yet are trying to get some very advanced
    levels of output. Putting the database online is not practical because then we are back to the need for a comprehensive query interface, and just picking up general subsets of the data online (from a basic web page search feature) would be out of the question,
    since the result set would involve hundreds of thousands if not millions of records.
    So - that said - what exactly would you suggest, assuming we don't have the funds to buy a whole new system, and have spent plenty of money with Microsoft's Enterprise level MS Office so that all work stations have MS Access, and Microsoft's SQL Server,
    as well as running our network on Microsoft's network software.

  • "Unable to load URL" - SQL Server 2005 DB Web Service Connection

    Hi ,
    I am using XCelsius version 5.0.0.99 to create dashboards connecting to SQL Server 2005.
    Find below the details of the steps -
    1. Created a web service within SQL Server 2005 database.
    2. Copied the WSDL URL.
    3. In XCelsius 2008 -> Data Manager -> Web Service Connection, pasted the URL in the WSDL URL input box and clicked "Import" to import the methods. At this point I am getting "Unable to load URL" .
    Am I missing any step ?
    Any suggestion would be highly appreciated.
    Note : I have tested the web service by using it in a ASP.Net project and works fine.
    Thanks
    Chitra

    Hi,
    Error :unable to Load URL occurs" because Crystal xcelsius only support single schema web service created from Query as a web service and Flynet tool available in xcelsius 2008.
    The reason:
    All the web service create from Sql 2005 ,PHP script produced multiple scehma web service and crystal xcelsius only support single schema web service which can be created from Query as a web service or Flynet.
    Please revert in case of any queries.
    Regards
    Kekti Fadnavis

  • Error"Failed to open the connection"  - Named Instance of SQL Server 2005

    "Failed to open the connection" error, when connecting to the Named Instance of SQL Server 2005
    The report is throwing error, when changing the logon information dynamically through C#.
    Code
         string reportPath = @"D:\NET\TestReport\TestReport.rpt";
         ReportDocument reportDocument = new ReportDocument();
         reportDocument.Load(reportPath);
         foreach(CrystalDecisions.CrystalReports.Engine.Table table in tables)
              TableLogOnInfo tableLogonInfo = table.LogOnInfo;                         
              tableLogonInfo.ConnectionInfo.ServerName = @"TestServer\Instance1";  //Connnecting to Named instance of SQL Server 2005
              tableLogonInfo.ConnectionInfo.UserID = "sa";
              tableLogonInfo.ConnectionInfo.Password = "password";
              tableLogonInfo.ConnectionInfo.DatabaseName = "TEST_DB";
              table.ApplyLogOnInfo(tableLogonInfo);     
         crystalReportViewer1.ReportSource = reportDocument;
    Error Message
         Failed to open the connection.
         Failed to open the connection.
         C:\DOCUME1\PUGALE1\LOCALS~1\Temp\{DF9593A5-5C80-4CBC-ABC3-EC4EF204A7EB}.rpt
    The error is occuring only whenever i am connecting to the Named Instance of SQL Server 2005.
    Thanks in Advance
    Edited by: pugalendran p on Feb 2, 2009 10:32 AM
    Edited by: pugalendran p on Feb 2, 2009 10:43 AM

    Hi,
    Following solution might help you to resolve the issue.
    Solution1:
    Issue happens because universe connection to the Database is not responding and the Data Source Name is not configured to write SQL Server 2005 database.
    Resolution
    Created new DSN connection under SYSTEM DSN to SQL Server 2005 Database.
    Import the universe from the designer.
    Go to File->Parameters.
    Edit Connection.
    On the Database Middleware Page expand SQl Server 2005->Select SQL Server 2005 driver.
    Change the DSN to new DSN connection
    Test the connection.
    Save the Universe and Export it to the repository.
    Solution2:
    I am taking Oracle as an example over here.
    This can be caused when the SQLNET.ora is located in a remote location using mapped drives.
    Resolution
    To resolve,
    check the registry [HKLM\SOFTWARE\ORACLE] you should see a folder called HOME0
    look for any paths that contain a mapped drive partition
    Change the mapped drive letter to a UNC path (
    server\folder)
    Open a command prompt and do a tnsping using the tnsname and verify the location of the SQLNET.ora or TNSNAMES.ora
    If the path is not updated to the new path
    Reboot the server
    Regards,
    Sarbhjeet Kaur

  • Connect to SQL server 2005 in web dynpro java

    Hi,
    I am new to web dynpro. I want to coonect to SQL server 2005 server from my simple application.
    For that what and all the prerequisetion and what and all the steps to follow.
    I have created a database and the table too. I have created the application too. But i am not able to connect to sql. what might be the problem. I tried to create the data source in visual administration. and written code in the view like this.
    try {
                                                   String userName = "jktuser";
                   String password = "jkt12345";
                   String url ="jdbc:microsoft:sqlserver://jktr3:50000;database=student";
                   Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver ").newInstance();
                   Connection con =DriverManager.getConnection(url, userName, password);
                   System.out.println("Database connection established");
                   Statement st = con.createStatement();
                   String str = "select * from studentdata";
                   ResultSet rs = st.executeQuery(str);
                   while (rs.next()) {
                   String str1 = rs.getString(1);
                   wdComponentAPI.getMessageManager().reportSuccess(str1);
                                                    String str2 = rs.getString(2);
                   wdComponentAPI.getMessageManager().reportSuccess(str2);     
                   wdComponentAPI.getMessageManager().reportSuccess("sukces");
              } catch (Exception e) {
                   wdComponentAPI.getMessageManager().reportWarning(e.toString());
    And i am getting this error
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]End of stream was detected on a read.
    Plz any one help me in this.
    Regards,
    H.V.Swathi
    Edited by: H.V Swathi on Nov 21, 2008 6:46 AM
    Edited by: H.V Swathi on Nov 21, 2008 7:16 AM
    Edited by: H.V Swathi on Nov 21, 2008 7:17 AM

    Hi,
    I have tried all the steps to configure the remote connection but it is giving an error that says,
    "Computer localhost does not exist on the network, or the computer cannot be configured remotely. Verify that the remote computer has the required Windows Management Instrumentation components and then try again. (SQLSAC)
    ADDITIONAL INFORMATION:
    An exception occurred in SMO while trying to manage a service. (Microsoft.SqlServer.Smo)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.InnerWmiException&LinkId=20476
    Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&LinkId=20476
    The operation could not be completed. (WinMgmt)
    BUTTONS:
    OK
    Please i welcome your valuable inputs.
    Thanks & Regards
    Swathi

  • DB Connect from BW on Oracle to MS SQL Server 2005

    Hello,
    I am having issues replicating Meta-Data from SQL server databases via DBCONNECT to SAP BW.
    For instance we have the CCM DB and the Siebel DB.  We can transfer meta-data from CCM with no problem (SQL Server 2000) but we cannot transfer meta-data from Siebel (SQL Server2005).
    Our SAP BW is system is on an Oracle database.
    CCM is on OS Win 2003. SQL 2000 SP4.
    Siebel is on Win 2003 Server Enterprise 5.2 and SQL Server 2005 SP2.
    I already have the dbsl for SQL server installed in the BW system. When I do a Connection Check of the source systems in RSA1, it says "Source system connection OK".
    Any help will be highly appreciated.
    Thanks,
    Ajay

    Hi,
    I don't think the 32 vs. 64 bit is the issue. Have you tried checking OSS note: 512739. It describes the prerequisites for accessing MS SQLServer via DB Connect. Normally problems occurs due to unsupported data types being used in SQLServer - in such cases you have to create views in the source system and then use these views instead of the actual database tables. In the view you can perform the necessary data type conversion.
    Hth,
    Jacob

Maybe you are looking for

  • Oracle 11g/R2 Query Result Cache - Incremental Update

    Hi, In Oracle 11g/R2, I created replica of HR.Employees table & executed the following statement (+Although using SUM() function is non-logical in this case, but just testifying the result+) STEP - 1 SELECT      /+ RESULT_CACHE */ employee_id, first_

  • Problem with Schema Definitions for Persintence Units

    Hello, Is there any way to explicitly specify SCHEMA types for the persistence units which are under use? Details: In our SOA application, we have to use two different data sources within a single business component. For that I have created my persin

  • Hashtables and Objects, ugly.

    Let's see... I'll give you everything, then highlight problems. package Analyze; import java.io.*; import java.util.*; public class Work {     public static int Operate(String directory, String filename, String directory2, String filename2, String ex

  • Hyperion Performance Scorecard -   generatecube.bat

    Hi, I am using Hyperion Performance Scorecard 11.1.1.1. I have a problem with generateCube.bat follows... C:\Oracle\Middleware\user_projects\epmsystem1\HPS\hpsfiles\bin\generate_cube>GenerateCube.bat Exception in thread "main" java.lang.NoClassDefFou

  • Premiere wants to close during the burning of a DVD

    After having had much problems with Premiere 8 (slow and many freeze ups), I went to upgrade my computer and purchased Premiere 9, hoping I would have a smooth ride. WRONG!!! Speed has increased slightly but now I have the problem that the program ne