Click here to Skip to main content
15,887,083 members
Home / Discussions / Database
   

Database

 
GeneralRe: Newbie SQL question Pin
David Crow24-Oct-08 2:50
David Crow24-Oct-08 2:50 
JokeRe: Newbie SQL question Pin
Mycroft Holmes23-Oct-08 19:50
professionalMycroft Holmes23-Oct-08 19:50 
GeneralRe: Newbie SQL question Pin
David Crow24-Oct-08 2:38
David Crow24-Oct-08 2:38 
GeneralRe: Newbie SQL question Pin
Mycroft Holmes24-Oct-08 5:29
professionalMycroft Holmes24-Oct-08 5:29 
QuestionLinked Server performance Pin
Bassam Saoud23-Oct-08 6:53
Bassam Saoud23-Oct-08 6:53 
AnswerRe: Linked Server performance Pin
Wendelius23-Oct-08 8:24
mentorWendelius23-Oct-08 8:24 
GeneralRe: Linked Server performance Pin
Bassam Saoud23-Oct-08 8:29
Bassam Saoud23-Oct-08 8:29 
GeneralRe: Linked Server performance Pin
Wendelius23-Oct-08 8:51
mentorWendelius23-Oct-08 8:51 
It's quite impossible to generally say if it helps or not. If you can write the view so that it restricts rows on target, it will help. What I'm after is for example something like this:

On local server
- SELECT * FROM View WHERE ... (returns 100 rows)
- view on local server fetches all rows from linked server based on a view on linked server

on linked server
- a view fetches only those rows that are potentially needed on the other side (let's say 1000 rows)
- the table on linked server has for example on million rows

So in the case above, there's only need to transfer 1000 rows (or less, depending on the view and the conditions in the select statement) through the link instead of million rows. This will greately speed up the operation.

Try using Query Analyzer (execution plan) to investigate what actually happens. This will give you a good idea about the bottleneck. If you cannot see operations performed on the linked server side via execution plan, you can bring all the data to the same database, investigate it and when row elimination is done as early as possible, implement the solution on both sides.

Hope this helps,

Mika

The need to optimize rises from a bad design.

My articles[^]

GeneralRe: Linked Server performance Pin
Bassam Saoud23-Oct-08 8:52
Bassam Saoud23-Oct-08 8:52 
GeneralRe: Linked Server performance Pin
Wendelius23-Oct-08 8:56
mentorWendelius23-Oct-08 8:56 
GeneralRe: Linked Server performance Pin
PIEBALDconsult29-Oct-08 5:52
mvePIEBALDconsult29-Oct-08 5:52 
QuestionSQLServer and Lotus Notes Pin
Tim Carmichael23-Oct-08 6:28
Tim Carmichael23-Oct-08 6:28 
AnswerRe: SQLServer and Lotus Notes Pin
Mycroft Holmes23-Oct-08 11:59
professionalMycroft Holmes23-Oct-08 11:59 
QuestionSSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP23-Oct-08 5:56
professionalSIJUTHOMASP23-Oct-08 5:56 
AnswerRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
Wendelius23-Oct-08 8:28
mentorWendelius23-Oct-08 8:28 
QuestionRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP23-Oct-08 8:50
professionalSIJUTHOMASP23-Oct-08 8:50 
AnswerRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
Wendelius23-Oct-08 8:59
mentorWendelius23-Oct-08 8:59 
QuestionRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP23-Oct-08 10:29
professionalSIJUTHOMASP23-Oct-08 10:29 
AnswerRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP24-Oct-08 7:01
professionalSIJUTHOMASP24-Oct-08 7:01 
GeneralRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
Wendelius24-Oct-08 7:32
mentorWendelius24-Oct-08 7:32 
GeneralRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
SIJUTHOMASP24-Oct-08 7:57
professionalSIJUTHOMASP24-Oct-08 7:57 
GeneralRe: SSIS package when executed as Job not printing even the job executes successfully! Pin
Wendelius24-Oct-08 8:01
mentorWendelius24-Oct-08 8:01 
QuestionIndex vs Param Pin
E_Gold23-Oct-08 5:55
E_Gold23-Oct-08 5:55 
AnswerRe: Index vs Param Pin
David Mujica23-Oct-08 6:31
David Mujica23-Oct-08 6:31 
GeneralRe: Index vs Param Pin
E_Gold23-Oct-08 10:03
E_Gold23-Oct-08 10:03 

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.