語法 複製 object.ConnectionString [= value] 組件 object 代表SQL Server 別名的 SqlServerAlias 類別 物件。 屬性值/傳回值 字串,指定用來建立伺服器連接別名的 連接字串。 備註意見反應 此頁面對您有幫助嗎? Yes No 提供產品意見反應 | 在Microsoft Q&A 上取得說...
serverInstance 类型:String 一个String 值,该值指定要建立与其的连接的服务器的实例名称。userName 类型:String 一个String 值,该值指定用于建立引用的连接的登录帐户。password 类型:String 一个String 值,该值指定用于登录帐户的密码。示例VB复制 'Declare a ServerConnection object variable to specify SQL ...
"Persist Security Info=False;Integrated Security=true;Initial Catalog=Northwind;server=(local)" 使用new SqlConnectionStringBuilder 在運行時間建構有效的連接字串。 如需詳細資訊,請參閱連接字串建置器。 ConnectionString只有當連接關閉時,才能設定 屬性。 許多 連接字串 值都有對應的唯讀屬性。 設定 連接字串 時...
若要查看示例连接字符串,请在SQL Server Data Tools中创建包,然后在该包中创建相应类型的连接管理器。 接下来,在属性窗口中,检查ConnectionString刚刚创建的连接管理器的属性。 下面的代码示例添加一个 OLE DB 连接管理器,然后设置连接管理器名称和连接字符串属性。 // Add the OLE DB connection manager. ...
<!---SQL Server Connection String> <Entity id="e76b6205-d3cb-46f2-bd63-c90153f2f97d" patternsProximity="300" recommendedConfidence="85"> <Pattern confidenceLevel="85"> <IdMatch idRef="CEP_Regex_SQLServerConnectionString" /> <Any minMatches="0" maxMatches="0"> <Match idRef="CEP_Gl...
<!---SQL Server Connection String> <Entity id="e76b6205-d3cb-46f2-bd63-c90153f2f97d" patternsProximity="300" recommendedConfidence="85"> <Pattern confidenceLevel="85"> <IdMatch idRef="CEP_Regex_SQLServerConnectionString" /> <Any minMatches="0" maxMatches="0"> <Match idRef="CEP_Gl...
"Persist Security Info=False;Integrated Security=true;Initial Catalog=Northwind;server=(local)" 使用new SqlConnectionStringBuilder 在運行時間建構有效的連接字串。 如需詳細資訊,請參閱連接字串建置器。 ConnectionString只有當連接關閉時,才能設定 屬性。 許多 連接字串 值都有...
System.Data.SqlClient.dll 套件: System.Data.SqlClient v4.9.0 來源: System.Data.SqlClient.notsupported.cs 取得或設定用來開啟 SQL Server 資料庫的字串。 C#複製 publicoverridestringConnectionString {get;set; } 屬性值 String 連接字串,包含來源資料庫名稱和其他建立初始連接所需要的參數。 預設值為空...
在Microsoft.SqlServer.Management.Common.ConnectionSettings.ThrowIfConnectionStringIsSet(String propertyName) 在Microsoft.SqlServer.Management.Common.ConnectionSettings.set_SecurePassword(SecureString value) 在Microsoft.SqlServer.Management.UI.ReplicationSqlConnection.Initialize(UIConnectionInfo conninfo, SqlConnection sql...
SQL Database instance (formerly SQL Azure database). 展开表 复制 <add name="ConnectionStringName" providerName="System.Data.SqlClient" connectionString="Data Source=tcp:ServerName.database.windows.net,1433; Initial Catalog=DatabaseName;Integrated Security=False; User Id=username@servernam...