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

Similar Messages

  • PeopleTools 8.49 PeopleSoft Database Cannot Connect with MS SQL Server 2005

    Folks,
    Hello. I am working on PeopleSoft PIA. My system is Windows Server 2003, MS SQL Server Express 2005 Standard, PeopleTools 8.49. I am setting up PeopleSoft Database \PsMpDbInstall\setup.exe and got the errors as follows:
    Error: Setup fails to connect to SQL Server. The default settings SQL Server does not allow remote connection.
    Then I type in "sqlcmd" in Command Prompt and got the same error as follows:
    Name Pipe Provider: Could not open a connection to SQL Server. MS SQL Native Client: the default settings SQL Server does not allow remote connection.
    In order to fix SQL Server 2005 remote connection problem, I have done the 3 steps as follows:
    Step 1: In SQL Server Surface Area Connection, enable local and remote connection, TCP/IP and Name Pipes, SQL Server browser Startup type "automatic" and status "running".
    Step 2: Create exception for SQL Server 2005 and SQL Server browser Service in Windows Firewall.
    Step 3: Add the default SQL Server Port 1433 into Windows Firewall.
    But the above 3 steps cannot resolve SQL Server Express 2005 remote connection problem. Can any folks help to resolve this problem ?
    Thanks.

    Folks,
    Management Studio can connect with SQL Server 2005 successfully.
    I have turned off Windows Server 2003 firewall completely. But "sqlcmd" in Command Prompt still connect with SQL Server 2005 because its remote connection is not allowed.
    Is the "not allow remote connection" problem caused by Windows Firewall or SQL Server 2005 itself ?
    Thanks.

  • Connection with Ms sql server 2005

    Hi
    I will be glad if someone help me.
    I want to make a connection with sql server 2005, I have tried with many drivers but I failed
    This is my simple code
    import java.sql.*;
    public class Test2 {
    public static void  main(String args [])
    try
       Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://MOON-B52CC77905:1433\\MARTIN/emp","usr","pwd");
    catch(ClassNotFoundException cnfe)
    System.err.println(cnfe);
    catch (SQLException sqle)
    System.err.println(sqle);
        }getting two common errors:-
    1/ some Attempts with sqljdbc.jar are generating *[ no suitable Driver ]* error.
    C:\Program Files\Java\jdk1.5.0_22\bin>java -cp sqljdbc.jar;.; Test2
    java.sql.SQLException: No suitable driver2/other attempts with sqljdbc4.jar generates the following error
    C:\Program Files\Java\jdk1.5.0_22\bin>java -cp sqljdbc4.jar;.; Test2
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
    umber in .class file
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at Test2.main(Test2.java:23)

    VANPERSIE wrote:
    ok but
    the problem is that it's required from me to do a project on java 5.
    in addiition to I don't have java6
    please help.
    Edited by: VANPERSIE on Apr 12, 2011 1:14 AMThen don't use sqljdbc4.jar.
    If you had done a simple Google and looked it up on Microsofts site you would have found [URL http://msdn.microsoft.com/en-us/library/ms378422.aspx]this, which explains that it needs 1.6 to run.
    ETA: Also you might have found [URL http://msdn.microsoft.com/en-us/library/ms378526.aspx]this, which explains what the connection string should look like.
    jdbc:sqlserver:<etc etc>
    Edited by: Tolls on 12-Apr-2011 01:08
    Edited by: Tolls on 12-Apr-2011 01:10

  • JDBC Connection Error with Sql Server 2005

    Hi
    I am trying to connect the Sql Server 2005 thru jdbc but I am getting the following error.
    SQLException: The TCP/IP connection to the host usselect.com/x-logs, port 1433 has failed. Error: usselect.com/x-logs. Please verify the connection properties and check that a SQL Server instance is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.
    I am using sqljdbc4.jar (driver)
    import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.SQLException; public class testdb {     public static void main(String s[]){         String userid="xxxx", password = "xxxxx";         String url = "jdbc:sqlserver://usselect.com/x-logs:1433";         Connection con = null;         try {             Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");         }catch(java.lang.ClassNotFoundException e) {             System.err.print("ClassNotFoundException: ");             System.err.println(e.getMessage());         }         try {             con = DriverManager.getConnection(url,userid,password);         } catch(SQLException ex) {             System.err.println("SQLException: " + ex.getMessage());         }         if(con!= null){             System.out.println("Got Connection."+con);         }else{             System.out.println("Could not Get Connection");         }     } }
    Please advise.

    srinu1198 wrote:
    By using Jdbc thin driver are we able to connect to mssql 2005 through windows authentication or not? "thin driver" refers to a specific Oracle driver.
    Far as I know both the current (not older) MS driver supports windows auth. Certianly the jTDS driver does.
    If yes what is the procedure. One starts by reading the docs. If necessary then one googles.

  • Connect jdeveloper with sql server 2005

    hello, I don't speak english very well, how I do to connect sql server 2005 with jdeveloper using create connections without username and password, using windows autentication. I downloaded driver jdbc from microsoft pages, when I create the connections and click test connections, the conecctions failed because I don't have username and pass in sql server. Thanks and sorry for my english. Regards

    When the SQL Server is installed a password is specified for the 'sa' user, or a new SQL Server user may also be created.
    Please refer
    http://www.devx.com/dbzone/Article/33681

  • Connect WDJ to Sql server 2005

    Dear Experts,
    I need to connect, SQL server 2005 unsing WD java, can any one tell me what steps i need  to do  on WDJ side to established the connection.
    Also the what all jar files required to connect SQL 2005.
    Thank
    AB

    Hi Anup,
    If you are using NWDS 7.0 version, you have to create a Datasource in visual admin.
    If you are using CE 7.1 version, you have to create a Datasource in NWA--Configuration Management->Infrastructure->Application Resources.
    Step by step procedure how to create a Datasource in NWDS 7.0 and CE7.1 is given in this PDF link.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40db1ed9-b7c2-2b10-66b8-84f6954b6d2d?quicklink=index&overridelayout=true
    MYSQL Server 2005
    Driver/jar which you have to use --> sqljdbc.jar
    Driver class --> com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection URL --> jdbc:sqlserver://<host_name>:<port>;database=<db_name>
    Hope this helps you..
    Regards,
    Saleem Mohammad

  • Connecting to the SQL server 2005

    Hi
    iam new to the web dynpro application.Iam trying to connect web dynpro application to the SQL server 2005.Will any one please help me how to proceed.
    Please provide the steps for me.
    Also please provide the code for me.
    Regards
    Sushma

    tx

  • Cann't connect to MS SQL Server 2005 !!!

    Error:
    -Network error IOException: Connection refused: connect
    IDEConnections.xml :
    <URL>jdbc:jtds:sqlserver://192.168.211.1:1438/master</URL>

    Check your SQL Server port number. This error comes up, when using the wrong port number in the db url.

  • Missing SQL Developer functions when connecting to MS SQL Server 2005

    Hi all,
    I've connected SQL Developer to a ms sql server db. Now I can't use the functions from SQL Developer like
    - Drag&Drop tables to the sql-sheet,
    - autocompletition of attributes (Strg+Space).
    Is this function not supported or do I have to change some preferences?
    THX Steve

    Unfortunately most of the advanced functions of SQL Developer are supported only for oracle databases, so on ms sql, or almost anything else you can do little more than browse data.

  • JSTL = Problem in connecting to MS SQL Server 2005

    hi....i really need some help here
    I am having touble in connecting MS SQL 2005 using odbc driver. The code is as below,
    <sql:setDataSource var="datasource" driver="sun.jdbc.odbc.JdbcOdbcDriver" url="jdbc:odbc:eleavedao" user="" password=""/>
    <sql:query var="count" dataSource="${datasource}">
    SELECT * FROM hr_leave_entry where userId = ?
    <sql:param value="${userid}"/>
    </sql:query>
    <c:set var="maxrow" value="${count.rowCount}" />
    From the code, i tried printing out some output into the interface. I realised that it printed out the query statement. Is there anything that i need to set other than set the odbc?
    Your help is greatly appreciated. Thank You!
    -Regards-

    Have you imported the JSTL sql tag library
    Are the <sql> tags still on the page as well as the query?

  • Using INET and DATADIRECT JDBC Drivers to connect MS SQL Server 2005

    Hi,
    I have reqmt to connect SQL server 2005 from ODI using INET and DATADIRECT JDBC drivers to test Local characters Encoding.
    In my case, Oracle is the Source and SQL Server 2005 is the Target. I have problem while interfacing Local Characters to SQL Server 2005 using com.microsoft.sqlserver.jdbc.SQLServerDriver driver( which is default driver provided by ODI). To fix local charatcters issue, I want to try using INET or DATADIRECT JDBC drivers. Please provide me the below of any one has used these Drivers to connect SQL Server 2005 from ODI.
    We are trying to connect to MS SQL Server 2005 from ODI Topology Mgr using INET and DATADIRECT JDBC Drivers. We need the following info to connect to the same,
    --> What are list of the drivers need to be placed in OraHome_1\oracledi\drivers path?
    --> Where can i get the latest driver versions.
    --> What are the JDBC DRIVER and URL formats.
    --> Any other additional configurations?
    --> Does these drivers support interfacing of Local character data.
    Please respond...
    Regards,
    Anil

    Check this article [HOW TO: SQL & JAVA|http://www.shahriarnk.com/Shahriar-N-K-Research-Embedding-SQL-in-C-Sharp-Java.html] for details on how to connect to SQL Server database from C#.NET database applications as well as Java database applications. It also describes how to pass embedded SQL queries (SELECT, INSERT, UPDATE, DELETE), calling stored procedures, pass parameters etc.

  • ODBC Drivers for SQL Server 2005 on AIX for OWB connect

    Hi All -
    I have a problem whereby I am trying to connect OWB with SQL Server 2005. The problem statement follows: -
    Infrastructure: -
    OWB Server installed on AIX
    Oracle Installed on AIX
    SQL Server 2005 source on Windows
    OWB Client on windows XP
    My problem is: -
    I am trying to connect OWB with SQL Server 2005 for which I have to create heterogenous source entry in Oracle home. But AIX box does not have any ODBC drivers installed and hence I can not configure a DSN on the same. Can any one suggest where can I get these drivers and their installation steps.
    Thanks in advance!
    Arun
    Edited by: Uni.... on Jun 2, 2009 10:50 PM

    I was not able to find DG4ODBC anywhere.
    Somehow I managed to get a copy of Data Drivers from Data Direct and configured ODBC.INI file as below: -
    ODBC Data Sources
    DB2 Wire Protocol=DataDirect 6.0 DB2 Wire Protocol
    Informix Wire Protocol=DataDirect 6.0 Informix Wire Protocol
    Oracle Wire Protocol=DataDirect 6.0 Oracle Wire Protocol
    Sybase Wire Protocol=DataDirect 6.0 Sybase Wire Protocol
    Teradata=DataDirect 6.0 Teradata
    SQLServer Wire Protocol=DataDirect 6.0 SQL Server Wire Protocol
    MySQL Wire Protocol=DataDirect 6.0 MySQL Wire Protocol
    PostgreSQL Wire Protocol=DataDirect 6.0 PostgreSQL Wire Protocol
    Greenplum Wire Protocol=DataDirect 6.0 Greenplum Wire Protocol
    ODBC
    IANAAppCodePage=4
    InstallDir=/u01/app/ODBC
    Trace=0
    TraceFile=odbctrace.out
    TraceDll=/u01/app/ODBC/lib/odbctrac.so
    AMS
    Driver=/u01/app/ODBC/lib/ddmsss24.so
    Description=DataDirect 6.0 SQL Server Wire Protocol
    Address=10.240.20.154,1433
    Database=AMS
    My TNSName.Ora file is shown below: -
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/10/db/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DWHDEV =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = aixdevdb2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DWHDEV)
    AMS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.240.20.154)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = AMS)
    (HS = OK)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Listener.Ora file is as below: -
    # listener.ora Network Configuration File: /u01/app/oracle/product/10/db/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10/db)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = AMS)
    (ORACLE_HOME = /u01/app/oracle/product/10/db)
    (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = aixdevdb2)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    INITHSODBC file for this source is initAMS.ora is configured as: -
    HS_FDS_CONNECT_INFO = AMS
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME = /u01/app/ODBC/log.log
    HS_DB_NAME = MSSQL
    HS_FDS_SHAREABLE_NAME = /u01/app/ODBC/lib/odbc.so
    # ODBC specific environment variables
    #set ODBCINI= /u01/app/ODBC/odbc.ini
    I have tested the DSN created in ODBC.INI file using example appplication that comes by default with datadirect drivers and that is connecting to database and fetching data as per query supplied, but when I am trying to create connecting from OWB to SQL Server it is failing with following error: -
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from OWB_188
    Even database link is giving same error message.
    I have followed all the steps which are necessary to configure Heterogeneous connectiviyt including restarting listener, but no luck.
    Any comments

  • Can't see data in data tab - sql server 2005

    hello,
    i am connected to a sql server 2005 database (with jtds driver), the connection is ok, i see the tables but i can't see data in data tab.
    i have an error : incorrect syntax
    somebody can help me ?
    thank's in advance
    alex

    definitely. I was going to say, make sure you have the privileges to read data.
    From Microsoft SQL Server 2000 on, it is recommended that you are a member of the db_datareader - so that data in the database can be read
    Barry

  • Oracle InstantClient with Linked Server in Sql Server 2005

    We are trying to connect ORACLE server from sql server 2005 using Linked Server Feature in SqlServer 2005
    Generally Oracle Client software is needed for this activity in the sql server machine.
    Can we use "Oracle InstantClient" instead of "Oracle Client Software" to connect ORACLE using Linked Servers ?
    Please give us your views, any existing reports similar to this activity
    Thanks & Regards,
    Palani

    Thanks for your reply
    I agree that Oracle Client software is used to connect oracle from SQL SERVER 2005.
    But my doubt is can we use Oracle InstantClient instead of Oracle Client software to connect oracle from SQL SERVER 2005
    with respect to Oracle Instant Client - I would like to know the development steps (Not the installation steps of Oracle Instant Client in windows machine) to connect ORACLE server.
    Thanks & Regards,
    Palani

  • MS-SQL Server 2005 SP1 vs MS-SQL Native Client 2008 or 2012

    Hello,
    I woud like to know if it's possible to use on a computer Windows Seven, the MS-SQL Native Client 2008 or 2012, and connect it on a MS-SQL Server 2005 (under Windows 2003 enterprise).
    Regards,

    Hello,
    Yes, the SQL Server Native client is backward compatible, means you can use Client 2008 or higher to connect to a SQL Server 2005.
    With some limitations the client is also forward compatible, means you can use a client 2005 to connect to SQL Server 2008 and higher; but the client isn't aware of new server features.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for