• 2021-04-14
    在 SQLConnection 对象中可以使用ConnectionString属性来获取或设置打开 SQL 数据库的连接字符串。
  • 本题目来自[网课答案]本页地址:https://www.wkda.cn/ask/ezpzpmmmaeemajo.html

    内容

    • 0

      使用SqlConnection对象cn连接数据库时,使用语句打开连接

    • 1

      使用connection对象的()属性获取或设置用于打开数据库的字符串。 A: Aconnectiontimeout B: Bserverversion C: Cconnectionstring D: Dstate

    • 2

      SqlDataSource控件的常用属性中用来获取或设置用于为数据库选择数据记录的SQL语句的属性是()。 A: ConnectionString B: InsertCommand C: SelectCommand D: UpdateCommand

    • 3

      在连接SQL server 数据库时,需要指定连接串ConnectionString,其中,指定要连接的数据库的是:Database 或Initial Catalog。( )

    • 4

      为使用OleDb .NET Data Proviver连接到SQL Server 2005数据库,应将Connection对象的ConnectionString属性中的Provider子属性的值设置为: