“SQL command” vs “Table or view” when importing entire tablesSSIS OLE DB Source Editor Data Access...

What is the wife of a henpecked husband called?

Can we use the stored gravitational potential energy of a building to produce power?

How do you funnel food off a cutting board?

Can a hotel cancel a confirmed reservation?

"On one hand" vs "on the one hand."

Does Windows 10's telemetry include sending *.doc files if Word crashed?

What does "at rest" mean involving data encryption?

Strange Sign on Lab Door

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

Can polymorphing monsters spam their ability to effectively give themselves a massive health pool?

I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

How to prove teleportation does not violate non-cloning theorem?

Manipulating a general length function

How can I improve my fireworks photography?

What's a good word to describe a public place that looks like it wouldn't be rough?

Why is working on the same position for more than 15 years not a red flag?

Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?

How experienced do I need to be to go on a photography workshop?

Why do neural networks need so many training examples to perform?

How can I deal with a significant flaw I found in my previous supervisor’s paper?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

What to do when being responsible for data protection in your lab, yet advice is ignored?



“SQL command” vs “Table or view” when importing entire tables


SSIS OLE DB Source Editor Data Access Mode: “SQL command” vs “Table or view”ETL: extracting from 200 tables - SSIS data flow or custom T-SQL?sql agent job hangs without any errors or warningsSSIS OLEDB Command not firing triggersdecrypt data in column before load into destinationEncapsulate table with viewHow to create Dynamic table in stored procedure?SSIS changes SQL Server source data type from date to WSTRSSIS OLE DB Source Editor Data Access Mode: “SQL command” vs “Table or view”Writing Date as text in Excel using SSISPerformance Implications of encrypted data in a Clustered Columnstore Index













5















When using an OLEDB source editor, is there a performance benefit or difference in using "Sql Command" over "Table or View" when you want the entire table?



This is a variation on this question, in which the asker is talking about scenarios where they only want one or some columns in a table - in which case there is a benefit to using "Sql Command", as a select * from is still executed in the background when using "Table or View" even when columns are unticked.



I've also found this entry on the MSDN blog which states it is more efficient when looking at views due to the use of OpenRowset and a SET ROWCOUNT 1 which results in an inefficient query plan being cached and reused for the actual execution.



But if you're loading in a table and want every column, is there still an advantage to using the "Sql Command" option over "Table or View"?










share|improve this question














bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Are you able to capture the SQL that is sent to the database with both options?

    – Joe Obbish
    Jun 25 '18 at 23:50
















5















When using an OLEDB source editor, is there a performance benefit or difference in using "Sql Command" over "Table or View" when you want the entire table?



This is a variation on this question, in which the asker is talking about scenarios where they only want one or some columns in a table - in which case there is a benefit to using "Sql Command", as a select * from is still executed in the background when using "Table or View" even when columns are unticked.



I've also found this entry on the MSDN blog which states it is more efficient when looking at views due to the use of OpenRowset and a SET ROWCOUNT 1 which results in an inefficient query plan being cached and reused for the actual execution.



But if you're loading in a table and want every column, is there still an advantage to using the "Sql Command" option over "Table or View"?










share|improve this question














bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Are you able to capture the SQL that is sent to the database with both options?

    – Joe Obbish
    Jun 25 '18 at 23:50














5












5








5


1






When using an OLEDB source editor, is there a performance benefit or difference in using "Sql Command" over "Table or View" when you want the entire table?



This is a variation on this question, in which the asker is talking about scenarios where they only want one or some columns in a table - in which case there is a benefit to using "Sql Command", as a select * from is still executed in the background when using "Table or View" even when columns are unticked.



I've also found this entry on the MSDN blog which states it is more efficient when looking at views due to the use of OpenRowset and a SET ROWCOUNT 1 which results in an inefficient query plan being cached and reused for the actual execution.



But if you're loading in a table and want every column, is there still an advantage to using the "Sql Command" option over "Table or View"?










share|improve this question














When using an OLEDB source editor, is there a performance benefit or difference in using "Sql Command" over "Table or View" when you want the entire table?



This is a variation on this question, in which the asker is talking about scenarios where they only want one or some columns in a table - in which case there is a benefit to using "Sql Command", as a select * from is still executed in the background when using "Table or View" even when columns are unticked.



I've also found this entry on the MSDN blog which states it is more efficient when looking at views due to the use of OpenRowset and a SET ROWCOUNT 1 which results in an inefficient query plan being cached and reused for the actual execution.



But if you're loading in a table and want every column, is there still an advantage to using the "Sql Command" option over "Table or View"?







sql-server sql-server-2012 ssis ssis-2012






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 21 '18 at 14:46









KaiKai

1405




1405





bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Are you able to capture the SQL that is sent to the database with both options?

    – Joe Obbish
    Jun 25 '18 at 23:50



















  • Are you able to capture the SQL that is sent to the database with both options?

    – Joe Obbish
    Jun 25 '18 at 23:50

















Are you able to capture the SQL that is sent to the database with both options?

– Joe Obbish
Jun 25 '18 at 23:50





Are you able to capture the SQL that is sent to the database with both options?

– Joe Obbish
Jun 25 '18 at 23:50










1 Answer
1






active

oldest

votes


















0














At one point in the product's past, selecting the table name from the drop down versus writing an explicit SELECT * FROM MyTable resulted in one fewer operation being performed. The table name selection did...something I can't reproduce now. It'd issue a command like though that resulted in a SELECT * but with an outer wrapper around it.



Profiler reports for 2014, it issued the command select * from [SB].[EventLog] A 2005/2008 instance would have indicated it did something like sp_somethingweird [SB].[EventLog]






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "182"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f210267%2fsql-command-vs-table-or-view-when-importing-entire-tables%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    At one point in the product's past, selecting the table name from the drop down versus writing an explicit SELECT * FROM MyTable resulted in one fewer operation being performed. The table name selection did...something I can't reproduce now. It'd issue a command like though that resulted in a SELECT * but with an outer wrapper around it.



    Profiler reports for 2014, it issued the command select * from [SB].[EventLog] A 2005/2008 instance would have indicated it did something like sp_somethingweird [SB].[EventLog]






    share|improve this answer




























      0














      At one point in the product's past, selecting the table name from the drop down versus writing an explicit SELECT * FROM MyTable resulted in one fewer operation being performed. The table name selection did...something I can't reproduce now. It'd issue a command like though that resulted in a SELECT * but with an outer wrapper around it.



      Profiler reports for 2014, it issued the command select * from [SB].[EventLog] A 2005/2008 instance would have indicated it did something like sp_somethingweird [SB].[EventLog]






      share|improve this answer


























        0












        0








        0







        At one point in the product's past, selecting the table name from the drop down versus writing an explicit SELECT * FROM MyTable resulted in one fewer operation being performed. The table name selection did...something I can't reproduce now. It'd issue a command like though that resulted in a SELECT * but with an outer wrapper around it.



        Profiler reports for 2014, it issued the command select * from [SB].[EventLog] A 2005/2008 instance would have indicated it did something like sp_somethingweird [SB].[EventLog]






        share|improve this answer













        At one point in the product's past, selecting the table name from the drop down versus writing an explicit SELECT * FROM MyTable resulted in one fewer operation being performed. The table name selection did...something I can't reproduce now. It'd issue a command like though that resulted in a SELECT * but with an outer wrapper around it.



        Profiler reports for 2014, it issued the command select * from [SB].[EventLog] A 2005/2008 instance would have indicated it did something like sp_somethingweird [SB].[EventLog]







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 27 '18 at 13:17









        billinkcbillinkc

        13.2k43775




        13.2k43775






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Database Administrators Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f210267%2fsql-command-vs-table-or-view-when-importing-entire-tables%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

            Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

            How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...