Mssql

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Enthusiast Extron is offline
    MemberRank
    Nov 2007 Join Date
    39Posts

    Mssql

    Hello,

    First of all. The SQL- server is runing on a windows web server 2008.

    MSSQL (2005 edition) is working as well, ODBC is also working, too.

    Now the problem: When I want to connect the website scripts with the database isn't it working... I also tryed it via direct connect, also $mssql_connect = ("host","user","pass") and via ODBC connect.. But nothing happens...

    Can anyone help me?


  2. #2
    Account Upgraded | Title Enabled! _Varis_ is offline
    MemberRank
    May 2008 Join Date
    479Posts

    Re: Mssql

    mssql_connect($host, $user, $pass)

    You mean that?

    Also make sure permissions are set up right.

  3. #3
    Enthusiast Extron is offline
    MemberRank
    Nov 2007 Join Date
    39Posts

    Re: Mssql

    lol. yea. I'm not a idiot like that. My scripts and mssql connects are true.. for sure.

  4. #4
    boo General is offline
    MemberRank
    Sep 2006 Join Date
    at homeLocation
    2,269Posts

    Re: Mssql

    PCNAME\SQLEXPRESS for Express edition...

    PCNAME\MSSQLSERVER for Standard or higher

    put that instead of localhost

  5. #5
    Enthusiast Extron is offline
    MemberRank
    Nov 2007 Join Date
    39Posts

    Re: Mssql

    Quote Originally Posted by BjornVH View Post
    PCNAME\SQLEXPRESS for Express edition...

    PCNAME\MSSQLSERVER for Standard or higher

    put that instead of localhost
    I also know that, too. Didnt work =)

  6. #6
    Enthusiast DJBL is offline
    MemberRank
    Aug 2008 Join Date
    37Posts

    Re: Mssql

    If its x64 System try changing all mssql_ Commands to odbc_

    Help can be found on Microsoft SQL 2005 Site

  7. #7
    Enthusiast Extron is offline
    MemberRank
    Nov 2007 Join Date
    39Posts

    Re: Mssql

    Quote Originally Posted by DJBL View Post
    If its x64 System try changing all mssql_ Commands to odbc_

    Help can be found on Microsoft SQL 2005 Site
    Yes. It is x64. I also tryed it.. But it wont work.

  8. #8
    http://kalserverace.com Ace-SG1- is offline
    MemberRank
    Sep 2006 Join Date
    HawaiiLocation
    1,711Posts

    Re: Mssql

    if you tell us what the errors say, we can help a lot better

  9. #9
    Enthusiast Extron is offline
    MemberRank
    Nov 2007 Join Date
    39Posts

    Re: Mssql

    Quote Originally Posted by Ace-SG1- View Post
    if you tell us what the errors say, we can help a lot better
    Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: GOLF873\SQLEXPRESS in C:\inetpub\bla\bla\bla on line 19

    How i said.. The database works fine.. I think anything is blocking the connection to my scripts (?)

  10. #10
    boo General is offline
    MemberRank
    Sep 2006 Join Date
    at homeLocation
    2,269Posts

    Re: Mssql

    Check in "Start -> Programs -> Microsoft SQL Server 2005 -> (Native) Client Network tool / Server network tools" if your TCP/IP is enabled, and if a port is set (should be 1433)

    Oh yes, XAMPP doesnt work with MSSQL 2005. You need to find a fixed ntwdblib.dll and place it under apache/bin

  11. #11
    Enthusiast Extron is offline
    MemberRank
    Nov 2007 Join Date
    39Posts

    Re: Mssql

    Quote Originally Posted by BjornVH View Post
    Check in "Start -> Programs -> Microsoft SQL Server 2005 -> (Native) Client Network tool / Server network tools" if your TCP/IP is enabled, and if a port is set (should be 1433)

    Oh yes, XAMPP doesnt work with MSSQL 2005. You need to find a fixed ntwdblib.dll and place it under apache/bin

    TCP/IP is enabled. Oh I don't use XAMPP, its just PLESK.

  12. #12
    http://kalserverace.com Ace-SG1- is offline
    MemberRank
    Sep 2006 Join Date
    HawaiiLocation
    1,711Posts

    Re: Mssql

    did u enable mssql in php.ini?

  13. #13
    Enthusiast Extron is offline
    MemberRank
    Nov 2007 Join Date
    39Posts

    Re: Mssql

    Quote Originally Posted by Ace-SG1- View Post
    did u enable mssql in php.ini?
    I think its automatcly enabled? Else.. in witch line I see that?

  14. #14
    http://kalserverace.com Ace-SG1- is offline
    MemberRank
    Sep 2006 Join Date
    HawaiiLocation
    1,711Posts

    Re: Mssql

    line 568, or search for "mssql".

  15. #15
    Enthusiast Extron is offline
    MemberRank
    Nov 2007 Join Date
    39Posts

    Re: Mssql

    Quote Originally Posted by Ace-SG1- View Post
    line 568, or search for "mssql".

    Line 568 in my php.ini = ";extension=php_ming.dll".

    And yea.. all is enabled. Damn I dont understand that shit..



Page 1 of 2 12 LastLast

Advertisement