Results 1 to 7 of 7

Thread: TCP/IP connection to SQL with ASP

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    44
    Hello,

    I have two Win 2k Advanced Server boxes. One contains ASP pages. The other has MS SQL server on it.

    The machines are connected with IP only. They are not "networked" together, no shared drives, etc.

    I have been reading up on connection strings, but I can't figure out how to force a TCP/IP connection.

    This is what I came up with, but it doesn't work.

    <%
    strConnect = "Driver={SQL Server}; Server=sql://sqlserv.example.com:1433; database=hous1; uid=floppy; pwd=32disk99"
    %>

    Thanks,
    Scott

  2. #2
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149
    Are they both connected to the internet? If not and they arent on the same netowrk then you cant do it from a different server. if they are both on the internet try this string.

    Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=<database name here>;Data Source=<server ip here>

    just put the info in for initial catalog and datasource. And dont leave the<>

    Hope this helps

  3. #3
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    LoCal
    Posts
    280
    jdavison,

    Can this be done for AccessDB's also or only SQL?
    Achichincle

    VB6 (VSEE SP5, W2KPro)
    ASP
    HTML

  4. #4
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149
    Not as far as i know. SQL server runs as a server so it respond to the request, access has to be connected to directly. Not sure if odbc would allow for that or not since i have never tried it

  5. #5
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    LoCal
    Posts
    280
    Thanks.

    It just further points at me having to upgrade to SQL7 for connectivity...
    Achichincle

    VB6 (VSEE SP5, W2KPro)
    ASP
    HTML

  6. #6
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149
    yep, wished i could convince them of that here

  7. #7

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    44

    Password?

    The two machines are connected via internet...

    How can I put in a password to the SQL database?

    Thanks,
    Scott

Posting Permissions

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



Click Here to Expand Forum to Full Width