Database configuration

3 posts, 0 answers
  1. Oscar
    Oscar avatar
    5 posts
    Member since:
    Nov 2015

    Posted 03 Nov 2015 Link to this post

    I need configure MS SQL Server database, where i must do it. All examples are using sample.db
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 05 Nov 2015 Link to this post

    Hi Oscar,

    This is more of a general PHP question, as connecting to the database is not strictly related to Kendo UI. Our PHP sample application uses PDO, so a connection string similar to the one below should do the trick: 
    try {
        $result = new DataSourceResult('sqlsrv:server=localhost,1433; Database=Northwind', 'test1', 'test$123$password');
    }
    catch(PDOException $e) {
        echo $e->getMessage();
    }

    Please check the Grid's PHP documentation for more details.

    Regards,
    Alexander Popov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. UI for ASP.NET AJAX banner
  4. Oscar
    Oscar avatar
    5 posts
    Member since:
    Nov 2015

    Posted 09 Nov 2015 in reply to Alexander Popov Link to this post

    thank you
Back to Top