单项选择题
You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of two SQL Server 2008 instance. The two instances are respectively named InstanceA and InstanceB. There is a database named Dworks on InstanceA. You move the Dworks database to InstanceB. A user use a SQL Server login named Mary to access the database on InstanceA with the password "Tk@87#34". On InstanceB, you create the same SQL Server login. The user tries to use the SQL Server login Mark to access the Dworks database on InstanceB. But the user gets an error message, according to the indication of the message, the access to the Dworks database has been denied. You must make sure that the user can access the Dworks database on InstanceB successfully.
So on InstanceB, which Transact-SQL statements should you execute?()
A.USE AdventureWorks;ALTER USER Mary WITH LOGIN = Mary;
B.USE AdventureWorks;ALTER LOGIN Mary ENABLE;
C.USE AdventureWorks;ALTER LOGIN Mary WITH PASSWORD = "Tk@87#34" UNLOCK;
D.USE AdventureWorks;ALTER LOGIN Mary WITH DEFAULT_DATABASE = AdventureWorks;
相关考题
-
单项选择题
You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. There is a database named DB1 in the instance. In the Services schema, There is a table named Service.Table. The Services.Table has to be moved from the Sales schema to a new schema named Costs. In the options below, which Transact-SQL statement should you execute?()
A.ALTER TABLE Service.Table SWITCH TO Costs.Table1;
B.ALTER SCHEMA CostsTRANSFER Service.Table;
C.ALTER USER Service WITH DEFAULT_SCHEMA = Costs;
D.ALTER AUTHORIZATION ON Service.Table1 TO Costs; -
单项选择题
You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. There is a database named DB1 in the instance. The DB1 database contains the following stored procedure. (Line numbers are useded for reference only.) 01 CREATE PROCEDURE Sales.Procedure1 02 AS 03 IF OBJECT_ID(Service.Table) IS NOT NULL 04 DROP TABLE Service.Table; 06 CREATE TABLE Service.Table ( 07 Id int PRIMARY KEY CLUSTERED, 08 Name varchar(100); 09 ); 11 ... 12 GOThe following exception is raised when a user tries to invoke Procedure1, "Msg 262, Level 14, State 1, Procedure Procedure1, Line 5 CREATE TABLE permission denied in database DB1." You should grant the user access to execute Procedure1, you must assign only the required permissions. What action should you do perform?()
A.Between lines 01 and 02, you should insert the WITH EXECUTE AS 'dbo' clause.
B.Between lines 01 and 02, you should insert the EXECUTE AS USER = 'dbo' statement.
C.You should give the user the ALTER permission on the Service schema
D.You should give the CREATE TABLE permission and permit the user to drop the Service.Table table. -
单项选择题
You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. Now according to the requirement of the company CIO, users on the SQL Server instance must be able to use the OPENROWSET() function to query remote data source. In the options below, which sp_configure configuration option should you configure?
A.Agent XPs
B.remote access
C.remote proc trans
D.Ad Hoc Distributed Queries
