Is There any difference in Set @Var=ColmnName and Select @Var =Column from Table. I am using it in SSIs for Dynamic Packages

hey there, Kindly elaborate me the difference Between Set and Select clause while Providing value to a Variable or Even  a  Column.
    Declare @var nvarchar(Max)
    Set @var= (Select TestName+ cAst(TestId as nvarchar) from TblTest where TestID=1)
    Insert into TblTest(TestName)
    Values (@var)
    Declare @var nvarchar(Max)
    Select @var= (Select TestNAme + Cast(TestId as Nvarchar(MAx)) from TblTest Where TestID=1)
    Insert into TblTest(TestName)
    Values(@var)
Values and result I am getting is Same in Both.
But just wondering if there is any Difference. and if Any which Should I prefer.
And Which one uses less Resources.

I like this article
http://vyaskn.tripod.com/differences_between_set_and_select.htm
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • Is there any difference in SAP 4.7 and ECC 5.0

    Dear,
    Is there any difference in SAP 4.7 and ECC 5.0...
    Thanx & Regards,
    Mohammad Nabi

    Hi,
    Check this out
    Hi I'm providing the ECC 6.0 functionality if you knows the
    4.7EE the difference is as follows:
    ECC 6.0 New GL Functionality
    1.Activate the New General Ledger Accounting by a single
    click on the clock icon
    2.You will reach to change view "activation of New GL A/cg"
    detail screen and tick the checkbox and save.
    3. After activation of New General Ledger Accounting, you
    exit the IMG screen when you re-enter, you find that a new
    node is added Financial Accounting (New)
    4.After activation of New General Ledger Accounting; a new
    sub node appears in the IMG structure.
    This sub node is Define Segment
    The menu path is:
    SAP Customizing IMG ---> Enterprise Structure -
    >
    Definition --> Financial Accounting --> Define Segment
    In this IMG activity, you define your segments.
    If you then define your profit centers, you can enter an
    associated segment in the master record of a profit center.
    The segment is then derived from the assigned profit center
    during posting.
    5. Activation has created a new field in Profit Center
    Master Record: the SEGMENT
    6.Leading and Non- Leading Ledgers
    In General Ledger Accounting, you can use several Ledgers
    in parallel. This allows you to produce financial
    statements according to different accounting principles. A
    ledger uses several dimensions from the totals table it is
    based upon. When defining Ledgers, one must be defined as
    the Leading Ledger. The Leading Ledger is based on the same
    accounting principles as that of the consolidated financial
    statements. It is integrated with all subsidiary ledgers
    and is updated in all company codes. This means that it is
    automatically assigned to all company codes. In each
    company code, the Leading Ledger receives exactly the same
    settings that apply to that company code : the currencies,
    the fiscal year variant and posting period variant .
    You must designate one of your ledgers as the Leading
    Ledger. It is not possible to designate more than one
    ledger as the leading ledger.
    The menu path is:
    SAP Customizing IMG -
    > Financial Accounting (New) -
    >
    Financial Accounting Basic Settings (New) -
    > Ledgers ---
    -> Ledger -
    > Define Ledgers for General Ledger
    Accounting
    Clicking on the checkbox identifies one of your ledgers as
    the Leading Ledger.
    7. Activation of Non Leading Ledgers
    Non Leading Ledgers are parallel ledgers to the Leading
    Ledger . They can be based on local accounting principle,
    for example. You have to activate a non- Leading Ledger for
    individual company codes. Non- Leading Ledgers can have
    different fiscal year variants and posting period variants
    per company code to the Leading Ledger of this company
    code.
    The menu path is :
    SAP Customizing IMG -
    > Financial Accounting ( New ) -
    > Financial Accounting Basic Settings (New) -
    > Ledgers -
    ---> Ledger -
    > Define and Activate Non --Leading
    Ledgers
    8.Assign scenarios to ledgers
    A Scenario combines Customizing settings from different
    business views. Each business view specifies which posting
    data is transferred from different application components
    in General Ledger Accounting, such as cost Center update or
    Profit Center update .You assign the desired scenarios to
    your ledgers. For each ledger, you define which fields are
    filled with posting data from other application components.
    SAP delivers a number of scenarios in the standard system.
    It is not possible to create additional scenarios.
    The menu path is:
    SAP Customizing IMG -
    > Financial Accounting (New) -
    > Financial Accounting Basic Settings (New) -
    > Ledgers -
    --->Fields -
    > Display Scenarios for General Ledger
    Accounting.
    9. Cost of sales accounting
    Cost of sales accounting is a way to create a profit and
    loss statement (P&L) for a company by comparing the
    revenues to the costs or expenses incurred to obtain these
    revenues.
    The expenses are mainly divided by functional area such as:
    Manufacturing
    Administration
    Sales
    Research and Development
    We can activate Cost of Sales Accounting by the following
    menu path :
    SAP Customizing IMG -
    > Financial Accounting ( New ) -
    -> Financial Accounting Basic Settings (New) -
    >
    Ledgers ->Ledger---> Activate Cost of Sales Accounting
    Offsetting Account Report ECC 5.0
    Offsetting account report for vendors in ECC 5.0 is
    possible after implementing the OSS Note 1034354
    Reward if helpful.
    Regards
    Ravi

  • Is there any difference in quality between mp4 and m4v?

    Is there any difference in quality between mp4 and m4v? I am figuring out how best to save old VCR files. Is the 264 category the best?

    So, what would that software be? Anything that I mentioned, e.g., iMovie? Any Video Converter?
    I'm a Mac user so I want files that play "natively" in QT X, QT 7, QL, iPod Touch, iPhone, iPad, and/or TV players. This means I want the H.264/AAC compressed data in MOV, MP4, or M4V file containers. I can use QT 7 Pro, MPEG Streamclip, and /or QT X to move MPEG-4/AAC compressed data to MOV file containers, MPEG Streamclip to movie M4V and MOV MPEG-4/AAC data to MP4 file containers, and Subler to move MP4 or MOV MPEG-4 AVC/AAC/AC3/Chapter data to M4V file containers. This is strictly a simple "copy" operation and no recompression of data is involved. (I.e., the quality is not changed.)
    iMovie is a video editor and it forces an export conversion of your project once completed which can degrade quality. Have never used the Any Video Converter so I don't know if it has an audio and/or video "passthrough" feature for data already in a compatible compression formats. If it doesn't then any conversion it makes has the potential to degrade video content.
    As to AVI, this is a legacy file container abandoned by Microsoft a dozen years ago in favor of their modernized WMV compression format/file type products. Compared to MKV, AVI is an outmoded/out-of-date container which I don't recommend you use unless you are a glutton for punishment. However, if you must use it, then you might try the AvidMux app. It can "copy" compatible content to a number of file container types—including AVI and MKV. Just don't blame me if its use creates more problems than it solves on current Mac systems.

  • Is there any difference between the commerical product and the Teacher/Student version?

    In Adobe Photo Shop Elements 13 and Premiere Elements 13 is there any difference between the commerical product and the Teacher/Student version? I don't remember them having two versions in the past.

    Is there a difference? Sure. Will it be noticable? Maybe.
    The 9i client will use one of the 9i ODBC drivers. The 8i client will use one of the 8i ODBC drivers. The 9i drivers will generally have more bug fixes & more features than the 8i drivers. It is possible, though rare, that the 9i drivers will fix a bug whose behavior your application was dependent on and/or introduce bugs that were not in the earlier version. Of course, you have to consider the different features of the underlying clients as well-- i.e. a 9.2 Oracle client cannot communicate with a 7.3.4 database, an 8i client doesn't know how to handle data types introduced in 9i (i.e. TIMESTAMP), etc.
    Justin

  • Is there any difference running W7Pro 64 bit and 32 bit for Adobe Acorbat 9 Pro Extended

    My primary system runs Windows 7 Pro 64 bit system. My other system runs a 32 bit system.  I would like to buy Adobe Acrobat 9 Pro Extended. Is there any difference with running it on either systems? Or will one version work on both the 64 bit and 32 bit systems.

    It would work on both systems, but you no longer can buy Acrobat 9...
    Mylenium

  • Is there any difference between sun solaris 8 and windows for Garb.Collecti

    Hi All,
    is there any difference between refreshing the java virtual memory between sun solaris 8 and windows.i am fetching 25 records for every search action.in windows usage of java virual memory is 5 mb after every search it refreshes the memory.while using the same code in sun solaris 8 it throws heap out of memory error and for every search it wont refresh the memory.

    Some other related links
    http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
    http://e-docs.bea.com/wls/docs81/perform/JVMTuning.html

  • Is there any difference between amd 7640m 1GB and amd 7670m 2GB graphics performance...?

    Hello experts,
                              I have a question regarding laptop gaming performance.
    I have HP Pavilion G6 2005ax with AMD 7640g + 7670m (1.5 GB) graphics. But gaming performance is not awesome. It's not capable to run latest PC game at highest settings.
    My question is that Is there any difference between AMD 7640g + 7670m (1.5 GB) and AMD 7640g + 7670m (2.5 GB) graphics cards performance...?
    One graphics card hase 7670m 1GB and second one has 7670m 2GB graphics RAM.
    So which one perform better and why....?
    Should I upgrade AMD 7670m 1GB to AMD 7670m 2GB to play latest pc games at highest settings.....?
    Netbook configuration----- 
    HP Pavilion G6 2005AX
    AMD A-8 4500m processor
    4GB RAM
    AMD 7640g + 7670m (1.5 GB)
    5ooGB HDD

    CSsingh wrote:
    .... One graphics card hase 7670m 1GB and second one has 7670m 2GB graphics RAM. So which one perform better and why....?
    Hi,
    Same GPU but more RAM will perform better. You have to make decision before hand, upgrading it is a pain.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Is there any difference between a WinNT VI and a Win98 VI?

    Hello!
    I have been writing a VI using Labview 6.1 on a WinNT machine. When I build it into an application and place it on a machine running the run-time engine and Win98, it doesn't work.
    It works fine on the NT machine, but not on the 98 machine. I've read where you should be able to transfer between the different Win versions, so I'm at a loss to explain why there would be any difference in the two.
    Thanks,
    Dave Neumann
    [email protected]

    Oops. I guess my question was awfully open-ended wasn't it?
    OK, here's the deal.
    The VI I created is simply trying to toggle outputs on a digital I/O card. Nothing complicated.
    On the WinNT machine, I can toggle the outputs. When I set them high, I see a high voltage from the card. It remains high until I switch it low, when the voltage drops. This is good.
    On the Win98 machine, I attempt to toggle the output high, and I hear the click of a relay, and a short current spike, but the voltage does not remain high. When I switch back to low I get no response back at all. The voltage remains low the entire time, with a small impulse jump when I try to set it high.
    We assume that the card is switching high, then immediately switching low ag
    ain, not holding the high state.
    The card on the Win98 machine, however, DOES work with the software included with the card, so we know it can toggle it's outputs.
    The Win98 and WinNT machines are nearly identical in their components, with the exception of their OS.
    The card I'm attempting to use is a Quatech PXB-32IO/PCI I/O card.
    Hope this clears it up a little!
    Thanks for the help,
    Dave Neumann
    [email protected]

  • Is there any way to set a calendar event in MS Outlook from Oracle Forms

    I need to set and delete events in MS Outlook from an Oracle Form (version 10gR2).
    Is there any way to accomplish this?
    Thanks

    You will need to use OLE on the client, which would further require the use of WebUtil. Here (below) are a couple of MS examples that you would need to convert to pl/sql. There are a variety of Oracle notes which discuss reading and writing to MS Word and Excel. These can likely be used as a starting place to talk to Outlook. There is a WebUtil demo which includes an example of how to write to MS Word. It can be found on the WebUtil home page:
    http://www.oracle.com/technetwork/developer-tools/forms/webutil-090641.html
    <li> http://support.microsoft.com/kb/160502
    <li> http://support.microsoft.com/kb/170262

  • Is there any difference between the old iPod and the new one?

    Hello everyone,
    first of all i'd like to thank you for reading my post:)
    My question is a simple one, i bought the new iPod Video 30 GB, and i came across a couple of questions while i was heading home with my new toy.
    How can i actually see the difference between this my new iPod and the one that they where selling before?
    Is there any visible difference amongst those two that i can notice?
    Thanks once again.

    Hello everyone,
    first of all i'd like to thank you for reading my
    post:)
    My question is a simple one, i bought the new iPod
    Video 30 GB, and i came across a couple of questions
    while i was heading home with my new toy.
    How can i actually see the difference between this
    my new iPod and the one that they where selling
    before?
    Is there any visible difference amongst those two
    that i can notice?
    The new update has a scroll feature on it to make it easier to search for songs on your ipod. It also lets you control the maximum volume your ipod can reach. It has better video quality as well. It lets you play games on your ipod (you have to download them from the Muisc Store)
    and thats about it! Have fun with your new ipod!
    kEat0n

  • HT2480 is there any difference in setting up an email account on an iphone than a blackberry?

    trying to set up company email on the iphone4s, I followed all the steps, but it will not connect.

    Totally, completely, different from a blackberry. On a BB you don't connect to your company's server, you connect to the RIM server which acts as a proxy for your company email server. You will need to get help from your IT department for settings for an iPhone.

  • Is there any way to set direction of syncing? I mean from desktop firefox to mozzila's servers or vice versa

    Hi
    Imagine I have a desktop Firefox and an Android Firefox. I create an account and sync desktop Firefox with Android Firefox. Now I disconnect sync in my Desktop.
    For one week sync is disconnected and I changed my bookmarks a lot. After a week I want to sync them again. But if I sync desktop I will lose my bookmarks! actually they return to last week.
    What can I do? I must create another account? Is this way reasonable?
    I use Firefox 32.0.3 and there is no pair device and other thing that were in previous versions.
    Thanks

    HI i.akbari,
    Thank you for using the new Firefox Sync. The new feature of this sync has a few changes.
    Yes, there is only one status for syncing between devices. All of the content is merged and each setting will only sync what you select. It is also not meant to be a back up service, just to sync data between devices.
    Please may a local back up of your profile. [[Back up and restore information in Firefox profiles]]

  • Does anyone know what triggers the switch between text and iMessage in the middle of a conversation? Are there any differences in billing between text and iMessage?

    In the middle of a text conversation between another iOS 5.0 iPhone user and myself, the conversation elements switched back and forth several times between Text and iMessage. The phone actually tracked it and put little lines indicating the switch, and my comments changed from green to blue and back again. I can't think of anything I changed in the middle of the conversation. I was outside WiFi range, using the Cell network at the time. Now I tried it again, while i'm on WiFI and the messages are Text (green) again.

    1. Windows 8.1 Enterprise w Update is the best. It allows you for sideloading in corporate environment without additional tools and licenses.
    http://technet.microsoft.com/en-us/windows/jj874388.aspx
    2. N series is for EU (without IE).
    3. Profesional is fine, but you will need some tools to achieve the same functionality that you have in "pack" Enterprise.
    4. VL is volume license, a type of license for multiple computers (to say it simply)
    5. MSDN forum is better alternative for problems like this.
    6. Attached to MSDN are licenses or at least references to web resources. Read license agreements carefully and let your installation and use follow the license.
    Rgds
    Milos

  • I am beginner in Flex unit ,Is there any difference in funtionality between flexunit and flex monkey

    I want test login page using flexunit to check whether its allowing unautherised access , how can i do that ,, please explain step by step .. its very urgent ..
    thanks

    FlexMonkey would be a much better choice for this type of request.
    FlexMonkey is for testing application level and component level concepts. FlexUnit is for testing units of code.

  • Is there any command line option, so that when I open firefox from command line it uses the already opened firefox, instead of creating a new firefox window.

    for example: this option is available with jedit editor.
    jedit
    above cmd always opens a new jedit instance.
    jedit -reuseview
    above cmd checks if there is a existing jedit instance if yes brings it to focus else opens up a new one.

    Start your '''Computer''' in safe mode with networking. Then start Firefox.
    After a bit, close it. Then open it a few minutes later.
    '''[http://encyclopedia2.thefreedictionary.com/Linux+Safe+Mode Starting The Computer In Safe Mode;<br>Free Online Encyclopedia]'''

Maybe you are looking for