Add a MS SQL data source error

I just installed CF 10 on my Win 7 Home machine and tried to add a MS SQL Server data source and got following error.

need to install a driver to add MS SQL Server as a data source?

I'm able to add the MySQL database of MS SQL Server.

Your information and help is much appreciated,

Kind regards

iccsi,

Connection verification failed for data source: MyServer

java.sql.SQLNonTransientConnectionException: error [Macromedia] [SQLServer JDBC Driver] establishing socket to host and port: MyServer:1433. Reason: Connection refused: connect

The root cause was that: java.sql.SQLNonTransientConnectionException: error [Macromedia] [SQLServer JDBC Driver] establishing socket to host and port: MyServer:1433. Reason: Connection refused: connect

I got it working now.

Thanks for help and information.

Kind regards

Iccsi,

Tags: ColdFusion

Similar Questions

  • Microsoft SQL data source connection error

    I try to connect to a MS SQL database and continue to receive a connection refused error. the error is:

    Connection verification failed for data source: hbsdb
    java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] error socket creation. Connection refused: connect
    The root cause was that: java.sql.SQLException: error [Macromedia] [SQLServer JDBC Driver] socket creation. Connection refused: connect

    I'm new to MS SQL and do not know if I put it in place correctly. My settings for the DS are as follows:

    Server: localhost port 1433 (if I change (local) takes the time out)

    I have the DS, Database, login, password everywhere. The password and the name is for cold fusion to be able to execute queries and correct stuff? It is not a defined password to access the database? The database has been imported from a system to the top and is located at ServerName\Databases\DB_Name. I need to plug the DB to MS SQL Server somehow? I can
    display database tables, columns, but not connect. any help would be greatly appreciated.

    I am running Microsoft SQL Server 2005 180 assessment, Windows XP SP2, ColdFusion MX 7.1 Developers Edition.

    Thank you
    Drew

    Solved the problem, my username for any reason any was not the owner of the db, he switched to the top and it works fine... Thanks for the help guys.

  • Any SQL data source in Essbase 11 EAS on Linux - help ODBC

    Hi all

    Oracle Application Server 32-bit 10.1.3.1, Hyperion 11.1.1.3, Oracle 10.2.0.4 64-bit and Oracle Enterprise Linux 64-bit 32-bit

    In the data preparation Editor, I am trying to create a rules file. However, when I go to file > open SQL and enter my server/application information, an error is raised: there is no data source is defined. Please create one to continue.

    Below is the content of my odbc.ini. When I launch the executable demoodbc (after hyperion/products/Essbase/eis/server/is.sh.) and connect to the db using my name of user and password, the connection succeeds and the query is executed successfully. But for some reason, EE is not able to use the same odbc connection.

    I don't know where to look in the determination of this question. None of the sources of data that were originally in odbc.ini (different connections of the wires, etc.) appears in the SQL open either, so...?

    Where should I start looking on that?

    Thank you!

    [ODBC data sources]
    kcdbnk = KCDBNK on ORCL102

    [kcdbnk]
    QEWSD = 40161
    Driver=/app/Oracle/product/Hyperion/common/ODBC/Merant/5.2/lib/ARora22.so
    Description = KCDBNK on ORCL102
    AlternateServers =
    ApplicationUsingThreads = 1
    ArraySize = 60000
    CachedCursorLimit = 32
    CachedDescLimit = 0
    CatalogIncludesSynonyms = 1
    CatalogOptions = 0
    ConnectionRetryCount = 0
    ConnectionRetryDelay = 3
    DefaultLongDataBuffLen = 1024
    DescribeAtPrepare = 0
    EnableDescribeParam = 0
    EnableNcharSupport = 0
    EnableScrollableCursors = 1
    EnableStaticCursorsForLongData = 0
    EnableTimestampWithTimeZone = 0
    Host name = linux
    Load balancing = 0
    LocalTimeZoneOffset =
    LockTimeOut =-1
    LogonID = username
    Password = PASSWORD
    Port number = 1521
    ProcedureRetResults = 0
    ReportCodePageConversionErrors = 0
    ReportRecycleBin = 0
    SID = ORCL102
    TimestampeEscapeMapping = 0
    UseCurrentSchema = 1
    WireProtocolMode = 1

    Published by: JustJames on December 16, 2009 20:36

    Some positions that may be useful for you

    Re: ODBC. INI - Essbase for the Oracle database connection
    Re: How to Configure DSN in Linux for Essbase?

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Fill the drop-down list in the SQL data source

    I have a data source that retrieves data from an sqlite database. How do I pass two areas of this query to a drop-down list on the page. I want to create a drop down list with the value and the text of this data source

    Hello

    To extract the values you need to wait for onDataLoaded. "data" parameter is a list of cards.

    An example of code for data access :

    http://supportforums.BlackBerry.com/T5/Cascades-development/SQLite-count-query/m-p/2477699#M27180

    http://supportforums.BlackBerry.com/T5/Cascades-development/DataSource-data-in-JavaScript/m-p/244171...

    To add an option to the menu drop-down:

    attachedObjects: [
      ComponentDefinition {
        id: optionFactory
        Option {
        }
      }
    ]
    
    ... to add an option:
    
    var newOption = optionFactory.createObject()
    newOption.text = 'Text to add' // or a variable fetched from data source//newOption.otherfields = ...
    dropdownId.add(newOption);
    
  • Storage of the client in the SQL data source fails all of a sudden

    After performing several Windows 2008 security updates last night, one of the sites started throwing errors related to access to the client storage database, which is the default value as defined by the CF Administrator:
    coldfusion.runtime.ClientScopeDBException: operation failed on the source of data DATA source NAME.
    Reason of failure java.security.AccessControlException: access denied.


    Most of our sites use this data source for storage of client, and none of them have the problem.
    Editing the file Application.cfm to use clientstorage = "cookie" got the site up.
    I then added a NEW data source to the list of storage Client and set the Application.cfm file to use instead.
    This works. As sson as I remove the Application.cfm file clientstorage attribute, the site breaks.
    Short to reboot the server (which happened last night after the updates), I restarted IIS all related services.
    Any ideas?

    Java security error, huh? You know, I had missed that in your first note. (He says he is, "reason for failure java.security.AccessControlException: access denied".)

    I'm starting to wonder now: what is a CF Enterprise Deployment? It is configured (in the CF Admin) to use what is called "Security Sandbox"? If so, the problem might be that this one app is in a sandbox that has not been configured to access the DSN. Sandboxes are configured for all code running in a given directory (and its subdirectories), which would explain this work for everyone, but this one.

    Purging of customer data is quite drastic, if data are important for your application. I recommend you try this if you have a little more time.

    If you're reading this I would like to learn more about Sandbox security, in addition to the docs, you can read more in some articles that I did for the Dev Center a few years previously, to http://www.adobe.com/devnet/security/articles/sandbox_01.html and http://www.adobe.com/devnet/security/articles/sandbox_02.html. While it was written in the period of CF6, it still applies to the 7 and 8.

  • SQL 2005 - LoginModules data source error

    ColdFusionMX7 & SQL server 2005 running on IBM Thinkpad T60p Windows XP sp2... after making sure confiq sql allows TCP/IP and mixed chosen auth... Cannot create the datasource in SQL 2005, error return database Admin: "no LoginModules configured for JDBC_Driver_1".

    I see nothing in the forums or knowledge on this subject. Any ideas?

    Charlie cousins off northeast of Washington, where the sky is blue

    DOH!

    I downloaded the updated macromedia_drivers.jar of Adobe and installed according to the instructions.

    Problem solved. Hope this helps someone in the future.

  • Oracle BI EE data source error

    Dear all,
    At the BEEP setting up datasource is oracle BI server.
    After then the test failed. It shows error below
    "Unable to connect".

    Admin-> JDBC
    Connection string: jdbc:oraclebi:\\Localhost:9703\
    How do I solve this problem

    Thank you

    connection string must be in this format

    JDBC:OracleBI://localhost:9703 /.

  • Implementation of Open Data Source SQL for loading data

    Hello

    I've set up a system DSN odbc for Oracle database link I want to leave the interface and tested successfully (on odbc), but when I try to use the same in Open Sql Data Sources, so that it appears in the SQL data sources menu OK list I get all the data returned when I click "OK/recycling" - just the message - "unable to establish a connection to the SQL database server. Check the log for details

    Can someone tell me where the journal is if I can get a clue as to why it breaks down, I assumed Essbase or ODBC, but can see nothing in the two?

    Thank you

    Robert.

    You use the 'Data Direct Oracle Wire Protocol x.x', otherwise try with this driver.

    Do not fill anything in the open field of connection on the right side of the window of 'SQL Data Sources '.

    Make sure you enter a valid sql statement without "select."

    Check the log of essbase applications.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Essbase Administration Service - create rules SQL file - connection error

    Hello

    I am creating the rules SQL files in Essbase Administration Console.

    When I press the OK/recover button in open SQL data source window I get this error:

    cannot connect to establish a connection with the SQL Server database see log for more information

    I tried the ODBC connections and BEAK .

    When I test the ODBC connection in Windows administrative tools > Data Sources (ODBC) > system DSN, it works correctly. but in open SQL error there.

    I tried two separate databases for my test.

    an Essbase server machine.

    a separate server.

    both give me the same error.

    SRD: 11g R2

    Essbase: 11.1.2

    ODBC1.jpgODBC2.jpgodbc3.jpg

    Do you have any suggestions?

    Create the DSN using DataDirect Oracle Wire Protocol 7.0 in (System DSN) ODBC administrators and test the connection of the Rules file. It will work.

    I think that u used Oracle in oracle11glcinet_home

  • ColdFusion Administration: Adding Data Sources of error

    * Connection verification failed for data source: online_store
    [] java.sql.SQLException: Communication during the handshake failed. Y at - it a server running on localhost: 3306?
    The root cause was that: java.sql.SQLException: Communication during the handshake failed. Y at - it a server running on localhost: 3306?

    This is the message I get when I try to add a mysql database using the coldfusion administration page. Never, I get this error when I add an access database.

    Where could I go wrong?

    Could someone help or suggest something?

    > when it says to enter the jdbc url, I entered in the following:
    > JDBC: / / [localhost]: [3306] / [online_store]

    Leave out the brackets.

    > do we extract the jar file itself which 3 files open and
    > paste in the destination folder?

    NO.

    > do we extract the main zip to a folder of the same name and
    > Copy and paste the jar file in the destination folder

    Yes. But, before that, stop Coldfusion and remove all type JAR files mysql-connector - java-* currently in the directory cf_root/WEB-INF/lib directory. Otherwise you are going to install two drivers.

    > for driver class: com.mysql.jdbc.5.0.4
    No. I think that should be: com.mysql.jdbc.Driver. Here are more tips on how to configure MySQL5.x. The same themes were held in this recent on CFMX and MySQL5 thread.

  • Add a data source to cfm 11/Tomcat

    It is possible to add a to the tomcat container jdbc data source runs an instance of CF 11?  If so, is any documentation on how to do it?

    Thanks in advance...

    Ok. To answer your original question, yes it is possible to add a jdbc data source to the container tomcat running in ColdFusion. I will illustrate this by adding a PostgreSQL JDBC data source. Be aware that the following is experimental and, as far as I know, not documented elsewhere. Take notes that will help you, if necessary, to cancel the procedure and return the system to its original state.

    The steps are:

    1) download and install the latest version of PostgreSQL for your operating system database management system; make sure it is running. Write down the password you give to the server.

    (2) download the driver JDBC41 of PostgreSQL, version 9.3 - 1102. It is the version that corresponds to Java 1.7 and 1.8, the versions of Java Virtual Machine from ColdFusion 11. The download is a JAR file. Copy it to the Tomcat lib directory located at {CF_HOME_DIRECTORY} \runtime\lib\.

    3) you now add the driver details for the Tomcat configuration files, {CF_HOME_DIRECTORY}\runtime\conf\context.xml and {CF_HOME_DIRECTORY}\runtime\conf\web.xml. }} Make a backup of these files before continuing.

    Open the context.xml file in a text editor and add the following element just before the last end tag:

    Type = "javax. Sql.DataSource' driverClassName = "org.postgresql.Driver"

    URL = "" jdbc:postgresql://127.0.0.1:5432 / booktown ' "

    username = "cf_user" password = "cf_password" maxActive = "20" maxIdle = "10" maxWait = "-1" / >

    Open the web.xml file in the text editor and add the following element just before the last end tag:

    example of postgreSQL data source

    JDBC/postgres

    javax.sql.DataSource

    Container

    (4) the resource XML element points to the URL of the database of the booktown. I will now add this database and user for the PostgreSQL server.

    Download booktown.sql. Use it to install the database of the booktown on the command line by running a PostgreSQL command as

    psql-f /path/to/booktown.sql - U postgres template1

    If it works without a hitch, then the booktown database will be installed. The user is initially the default superuser "postgres". Use it to connect on the command line:

    psql - U postgres

    It will ask you to enter the password, the one you threw down earlier. The command line begins with the command prompt:

    Postgres = #.

    Now, create another user, cf_user, also on the command line, corresponding to the resource XML element:

    Postgres is # CREATE ROLE cf_user PASSWORD "cf_password" SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;.

    (5) you have now completed setup. Restart ColdFusion.

    To test, save the following code in a CFM file and run it.

    username = "cf_user";

    password = "cf_password";

    classObj = CreateObject ("java", "java.lang.Class");

    classObj.forName ("org.postgresql.Driver");

    driverManager = CreateObject ("java", "java.sql.DriverManager");

    connectionURL = "" jdbc:postgresql://127.0.0.1:5432 / booktown '; "

    Conn = driverManager.GetConnection (connectionURL, username, Password);

    myQuery = "" SELECT * FROM books ";"

    preparedStatement = conn.prepareStatement (myQuery);

    RS = PreparedStatement.executeQuery()) ();

    While (RS. Next {}

    WriteOutput (RS. "GetString ("title") &"
    ");

    }

    RS. Close();

    Conn.Close ();

    To cancel the procedure above, first stop ColdFusion. Then remove the jar from Tomcat lib direct and restore the context.xml and web.xml to their original state. You can also uninstall the PostgreSQL database management system.

  • ERROR: Cannot open the data source for the user

    Hello, I followed the instructions in the URL below

    http://gavinsoorma.com/2010/02/GoldenGate-installation-Oracle-11g-on-Red-Hat-Linux/

    and I get the ERROR: cannot open the data source for the user

    I run the sql for the role but nothing

    any ideas please.

    Sun solaris operating system
    database version 9.2.0.7

    Previous question that you were:
    Where did you get the GoldenGate for Oracle 9i software?

  • Basic questions about the PL/SQL web services and data source names

    Hello

    I've successfully generated a web service for a procedure from PL/SQL packaged JDeveloper 11.1.1.3.0).

    The following code was generated in the base class for web services:
     __dataSource = (javax.sql.DataSource) __initCtx.lookup("java:comp/env/jdbc/dbconnectionDS");
    However in the weblogic server, the data source name is jdbc/Gisele for deployment fails in a first time.

    What is the recommended procedure to solve this problem? The obvious solution is to manually change the source - that's what I did and it worked fine. However if I re - generate the web service I won't lose my change. Is there a better way to do it?

    Another question - in the web.xml file that is generated, there is a resource-ref to the data source. I was hoping that change the data source name it would help, but it didn't work. What is - it used to in this context?

    Thank you
    Luis

    I forgot to add, so in case some time later and you want to update the connection to your service details, all you have to do is to add the following entry in your weblogic.xml:
    .

    JDBC/ref_name_from_web. XML
    JDBC/new_jndi_name

    .
    And in this way, you will not have to change any code level to point your web service to another connection.

    Vishal-

  • Cannot create the data source to SQL Server

    Hi people,

    I am running IIS, Windows XP SP3, SQL Express 2005, Trial Version of ColdFusion 9 (no patches).

    The administrator using ColdFusion, when I try to create a data source for SQLExpress 2005 (SQL Server Express), by using the SQL Server driver, I get the following error:

    Connection verification failed for data source: AMT
    java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] the requested instance is not valid or is not running.
    The root cause was that: java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] the requested instance is not valid or is not running.

    The "instance", which I interpret as meaning the database instance, is "machinename\SQLExpress" (it is a so-called "named instance").  That's what I enter in the "Server" field of the display (data & Services-> sources-> Microsoft SQL Server).

    However, I am able to create an ODBC data source name in Windows using the driver Microsoft SQL Server Native Client Version 09.00.3042 and the same instance, "machinename\SQLExpress".

    Does anyone have any ideas as to what is wrong?

    Try to use the domain name TCP/IP (or IP address) and port instead of the info of the connectivity of Windows style.  You may need to enable TCP/IP as a network on the DB server protocol well (I think it is disabled by default on SQL Express Ed).

    --

    Adam

  • SQL server 2000 data source

    I have CF running on Server 2003 R2 standard 7.0 and sql server 2000.
    I configure sql server to use windows authentication and created a SQLService system for her user name to use.
    Everything is on the same machine, and I just want to make a data source...
    I've tried about 30 different combinations of things and get in every time the same error...:

    Connection verification failed for data source: dragon1
    java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] error socket creation. Connection refused: connect
    The root cause was that: java.sql.SQLException: error [Macromedia] [SQLServer JDBC Driver] socket creation. Connection refused: connect

    I put 127.0.0.1 for the server, port 1433
    I tried to put in the SQLService username and password, as well as my administrator username and password, and got the same previous error on both. I tried to use localhost and (local) for the server, without success.

    Can someone tell me what im doing wrong?
    This is a default error message that always appears, or you would get a different error message if it was just the wrong username and password?

    Any information would be helpful!

    Thank you!
    Mike

    I finally found a post that I needed...

    http://www.Adobe.com/cfusion/webforums/Forum/MessageView.cfm?CATID=6&ThreadId=934725&highl ight_key = y & keyword1 = connection % 20refused

    He seemed overwhelmed at first, but seems to work in my situation as well.

    A side note to mention is that in your windows odbc window, you must switch to the system, instead of the user a dns dsn tab.

Maybe you are looking for

  • How can I reassign drive in which iTunes saves my iPhone backup files?

    C: drive is full.  You want to save the backup to another drive.  Is it necessary to save it in the same folder that iTunes is installed on?

  • Why my iPhone isn't Apple pay?

    Hey, I got an iPhone 6s I want to add ApplePay and sace my cards but I'm not able to find an option. cchecked youtube, but that does not help.

  • Questions about nb200

    I recently bought a mini nb200 with windows 7 and I have a few questions about it. How can you set up your email, I was willing to put up with Outlook Express, but I don't know if I can. Also, is there a way to get a paper copy of the user manual?

  • I hear an error when you try to take a screenshot

    Since I had to use the site Web of ProctorU to take an online test, I was not able to take screenshots. I use "command, shift, 4" and who is always worked so far. I get an error message just the sound of "bum" when you can't do something. Don't know

  • Bios E530 problem

    Hello! I use a lenovo thinkpad edge e530. I have a problem changing my BIOS settings after installing win8.1 and activation of bitlocker. I tried to reformat the partition, it's on, so I wiped it off with gparted and now all the settings in the bios