Connect to MSSQL 2005

Results 1 to 3 of 3
  1. #1
    Banned AcidBurn1988 is offline
    BannedRank
    Mar 2009 Join Date
    71Posts

    Connect to MSSQL 2005

    Hi all ... i dont have power anymore ... im NOT able to Connect to my MSSQL Database trought PHP and i dont know WHY!

    example for a Connection to MSSQL

    mssql_connect("L065\SQLEXPRESS","sa",'passwort"');
    ( my password got a " at the end thats why im using ' ' for the password and not " " )


    selection of a Database
    mssql_select_db("kal_db");


    edit:// not even a simple Ranking Script is Running ...

    Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: L065\SQLEXPRESS in

    Warning: mssql_select_db() [function.mssql-select-db]: message: Could not locate entry in sysdatabases for database 'kal_db'. No entry found with that name. Make sure that the name is entered correctly. (severity 16)

    Tryied to Connect directly to my Database kal_db but its also not working :S

    mssql_connect("L065\SQLEXPRESS\Datenbanken\kal_db","sa",'password"');


    .....

    Code:
    <?php
    $verbindung = mssql_connect('L065\SQLEXPRESS', 'sa', 'password"');
    mssql_select_db('[kal_db]', $verbindung);
    ?>
    also not working :S


  2. #2
    aka Reb3lzrr Boarderkoen is offline
    MemberRank
    Aug 2006 Join Date
    boskoopLocation
    669Posts

    Re: Connect to MSSQL 2005

    try this:

    PHP Code:
    <?php
    $verbindung 
    mssql_connect('L065\SQLEXPRESS''''');
    mssql_select_db('[kal_db]'$verbindung);
    ?>

  3. #3
    Banned AcidBurn1988 is offline
    BannedRank
    Mar 2009 Join Date
    71Posts

    Re: Connect to MSSQL 2005

    Code:
    Unable to connect to server: L065\SQLEXPRESS
    /suicide

    i dont know where is the fucking problem of mssql 2005 >.<



Advertisement