connect to SQLServer database from php application

  • Hello,

    This is my first post and I am a total newbie here.

    I have a php web application and now I have to make a dayly query to an external SLQServer database table to update my mySQL database table.

    Could you please give me some hints on how could I do it?

    thanks a lot.

  • You could create an ADO connection.

  • I have a php web application and now I have to make a dayly query to an external SLQServer database table to update my mySQL database table.

    Could you please give me some hints on how could I do it?

    **************************************************

     

    Here's a simple process that shows how you can connect to an external SQL Server database via PHP:

     $db = new COM("ADODB.Connection");

     $dsn = "DRIVER={SQL Server}; SERVER={servername};UID={login_name};PWD={login_pwd}; DATABASE={database_name}";

     $db->Open($dsn);

    You mentioned the SQL Server was external, so an example servername would be:  extserver.externaldomain.com.

    Hope this helps!

     


    Kindest Regards,

    VL

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply