How do I enable MultiSubnetFailover when using the Database Toolbox for connecting to a SQL Server with high availability?
5 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2017 年 6 月 19 日
編集済み: MathWorks Support Team
2021 年 3 月 9 日
How do I enable MultiSubnetFailover when using the Database Toolbox for connecting to a SQL Server with high availability?
採用された回答
MathWorks Support Team
2021 年 3 月 9 日
編集済み: MathWorks Support Team
2021 年 3 月 9 日
By default when you try to connect to a SQL server database using 'database' command 'multiSubnetFailover' is set to 'false'. However, you can overwrite this value by using using 5 argument style syntax for the 'database' command, where you provide 'multiSubnetFailover' as property name and set it to true.
Please refer to following link to read more about 'database' command and it's parameters:
http://www.mathworks.com/help/releases/R2016b/database/ug/database.html
For example you can try using following command to enable 'multiSubnetFailover':
database('data_source','username','password','com.microsoft.sqlserver.jdbc.SQLServerDriver','jdbc:sqlserver://server:port;database=databasename; multiSubnetFailover=true;')
Please make sure that you have completed these pre-configuration steps before you try to use Windows authentication to connect to SQL Server:
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Database Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!