单项选择题你正在从一个数据库到另一个数据库进行数据传送。你需要决定是否可以使用 SqlBulkCopy去传送数据。你应该如何做?()

A. 保证源数据库是Microsoft SQL Server.
B. 保证目标数据库是 Microsoft SQL Server.
C.确保源表和目的表的列名称相同。
D.确保在目标机器上安装有bcp工具。



您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题

你正在使用如下的代码段去创建一个 DataTable:(行号只作为标识)
你需要确保当新的行被增加或修改时Total列的值为Price列乘以Quantity列的值。你该如何做?()

A. 在05行后增加dc.ExtendedProperties["Total"] = "Price *Quantity”;
B. 在05行后增加dc.Expression = “Prince * Quantity”;
C. 为DataTable的TableNewRow 写事件处理代码来更新Total 的值。
D. 为DataTable的ColumnChanged写事件处理代码来更新Total 的值。

3.单项选择题

你正在装载一个名为 doc 的 XML 文档。文档内容如下:你需要使用Xpath查询去选择book节点,你该如何做?()

A. XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“.”);
B. XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“book”);
C. XmlElement root = doc.DocumentElement; XmlNodeList nodes =root.SelectNodes(“bookstore//book”);
D. XmlElement root = doc.DocumentElement; XmlNodeList nodes =root.SelectNodes(“books/book”);

4.单项选择题下面那个代码段正确的增加了一个TextBox控件到一个名为form1的Web窗体上?()

A.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true;
B.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; c.Controls.Add(form1);
C.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; c.Add(form1);
D.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; form1.Controls.Add(c);

5.单项选择题你正在创建一个名为PageBase.master 的母版页。这个母版页包含一个Label控件lblTitle。你创建了一个引用此母版页的内容页。你需要从内容页改变母版页 lblTitle 控件的 Text 属性值。你应该如何做()?

A. Label lblTitle = (Label)Master.FindControl(“lblTitle”);lblTitle.Text = “Articles”;
B. Label lblTitle = (Label)Parent.FindControl(“lblTitle”);lblTitle.Text = “Articles”;
C. Master.Page.Title = “Articles”;
D. ((Label)Page.FindControl(“lblTitle”)).Text = “Articles”;

7.多项选择题你创建了一个包含连接 Web 部件的 Web 窗体。你在 Web 窗体中写了如下的声明:你需要保证你的Web部件连接是有效的。你应该完成下面那两个操作?()

A. 在 Web 窗体上包括一个标识为 WebPartConnection1 的数据源。
B. 在 Web 窗体上包括一个标识为 customerPart 的 Web 部件。
C. 在 Web 窗体上包括一个标识为 ordersPart 的 Web 部件。
D. 确保你声明了一个接口 "IOrdersPart".
E. 确保你声明了一个接口 "ICustomerPart".
F. 确保每个Web部件声明了GetInterface或ProvideInterface方法。


8.单项选择题你创建了一个 Web 站点,此站点在用户 profile 对象中存储用户的所有可用主题。你需要在用户登录 Web 站点时,为站点应用用户预先选择好的主题。你应该如何做?()

A. 在InitComplete事件处理中,基于用户profile设置Page对象的Theme属性。
B. 在PreLoad事件处理中,基于用户profile设置Page对象的Theme属性。
C. 在OnLoad事件处理中,基于用户profile设置Page对象的Theme属性。
D. 在PreInit事件处理中,基于用户profile设置Page对象的Theme属性。

9.多项选择题你为你的公司创建了一个 Web 站点。你的站点中包含的页面和控件都使用你一贯的设计。现在,你需要改变服务器上所有 Web 站点的样式。你需要达到这个目的,但是又不需要编辑各个站点的页面,你应该通过下面那两个步骤完成?()

A. 在应用的根目录下的App_Themes 目录下放一个主题。
B. 在ASP.NET 安装目录下的ASP.NETClientFiles 目录下放一个主题文件。
C. 通过设置<%@ Page Theme="..." %> 标记指定一个主题。
D. 在Web.config 文件中配置<pages theme="..."/>节来指定一个主题。

10.多项选择题你创建了一个 Web 应用。你需要对一个运行不是很好的页面进行跟踪。而且你必须把跟踪信息存储在一个数据库中。为此,你应该通过下面那两个步骤完成?()

A.为Trace.Trace Finished事件增加跟踪内容事件处理程序,并且把跟踪信息记录到数据库中。
B.在Web.config文件中增加system.diagnostics配置节,然后在新的节增加一个listener。
C.使用System.Diagnostics.Trace对象连接到数据库,并且插入跟踪记录到数据库。
D.在Page_Load事件中,使用Trace.Write插入信息到数据库。


最新试题

You are developing a product search page named Search.aspx for Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Search.aspx page allows customers search for products that match specific criteria. Once a product is located, you want an image of the product to be displayed. You want to use an Image control to display the image. You want to configure the Image control to display a description of the image if the image cannot be displayed in the customer's Web browser.What should you do?()

题型:单项选择题

You are creating a composite control for capturing user address information in a Web application. You define a number of properties that the user can set at design time. You need to group these properties in the Properties dialog box. In addition, you need to ensure that when users click on a particular property, they receive a short explanation of that property. The properties are shown in the exhibit.Which two actions should you perform?()

题型:多项选择题

You create a Web site that stores users' active themes in user profile objects. You need to apply users' preferred themes when they log on to the Web site.What should you do? ()

题型:单项选择题

You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending.Which two actions should you perform?()

题型:多项选择题

You want to enable users of a Web application to modify the Web application's UI and behavior. These modifications must be maintained at the user level so that when users return to the Web application, the changes are still in effect. You need to achieve this goal by using the minimum amount of custom code.What should you do?()

题型:单项选择题

You create a mobile Web application. You need to use a Command control to post user input from the UI elements back to the server.What are two possible ways to achieve this goal?()

题型:多项选择题

You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site.Which two actions should you perform?()

题型:多项选择题

Certkiller .com's e-Commerce Web application contains a page named Products.aspx that uses data source and data-bound server controls. Customers use the server controls to search for products. The Products.aspx page does not have an associated code-behind file. You need to convert the Products.aspx page to a user control so that its functionality can be reused on other pages.What should you do?()

题型:多项选择题

You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts.Which tool should you use? ()

题型:单项选择题

You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort.What should you do? ()

题型:单项选择题