Click here to Skip to main content
15,902,893 members
Home / Discussions / Database
   

Database

 
GeneralRe: Performance Question about SQL 2005 Pin
Ennis Ray Lynch, Jr.23-Jan-09 3:07
Ennis Ray Lynch, Jr.23-Jan-09 3:07 
GeneralRe: Performance Question about SQL 2005 Pin
Wendelius23-Jan-09 3:29
mentorWendelius23-Jan-09 3:29 
GeneralRe: Performance Question about SQL 2005 Pin
felopater23-Jan-09 9:46
felopater23-Jan-09 9:46 
GeneralRe: Performance Question about SQL 2005 Pin
Wendelius23-Jan-09 9:48
mentorWendelius23-Jan-09 9:48 
QuestionLinked-Server SQL Server 2000 Pin
Indra PR22-Jan-09 20:57
Indra PR22-Jan-09 20:57 
AnswerRe: Linked-Server SQL Server 2000 Pin
Wendelius22-Jan-09 21:34
mentorWendelius22-Jan-09 21:34 
GeneralRe: Linked-Server SQL Server 2000 Pin
Indra PR22-Jan-09 21:56
Indra PR22-Jan-09 21:56 
GeneralRe: Linked-Server SQL Server 2000 Pin
Wendelius22-Jan-09 22:17
mentorWendelius22-Jan-09 22:17 
Indra PR wrote:
I've read something about this before, it is said that the performance will be better if we create a temporary table from the table in other database first.


That can be part of the solution but not the solution itself. The main point is how much data you tranfer through the link. Fore example if you have a query like
select ...
from linkedservertable 
join localtable
where ...

SQL Server may have transfer the whole linked server table to this server before the join or row elimination can be done. If the same query can be written to format
select ...
from localtable
(possibly join to linkedservertavle)
where joiningcolumn in (select keycolumns
                        from linkedservertable
                        where restrictive conditions...)

the performance may be very different since the elimination may be done at the linked server. This is a very simple example, but hopefully points out the idea. Temporary tables can be used for that exact purpose if the operation cannot be re-written otherwise.

Indra PR wrote:
then it is right for me to use linked-server, and I don't have any other choice of this


Based on your description I would say that linked server is a good way to handle your situation.

One more thing. If you insert/update/delete your data on both servers in a same transaction you are forced to use distributed transactions. MS DTC takes care of this, but it's good to know that this will add extra overhead to transaction handling, which then again makes the operation a bit slower. However if you want the transaction to be ACID, that's the correct way to do it.

The need to optimize rises from a bad design.My articles[^]

QuestionProblems with SQL Server 2000 connection Pin
Indra PR22-Jan-09 20:52
Indra PR22-Jan-09 20:52 
AnswerRe: Problems with SQL Server 2000 connection Pin
Wendelius22-Jan-09 20:57
mentorWendelius22-Jan-09 20:57 
GeneralRe: Problems with SQL Server 2000 connection Pin
Indra PR22-Jan-09 21:06
Indra PR22-Jan-09 21:06 
GeneralRe: Problems with SQL Server 2000 connection Pin
Wendelius22-Jan-09 21:24
mentorWendelius22-Jan-09 21:24 
AnswerRe: Problems with SQL Server 2000 connection Pin
Aman Bhullar22-Jan-09 21:17
Aman Bhullar22-Jan-09 21:17 
GeneralRe: Problems with SQL Server 2000 connection Pin
Indra PR22-Jan-09 21:40
Indra PR22-Jan-09 21:40 
GeneralRe: Problems with SQL Server 2000 connection Pin
Aman Bhullar23-Jan-09 2:27
Aman Bhullar23-Jan-09 2:27 
GeneralRe: Problems with SQL Server 2000 connection Pin
Indra PR23-Jan-09 19:30
Indra PR23-Jan-09 19:30 
Questionactually i have a database table have four fields rnkid, rnkartid,rnkuserid and rnk marks i want sum all the marks which have same rnk art id . pls hel tell how Pin
anujanujanuj22-Jan-09 17:52
anujanujanuj22-Jan-09 17:52 
AnswerRe: actually i have a database table have four fields rnkid, rnkartid,rnkuserid and rnk marks i want sum all the marks which have same rnk art id . pls hel tell how Pin
Wendelius22-Jan-09 18:12
mentorWendelius22-Jan-09 18:12 
QuestionT-Sql programming in Sql server 2005 Pin
maheesh22-Jan-09 17:33
maheesh22-Jan-09 17:33 
AnswerRe: T-Sql programming in Sql server 2005 Pin
Wendelius22-Jan-09 18:14
mentorWendelius22-Jan-09 18:14 
QuestionTransfer the data from xls sheet to sqlserver using SSIS Pin
bruze22-Jan-09 3:20
bruze22-Jan-09 3:20 
AnswerRe: Transfer the data from xls sheet to sqlserver using SSIS Pin
Wendelius22-Jan-09 3:30
mentorWendelius22-Jan-09 3:30 
AnswerRe: Transfer the data from xls sheet to sqlserver using SSIS Pin
Jon_Boy22-Jan-09 3:56
Jon_Boy22-Jan-09 3:56 
QuestionHow do I Backup all the Databases on Server 1 and Append Restore the Backup on Server 2 so it gets all the changes in the First Server, I will do this with 7 Servers in Progression so they Loop Every 15 Minutes. Pin
BobClarkSQL22-Jan-09 3:15
BobClarkSQL22-Jan-09 3:15 
AnswerRe: How do I Backup all the Databases on Server 1 and Append Restore the Backup on Server 2 so it gets all the changes in the First Server, I will do this with 7 Servers in Progression so they Loop Every 15 Minutes. [modified] Pin
Wendelius22-Jan-09 3:27
mentorWendelius22-Jan-09 3:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.