How do you connect your own websites to SQL Server?

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    How do you connect your own websites to SQL Server? LarvasFaint is offline
    MemberRank
    Nov 2008 Join Date
    IngressLocation
    1,307Posts

    Re: How do you connect your own websites to SQL Server?

    Quote Originally Posted by LordFede View Post
    I'll take a look then. Thanks for the info!
    Edit: Just realized my app is running on CentOS not linux... saddly.
    CentOS is a linux distribution

  2. #17
    Enthusiast LordFede is offline
    MemberRank
    May 2013 Join Date
    UruguayLocation
    49Posts

    Re: How do you connect your own websites to SQL Server?

    Quote Originally Posted by LarvasFaint View Post
    CentOS is a linux distribution
    Yes but no. I'm running CentOS 6, the driver is for Red Hat 7 / CentOS 7

  3. #18

    Re: How do you connect your own websites to SQL Server?

    pdo_dblib

  4. #19
    Enthusiast LordFede is offline
    MemberRank
    May 2013 Join Date
    UruguayLocation
    49Posts

    Re: How do you connect your own websites to SQL Server?

    Quote Originally Posted by SouLSet View Post
    pdo_dblib
    Yes, I've seen that one back when I was developing on php5.4. But now, it seems obsolete
    Quote Originally Posted by http://php.net/manual/en/ref.pdo-dblib.php
    If it is not possible to use SqlSrv, you can use the PDO_ODBC driver to connect to Microsoft SQL Server and Sybase databases, as the native Windows DB-LIB is ancient, thread un-safe and no longer supported by Microsoft.

  5. #20
    Don't be afraid to ask! RevolGaming is offline
    MemberRank
    Jun 2012 Join Date
    1,458Posts

    Re: How do you connect your own websites to SQL Server?

    odbc dont work on remote host, its for fast LAN connection, not for remote..

  6. #21
    Enthusiast LordFede is offline
    MemberRank
    May 2013 Join Date
    UruguayLocation
    49Posts

    Re: How do you connect your own websites to SQL Server?

    Quote Originally Posted by RevolGaming View Post
    odbc dont work on remote host, its for fast LAN connection, not for remote..
    Any source? I can actually connect to my remote host using odbc driver from my windows 7 PC actually.

  7. #22
    Don't be afraid to ask! RevolGaming is offline
    MemberRank
    Jun 2012 Join Date
    1,458Posts

    Re: How do you connect your own websites to SQL Server?

    Quote Originally Posted by LordFede View Post
    Any source? I can actually connect to my remote host using odbc driver from my windows 7 PC actually.
    I mean.... its for fast lan connection not for remote... ofc it will work, but its not for WORK you know...

    Its not for to make a live and stable connection remote. php_pdo is for that.

    php_pdo is the new php_mssql, thats it all.

  8. #23
    Let's do this... navossoc is offline
    MemberRank
    Sep 2004 Join Date
    BrazilLocation
    305Posts

    Re: How do you connect your own websites to SQL Server?

    Quote Originally Posted by LordFede View Post
    I think you're talking about this one https://github.com/Microsoft/msphpsql#known-issues


    Inventories' data type is varbinary, and they are pretty lengthy. So I think we can't use that for mu db yet.
    I don't think you read the known issues in a proper way...

    Linux
    • The following features are not supported with connection pooling:
      • Unicode connection strings
      • sqlsrv_server_info and sqlsrv_client_info return false
      • In certain scenarios a generic error message maybe returned instead of a specific error when pooling is disabled
      • When retrieving data from columns with a data type of XML, varchar(max), nvarchar(max), or varbinary(max) no data maybe returned or the data maybe truncated depending on the length of the data in the source table.
    First of all, this limitation applies only to connection pooling.
    Also, varbinary(max) is not used anywhere in the database.

    FYI: varbinary(max) are stored out of the row only if they exceed 8000 bytes otherwise it is the same as varbinary(8000).

    So, no harm done here...



Page 2 of 2 FirstFirst 12

Advertisement