[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Collapse]eXpress Persistent Objects
 [Expand]Product Information
 [Expand]Getting Started
 [Expand]Fundamentals
 [Expand]Feature Center
 [Expand]Concepts
 [Expand]Design-Time Features
 [Expand]Examples
 [Expand]Member Tables
 [Collapse]API Reference
  [Expand]DevExpress.Xpo
  [Collapse]DevExpress.Xpo.DB
   [Expand]AccessConnectionProvider Class
   [Expand]AccessConnectionProviderMultiUserThreadSafe Class
   [Expand]CachedDataStoreClient Class
   [Expand]CachedDataStoreClientAsync Class
   [Expand]CachedDataStoreClientAsyncBase<TContractType> Class
   [Expand]CachedDataStoreService Class
   [Expand]DataStoreClient Class
   [Expand]DataStoreClientAsync Class
   [Expand]DataStoreService Class
   [Expand]FirebirdConnectionProvider Class
   [Expand]ICachedDataStoreService Interface
   [Expand]ICachedDataStoreServiceAsync Interface
   [Expand]ICachedDataStoreWarpService Interface
   [Expand]ICachedDataStoreWarpServiceAsync Interface
   [Expand]IDataStoreService Interface
   [Expand]IDataStoreServiceAsync Interface
   [Expand]IDataStoreWarpService Interface
   [Expand]IDataStoreWarpServiceAsync Interface
   [Expand]InMemoryDataStore Class
   [Expand]ISerializableObjectLayerService Interface
   [Collapse]MSSqlConnectionProvider Class
     MSSqlConnectionProvider Members
     MSSqlConnectionProvider Constructor
    [Expand]MSSqlConnectionProvider Properties
    [Collapse]MSSqlConnectionProvider Methods
      ClearDatabase Method
      CollectTablesToCreate Method
      ComposeSafeSchemaName Method
      CreateProviderFromConnection Method
      CreateProviderFromString Method
      EmptyAllTablesInDatabase Method
      FormatBinary Method
     [Expand]FormatColumn Method
      FormatConstraint Method
      FormatDelete Method
     [Expand]FormatFunction Method
      FormatInsert Method
      FormatInsertDefaultValues Method
     [Expand]FormatSelect Method
     [Expand]FormatTable Method
      FormatUpdate Method
      GenerateStoredProcedures Method
     [Collapse]GetConnectionString Method
       GetConnectionString(String, String) Method
       GetConnectionString(String, Int32, String) Method
       GetConnectionString(String, String, String, String) Method
       GetConnectionString(String, Int32, String, String, String) Method
     [Expand]GetConnectionString2005CacheRoot Method
     [Expand]GetConnectionString2005WithCache Method
     [Expand]GetConnectionStringWithAttach Method
      GetConnectionStringWithAttachForLocalDB Method
      GetParameterName Method
     [Expand]GetSqlCreateColumnFullAttributes Method
      GetStorageTablesList Method
      GetStoredProcedures Method
      GetTableSchema Method
      Register Method
   [Expand]OleDBConnectionProvider Class
   [Expand]OperationResult Class
   [Expand]OperationResult<T> Class
   [Expand]PostgreSqlConnectionProvider Class
   [Expand]SerializableObjectLayerProxyBase Class
   [Expand]SerializableObjectLayerService Class
   [Expand]SerializableObjectLayerServiceClient Class
   [Expand]ServiceBase Class
   [Expand]ServiceExceptionEventArgs Class
  [Expand]DevExpress.Xpo.DB.Helpers
  [Expand]DevExpress.Xpo.Exceptions
  [Expand]DevExpress.Xpo.Helpers
  [Expand]DevExpress.Xpo.Metadata
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

MSSqlConnectionProvider.GetConnectionString Method

Returns a connection string used to open a specified MS SQL database using Windows Integrated Security.

Expanded Overload list

  Name Description
Public methodStatic member static string GetConnectionString(string server, string database) Returns a connection string used to open a specified MS SQL database using Windows Integrated Security.
Public methodStatic member static string GetConnectionString(string server, int port, string database) Returns a connection string used to open a specified MS SQL database using provided login credentials.
Public methodStatic member static string GetConnectionString(string server, string userId, string password, string database) Returns a connection string used to open a specified MS SQL database using provided login credentials.
Public methodStatic member static string GetConnectionString(string server, int port, string userId, string password, string database) Returns a connection string used to open a specified MS SQL database using provided login credentials.

Expanded See Also

Is this topic helpful?​​​​​​​