Linking to SQL Server 2000

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

  1. #1

    Default Linking to SQL Server 2000

    I have been using CF for a number of years but always with Access. Not having
    SQL Server 2000 experience is holding me back. Can anyone give me or point me
    toward some really good information on how to link to a SQL Server to pull data
    from. Even an example of code would be great (or as much code as is possible
    as I know some of it is set up in the CF Administrator).

    Thanks,

    Jason Presley

    jpesolutions Guest

  2. Similar Questions and Discussions

    1. linking multiple Publisher files within a website (Publisher 2000)
      I took David Bartosik's advice (http://www.davidbartosik.com/pub2k/pub2k_6.htm) and split a lengthy web page into separate files. I have uploaded...
    2. Access 2000 or SQL Server 2000
      Hi I am planning to design a database (destined for the web) that will have between 20000 and 45000 records in it and will receive a lot of reads...
    3. Error in COM+ while migrating from 2000 Server to 2000 Advace Server
      Hi, I have one 3 tier architecture application running on Windows 2000 Server. I have created replica of same machine on another machine where OS...
    4. Error while porting applicaition from 2000 Server to 2000 advace Server
      Hi, I have one 3 tier architecture application running on Windows 2000 Server. I have created replica of same machine on another machine where OS...
    5. Linking Informix tables to SQL Server 2000
      I am having difficulty creating a linked server (Informix) in Microsoft SQL Server 2000. I have successfully installed the Informix OLEDB driver;...
  3. #2

    Default Re: Linking to SQL Server 2000

    The actual code to interact with the sql server is basically the same as
    access. There are a number of functions that are differrent and sql server has
    stored procedures and dts ect...

    The books online under the sql server programs group will give you heaps of
    information.

    To connect via CF

    Just create a DSN as in access, the difference being
    First you need to create an sql server account and give this account
    permissions to the sql server database(s)
    Then in the CF admin panel
    Create a new DSN with the sql server driver
    Enter the name or ip address of the sql server (localhost will work if it is
    on the same box)
    Enter the name of the database
    Enter the username and password

    That's it

    You can also create the dsn through a windows account, but this is a bit more
    involved.

    Ken


    The ScareCrow Guest

  4. #3

    Default Re: Linking to SQL Server 2000

    I thought that i was a pretty smart guy but this thing is kicking my butt!
    Here is what I am putting into the CF Admin.

    CF Datasource Name = jpTest
    Database = jpTestDB
    Server (I have tried) = 127.0.0.1
    (local)
    localhost
    C:\Program Files\Microsoft SQL
    Server\MSSQL\Data
    C:\Program Files\Microsoft SQL
    Server\MSSQL
    Username = sa
    Password = (my password set for the sa account in SQL Server)

    I have CF running on Apache 2.0 located on the C:\Program Files\Apache
    Group\Apache2
    The SQL Server is MS SQL Server 2000 MSDE located at C:\Program
    Files\Microsoft SQL Server\MSSQL
    The tree structure in the SQL Server Enterprise Manager is:
    Console Root> Microsoft SQL Servers> SQL Server Group> (LOCAL)
    (Windows NT)> Databases> jpTestDB

    If there are other paramaters or things that would be helpful please let me
    know. Evidently someone needs to come down to my Kindergarten level and hold
    my hand through this thing. If anyone would be able (and willing) to help I
    would greatly appriciate it. Maybe giving me the exact things to type into CF
    Admin would help. I have found sites that tell me to enter the server address
    into the server field but I don't know what the server address is so that is no
    help. If you can break it down into tiny very simple instructions I would
    greatly appriciate it!

    Thanks

    Jason


    jpesolutions Guest

  5. #4

    Default Re: Linking to SQL Server 2000

    Jason,

    What kind error are you getting? Can you post the error message?
    mxstu Guest

  6. #5

    Default Re: Linking to SQL Server 2000

    That I can do! :D

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

    jpesolutions Guest

  7. #6

    Default Re: Linking to SQL Server 2000

    Do you have a firewall runinng? I've received errors like that due to firewall issues.
    mxstu Guest

  8. #7

    Default Re: Linking to SQL Server 2000

    Yes. I am on my computer at work and they have a network wide firewall. I'll check into that. Thanks

    jpesolutions Guest

  9. #8

    Default Re: Linking to SQL Server 2000

    Also if you using Windows XP you might need to check out this link

    [url]http://www.winnetmag.com/SQLServer/Article/ArticleID/43777/SQLServer_43777.html[/url]

    Ken
    The ScareCrow 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