This is a migrated thread and some comments may be shown as answers.

Database configuration

2 Answers 168 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 03 Nov 2015, 04:01 PM
I need configure MS SQL Server database, where i must do it. All examples are using sample.db

2 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 05 Nov 2015, 12:29 PM
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!
 
0
Oscar
Top achievements
Rank 1
answered on 09 Nov 2015, 09:10 PM
thank you
Tags
Grid
Asked by
Oscar
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Oscar
Top achievements
Rank 1
Share this question
or