Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2006, 02:19 PM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Contradictory answers

Hi All,

I am preparing for 70-229 and I am going through both TestKing and UCertify materials. Well for a particular question, I found two different answers from these two. I am giving here my question below:

You have two SQL Server 2000 computers named CORP1 and CORP2 where both use SQL server Authentication. CORP2 stores data that has been archived from CORP1. At the end of the month data is removed from CORP1 and transferred to CORP2. You are designing quarterly reports that will include data from both CORP1 and CORP2. You want the distributed queries as quickly as possible.

Now what three actions should You take:

(For both TestKing and UCertify the given options are same)

According to TestKing the answer is:

1)Create a stored procedure that will use the fully qualified table name on CORP2 to retrieve data.
2)On CORP1, execute the sp_addlinkedserver system stored procedure.
3)On CORP1, execute the sp_addlinkedsrvlogin system stored procedure.

According to UCertify the answer is:

1)Create a script that uses the OPENQUERY staement to retrieve data.
2)On CORP1, execute the sp_addlinkedserver system stored procedure.
3)On CORP1, execute the sp_addlinkedsrvlogin system stored procedure.

So there is a contradiction.

Please let me know if anybody has any clue.

Thanks.

 
Old June 22nd, 2006, 08:14 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

They arent contradictorary in that they both give you an answer as to how to connect to another sql server on your network.

For example

SELECT * from corp2.database.dbo.table

is the same as

OPENQUERY(corp2, 'Select * from table)

in both cases though you have to call sp_addlinkedserver before you try to execute these commands.

I would say to just remember that both do the same thing then, regardless of what is on the exam, you will know that both do the same thing.

Hth

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
i need answers ???????? saudyonline ADO.NET 2 October 9th, 2004 11:47 AM
Answers dcoleman31p Forum and Wrox.com Feedback 5 November 12th, 2003 12:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.