Connecting to SQLExpress

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Connecting to SQLExpress

    How can I create a Data Source to SQLExpress?
    I opened up SQLExpress to TCP/IP, should I be using named pipes instead?
    I show the service running and I can create an ODBC DSN to it.
    However, I want a Native Connection. SQLExpress has a "SQL Native Client" and
    I can also create an ODBC connection to it as well.

    I receive the following error:
    Connection verification failed for data source: TestDB
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver][Macromedia][SQLServer JDBC Driver]The requested instance is either
    invalid or not running.
    The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver][Macromedia][SQLServer JDBC Driver]The requested instance is either
    invalid or not running.


    Dave Miller Guest

  2. Similar Questions and Discussions

    1. connecting...
      we're having a hard time connecting to the server so we can let others make changes to the pages. we know we can connect to the server through our...
    2. connecting FMS
      Im really new to FMS and have installed it but im slightly confused as to what i enter into the Server address section when loging in! or where i...
    3. Byte Array objects cannot be converted to strings Error-- SQLExpress DB
      Hi I recently upgraded one server to be using SQL Express 2005 Now when I try to output the value of a ROWGUID its giving me this Error Occurred...
    4. Connecting for DB2 UDB on NT
      Using the DB2 R/T client on the client machine, set up a local alias for the remote database. Define a DSN for this alias on the client machine. When...
    5. Connecting to DB2 UDB v7.x
      Does anyone know if it is possible to connect to a UDB database v7.x (7.2) in .NET. I have not found much on the web regarding this topic. Thanks
  3. #2

    Default Re: Connecting to SQLExpress

    I'm having the same issues as well and have followed many different solutions. I have found none. If you get answers or figure it out please let me know. I will return the favor.
    rjsimonson Guest

  4. #3

    Default Re: Connecting to SQLExpress

    HI,
    Here is how I did it.

    (1) Go into SQL Server Configuration Manager: SQL Server 2005 Network
    Configuration -> Protocols fro SQLEXPRESS -> TCP/IP -> Properties -> IP
    Addresses -> IP 127.0.0.1 set the port to 1433.
    You need to activate TCP/IP as well

    (2) In the ColdFusion Datasources specify SQL Server, and specify the server
    as 127.0.0.1\SQLEXPRESS.



    Dave Miller Guest

  5. #4

    Default Re: Connecting to SQLExpress

    Dave Miller wrote:
    > HI,
    > Here is how I did it.
    >
    > (1) Go into SQL Server Configuration Manager: SQL Server 2005 Network
    > Configuration -> Protocols fro SQLEXPRESS -> TCP/IP -> Properties -> IP
    > Addresses -> IP 127.0.0.1 set the port to 1433.
    > You need to activate TCP/IP as well
    >
    > (2) In the ColdFusion Datasources specify SQL Server, and specify the server
    > as 127.0.0.1\SQLEXPRESS.
    >
    Some additional info:
    [url]http://mattwoodward.com/blog/index.cfm?commentID=211[/url]

    In the comments you'll see a trackback to some further info with screen
    shots. I personally didn't have to specify the instance name after the
    IP address; I just used localhost and it worked for me.

    Matt
    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

  6. #5

    Default Re: Connecting to SQLExpress

    Thanks that did it. :)
    rjsimonson Guest

  7. #6

    Default Re: Connecting to SQLExpress

    I get the following error in Coldfusion MX Admin any ideas?

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

    rjsimonson Guest

  8. #7

    Default Re: Connecting to SQLExpress

    OK rj

    This is an alternative method for those of us who have CFMX6.1, whose support
    for JDBC does not work; instead of downgrading to CFMX6, you can create an ODBC
    System DSN; here goes:

    1) Carry out the instructions that Matt Woodward posted at the top of this
    thread ie Go into SQL Server Configuration Manager: SQL Server 2005 Network
    Configuration -> Protocols fro SQLEXPRESS -> TCP/IP -> Properties -> IP
    Addresses -> IP 127.0.0.1 set the port to 1433.You need to activate TCP/IP as
    well. Also make sure that SQL Server 2005 Express is an exception in Windows
    Firewall (XP SP2) or any other firewall software

    2) Go to Control Panel -> Administrative Tools -> Data Sources (ODBC) ->
    System DSN -> Add :
    a) Select SQL Server driver; finish
    b) Type in a name for your datasource
    c) Select an SQL Server ie the name of your server instance; next
    d) Select your authentication set-up; next
    e) Check the 'change the default database to' whatever database you are trying
    to connect to; next
    f) No need to change anything in the next panel
    g) Finish

    3) Then go to your Coldfusion Administrator data sources area & type in the
    name of the CF DSN you want to use & choose driver of 'ODBC socket' type from
    the drop down below; press 'add'.
    You should be able to choose the system DSN, you have just created from the
    drop down, entitled 'ODBC DSN'.
    Then press 'submit'. Voila!


    karma007 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139