单选题Which of the following tools for DB2 V9 allows a user to create and debug a SQL stored procedure?()A Control CenterB Development CenterC Developer WorkbenchD Stored Procedure Builder

题目
单选题
Which of the following tools for DB2 V9 allows a user to create and debug a SQL stored procedure?()
A

Control Center

B

Development Center

C

Developer Workbench

D

Stored Procedure Builder

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Your application must access data that is located on two SQL Server 2005 computers. One of these servers is named SQL1 and the other is SQL2. You have permissions to create a stored procedure on SQL1 to support your application. However,on SQL2 you only have permissions to select data. You write the stored procedure on SQL1. The stored procedure accesses SQL2 by using the OPENQUERY Transact-SQL statement. However,the query fails when executed.You need to troubleshoot the cause of the error. What should you do?()

  • A、Join the two servers by using the four-part syntax of server.database.schema.table.
  • B、Reference SQL2 by using an alias.
  • C、Add SQL2 as a remote server to SQL1.
  • D、Add SQL2 as a linked server to SQL1.

正确答案:D

第2题:

The accounting manager wants you to create a form that when queried will display a calculated total of year-to-date actual expenditures for the found code entered. The values needed to generate this summary data are stored in multiple tables. Which data source type can you assign to the data block for this form without having the DBA create a database object?()

  • A、database table 
  • B、transactional trigger 
  • C、stored procedure 
  • D、FROM clause query 
  • E、client-side procedure

正确答案:D

第3题:

You are the administrator of a SQL Server 2000 database. Using the default options configures the database. You drop indexes to facilitate a large import of data, and rebuild them after the import is complete.

Users report that response times from a stored procedure have become slower. In the stored procedure, you examine the following code.

CREATE PROCEDURE GetCustomer

( @CustomerID Int )

AS

SELECT FirstName, LastName, Address1, Address2, City,

State, Zip, MAX(PurchaseDate) AS LastPurchase

FROM Customers C

JOIN Addresses A ON A.AddressID = C.AddressID

JOIN Purchases P ON P.CustomerID = C.CustomerID

WHERE C.CustomerID = @CustomerID

GROUP BY FirstName, LastName, Address1, Address2, City, State, Zip

You want to improve the performance of the procedure by using the least amount of administrative effort. What should you do?

A.Recompile the stored procedure.

B.Update the database statistics.

C.Check the consistency of the database and repair errors.

D.Create a view and modify the stored procedure to use the view.


正确答案:A
解析:Explanation:ByrecompilingthestoredprocedureSQLServerwillcreateanewexecutionplanforthestatementsintheprocedure.SQLServerwilldetectthatstatisticsarenotuptodateanditwillautomaticallyrecreatethestatisticsduringthisprocess.Theexecutionplanwillbeoptimizedforthecurrentdistributionofdatainthetables.Note:Storedprocedurescanbeusedtoimprovedatabasequeryperformance.IftheseSQLstatementsandconditionallogicarewrittenintoastoredprocedure,theybecomepartofasingleexecutionplanthatiscachedontheserver.Whenthedatabaseischangedbytheadditionofnewindexesorwhendatainindexedcolumnsarechanged,theoriginalqueryplansandstoredproceduresusedtoaccessthetablesshouldbereoptimizedbyrecompilingthem.ThisoptimizationhappensautomaticallythefirsttimeastoredprocedureisrunafterSQLServer2000isrestarted.Italsooccursifanunderlyingtableusedbythestoredprocedurechanges.Butifanewindexisaddedfromwhichthestoredproceduremightbenefit,optimizationdoesnotautomaticallyoccuruntilthenexttimethestoredprocedureisrunafterSQLServerisrestarted.Thestoredprocedurecanbemanuallyrecompiledbyusingthesp_recompilesystemstoredprocedure.Thisforcesthestoredproceduretoberecompiledthenexttimeitisrun.IncorrectAnswers:B:SQLServerdetectswhetherstatisticsarenotup-to-date,andbydefaultitautomaticallyupdatesthemduringqueryoptimization.Byrecompilingthequerythestatisticswillautomaticallybeupdated.Note:SQLServerkeepsstatisticsaboutthedistributionofthekeyvaluesineachindexandusesthesestatisticstodeterminewhichindex(es)touseinqueryprocessing.Queryoptimizationdependsontheaccuracyofthedistributionsteps.Ifthereissignificantchangeinthekeyvaluesintheindex,orifalargeamountofdatainanindexedcolumnhasbeenadded,changed,orremoved,orthetablehasbeentruncatedandthenrepopulated,UPDATESTATISTICSshouldbererun.C:Consistencyofadatabaseismaintainedthroughtheuseofconstraintsandtriggers.Thesemechanismsareusedtoensurethatthedatabaseremainsconsistentbycontrollingthetypeofdatathatcanbeinsertedintoacolumn,throughreferentialintegritychecks,andthroughcascadingreferentialconstraints.D:Aviewisavirtualtablethatcanbeusedtorestrictusersaccesstothebasetable,ortojoinvariousbasetablessothattheyappearasasingletable.However,creatingaviewthatthestoredproceduremustaccesswouldrequirethecreationofindexesontheviewandwillhavetobeupdatedwhenthebasetablesareupdates.Thiswouldrequiregreateradministrativeeffort.

第4题:

Which two PL/SQL8 features are supported in Oracle Forms?()

  • A、methods 
  • B、object tables 
  • C、object columns 
  • D、collection types 
  • E、object as stored procedure parameters

正确答案:B,C

第5题:

Which of the following DB2 tools allows a user to execute an SQL statement and view a graphical representation of the access plan?()

  • A、Task Center
  • B、Command Editor
  • C、Developer Workbench
  • D、Command Line Processor

正确答案:B

第6题:

You need to ensure that the stored procedure that inserts new loan requests can access data in tables that are stored in another database on the same SQL Server instance. Which two actions should you perform?()

  • A、Ensure that the stored procedure and the tables are owned by users that are associated with the same SQL Server login.
  • B、Ensure that the stored procedure and the tables are owned by the same database user.
  • C、Ensure that the stored procedure and the tables use the same database schema.
  • D、Configure the multiuser database option on both databases.
  • E、Configure the cross-database ownership chaining option on both databases.

正确答案:A,E

第7题:

Which of the following tools for DB2 V9 allows a user to create and debug a SQL stored procedure?()

  • A、Control Center
  • B、Development Center
  • C、Developer Workbench
  • D、Stored Procedure Builder

正确答案:C

第8题:

A stored procedure object is created into which DB2 object?()

A.Alias

B.Schema

C.Package

D.Routine Space


参考答案:B

第9题:

A stored procedure object is created into which DB2 object?()

  • A、Alias
  • B、Schema
  • C、Package
  • D、Routine Space

正确答案:B

第10题:

You need to cleanse and standardize the data on potential survey participants prior to inserting it into the staging database. What should you do?()

  • A、Import the data into a staging table by using the OPENROWSET BULK statement. Execute a Transact-SQL stored procedure to cleanse the data and to insert the data into the database.
  • B、Import the data into a staging table by using the BULK INSERT statement. Execute a Transact-SQL stored procedure to cleanse the data and to insert the data into the database.
  • C、Create a SQL Server Integration Services (SSIS) package to import, standardize, and cleanse the data.
  • D、Create a CLR stored procedure to import the data into a staging table, to cleanse and standardize the data, and to insert the data into the database.

正确答案:C

更多相关问题