SQL Server Examples - SQL Server Examples - OnBase - Full-Text Search - OnBase/Full-Text-Search/English/Foundation-22.1/Full-Text-Search/Installation/ADO.NET-Connection-Strings/Connection-String-Components/Connection-String-Examples/SQL-Server-Examples - English - Foundation 22.1

Full-Text Search

Platform
OnBase
Product
Full-Text Search
Release
Foundation 22.1
License
ft:lastPublication
2023-09-12T21:38:22.310000
ft:locale
en-US

This connection string would create a data source called ConnectSQL, used to connect to the database TestDB hosted on a SQL Server instance named Serv001\instance:

<connectionStrings>

<add name="ConnectSQL" connectionString="Data Source=Serv001\instance;

Database=TestDB;User Id=username;Password=password"

providerName="System.Data.SqlClient"/>

</connectionStrings>

Similarly, this example would connect to the same database, but it would use integrated security instead of database user authentication:

<connectionStrings>

<add name="ConnectSQL" connectionString="Data Source=Serv001\instance;

Database=TestDB;Integrated Security=true;"

providerName="System.Data.SqlClient"/>

</connectionStrings>