单项选择题
TestKing.com has two SQL Server 2005 computers named SQL1 and SQL2. A user in TestKing.com named Eric writes many ad hoc queries against the company databases.Eric has access to the Customer database on SQL1. He does not have access to the Sales database on SQL2. You need to ensure that Eric can write queries that join information from both servers.
What should you do first?()
A.Create a linked server on SQL1 to SQL2. Configure the linked server to use impersonation.
B.Create a linked server on SQL1 to SQL2. Configure the linked server to use mapped logins.
C.Instruct Eric to write the queries on SQL2 by using the OPENQUERY statement and specifying SQL1 as the server name.
D.Instruct Eric to specify SQL Server object names by using four-part notation.
相关考题
-
单项选择题
A new employee needs access to a SQL Server 2005 database that is located on a server named SQL1. You create a login named ajones by using the following Transact-SQL statement. CREATE LOGIN ajones WITH PASSWORD = ’SQLServer$1’ The new employee reports that when he logs in, he receives the following error message: "Login failed. The user is not associated with a trusted SQL Server connection." You need to resolve the error and allow the new employee to gain access to SQL1. What should you do?()
A.Change the SQL Server security mode from Windows Authentication mode to SQL Server and Windows authentication mode.
B.Change the SQL Server security mode from SQL Server and Windows Authentication mode to Windows authentication mode.
C.Ensure that the login name is created with square brackets ([]).
D.Give the login access to a specific database by using the CREATE USER Transact-SQL statement. -
单项选择题
TestKing.com has multiple servers in a distributed environment. You work with two SQL Server 2005 computers named SQL1 and SQL2. Each server uses SQL Server Authentication and they use different logins. You need to write a distributed query that joins the data on SQL1 with the data on SQL2. What should you do?()
A.Ensure that both SQL1 and SQL2 use the same login name as the security context foreach server.
B.Configure SQL2 as a remote server. Write the query on SQL1.
C.Configure SQL2 as a linked server to impersonate the remote login.
D.Configure SQL2 as a distributed server. Use pass-through authentication. -
多项选择题
TestKing.com uses SQL Server 2005. You are implementing a series of views that are used in ad hoc queries. The views are used to enforce TestKing.coms security policy of abstracting data. Some of these views perform slowly. You create indexes on those views to increase performance, while still maintaining the company’s security policy. One of the views returns the current date as one of the columns. The view returns the current date by using the GETDATE() function. This view does not allow you to create an index. You need to create an index on the view. Which two actions should you perform?()
A.Remove all deterministic function calls from within the view.
B.Remove all nondeterministic function calls from within the view.
C.Schema-bind all functions that are called from within the view.
D.Create the view and specify the WITH CHECK OPTION clause.
