单项选择题

You work at the regional sales office. You are responsible for importing and exporting data in SQL Server 2005 databases. The main office asks you to send them a text file that contains updated contact information for the customers in your region. The database administrator in the main office asks that the data be sorted by the StateProvince,Surname, and FirstName columns.You need to satisfy these requirements by using the least amount of effort.
What should you do?()

A.Specify StateProvince, Surname, and FirstName in the ORDER hint in the bcp out command.
B.Create a format file for the export operation.
C.Specify StateProvince, Surname, and FirstName in the ORDER BY clause in the bcp queryout command.
D.Copy the data into a new table that has a clustered index on StateProvince,Surname,and FirstName. Export the data.

相关考题

You are creating a Web-based application to manage data...


单项选择题

You are creating a Web-based application to manage data aggregation for reports. The application connects to a SQL Server 2005 database named DataManager. One page in the application has controls that execute stored procedures in a database named ReportingDatabase. There is an existing Service Broker connection between the DataManager database and ReportingDatabase.You want to add two new message types to the existing service. In each database, you create message types named ProcessReport and SendResult. You need to add the two new message types to the existing service.
What should you do first?()

A.Create a queue on each database with the ACTIVATION argument set to DataManager dbo processReport.
B.Create a conversation between the databases by using the following Statement BEGIN DIALOG FROM SERVICE ’ProcessReport’ TO SERVICE ’SendResult’
C.Create a contract between the services by using the following statement.CREATE CONTRACT processData (ProcessReport SENT BY INITIATOR,SendResult SENT BY TARGET)
D.Create services for each database by using the following statement.CREATE SERVICE DataManager on QUEUE ProcessReport