There is on situation of re usability of code ,for which i am using sp.

Hi,
      Please suggest , can any thing else can be used for reusablility and performance.
I am using stored poc for reusablility of code.
CREATE TABLE @acb( id, name)
INSERT INTO @acb  EXEC [GETSP] @id
Select * From
xyz a
join @acb on a.id=b.id
yours sincerley

Raj,
Yes, stored procedures are a good option for reusability of code. But wrt your question, you havent clearly mentioned as to for what purpose you are in need of reusability?!?
If you are looking at a simple select statement logic, then you could even look at the option
of table valued functions.
These shud be a good start:
http://blog.sqlauthority.com/2011/08/26/sql-server-tips-from-the-sql-joes-2-pros-development-series-table-valued-functions-day-26-of-35/
http://www.codeproject.com/Articles/167399/Using-Table-Valued-Functions-in-SQL-Server
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

Similar Messages

  • Could you help me with an app situation? We purchased several codes for Splashtop to install on our iPad 2's. It was working great but now that we upgraded the OS they have disappeared. The codes that we purchased are giving us an error that they have alr

    Could you help me with an app situation? We purchased several codes for Splashtop to install on our iPad 2's. It was working great but now that we upgraded the OS they have disappeared. The codes that we purchased are giving us an error that they have already been used. So far it has only been 2 iPads. 
    Any solutions?

    The compiler is highlighting the areas you got wrong, although the error messages are somewhat confusing.
    Error 1: NSLog is a function and needs to be called as such, see e.g. the circleArea call on the line above. Functions are called using the function-name with its arguments in paratheses e.g. foo(12, 13).
    Error 2: looks like a typo, defining a function is done as function-name(... <arguments> ...) { ... <body> ...}. In your code there is a ";" between the arguments and the body that should not be there, you probably copy pasted it from the forward declaration at the top of the source codde file.

  • Is there any way to get a new redeem code for a movie?

    i lost the code for my Wolverine movie when someone threw out the movie case, is there any way to get a new one?

    Welcome to the Apple Community.
    Not as far as I know.

  • Is there a way to restrict the number of attempts for a remediated question using advanced actions?

    I have the following slides in my project:
    content slide 1
    content slide 2
    question slide 1
    question slide 2
    Question slide 1 is a question about content slide 1. Question slide 2 is a question about content slide 2. I would like to restrict the total number of attempts to two for each question. If question 1 is answered incorrectly on the first attempt, the learner would be returned to content slide 1 for review. Clicking the next button will take the learner back to the missed quiz question and allow them a second attempt to answer it correctly. If they answer it incorrectly again, it is scored as incorrect and the learner is taken to question slide 2.
    Can this be done or does remediation keep repeating until the learner answers the question correctly?
    If that is the case, can I achieve my objective by using advanced actions? And, if so, can you provide step by step instructions on how to do this?

    I think it could be possible, but giving you step-by-step instructions, sorry, that would take a lot of time. Did you use advanced actions already? My archived blog has a lot of use cases and tutorials, but I think it is not fair to ask on a forum for step-by-step instructions for each use case you want to create.  The most important thing will be to make sure that the user always remains in the Quiz scope, you can use the new system variable cpInQuizScope while testing. There is no system variable for attempts on question level, only one on Quiz level, so you'll have to create a user variable to track the attempts on question level. A big problem is that when you leave a question slide, without using the remediation work flow, the attempts are considered as finished. Personally I would prefer for that reason to not use the default question slides. You could try out a combination of remediation and advanced actions, never did test that?
    Lilybiri

  • Regression analysis: is there a way to calculate a rolling standard error for regression coefficient by using a single function?

    Hello - let's assume I want to calculate a rolling R-squared, so I would have something like =RSQ(A1:A10;B1:B10). Now, I need to calculate a rolling standard deviation for the slope coefficient. I'm wondering if there is a function that does this? Otherwise
    I will need to manually calculate the variance of the regression errors, which is impractical with a large data series (i.e. many rolling figures if I want to use windows of 10 data points each time). 
    Thank you!

    Hi,
    Thank you for posting in the MSDN Forum.
    Since the issue is more related to the Formla feature of Excel, I'd like to move it to Excel IT pro forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there anything similar to a "blur-cross" transition plugin for FCPX? I used this plugin all the time in FCP 6.

    Is there any transition for fcpX that may be similar to a "blur-cross" transition plugin I always used for fcp6?

    Did you try the Simple Blur? Could you remind me what the blur cross did that was different?

  • HT201320 Is there a way to have the Compose email button ask which account to use?

    This may be a feature request, more than a question, as I'm fairly certain that it's not possible (currently).
    I have multiple email accounts set up on my iOS devices (work and personal).  I have my defaults set for Contacts and Mail account, but still find it frustrating that I occassionally send personal email from my work account, or if I flip the defaults the other way, I send work contacts email from my personal account--which is worse, because then future work emails from those individuals often ends up going to my personal account due to their mail client auto-completing an address, and I miss work messages since I'm not monitoring my personal mail as often as work email during the day.
    So... I would love to see a Mail Settings feature that is simply an On/Off switch for "Ask which mail account to use on Compose".  If I hit compose, and I saw a screen saying "pick from your mail accounts" before I got to the compose window, this would automatically fix itself. 
    ALSO, smart account management would be cool.  If the mail client detected that most or all of my recipients were from mycompanydomain.com, yet my email send account was set to something other than mycompanydomain.com, it would be great if the Mail app would ask "Would you prefer to send this with your mycompanydomain.com account" after I hit the send button.

    Thanks.  The link you provided said it's not a valid url. (page not found)
    Here's the proper link:  http://www.apple.com/feedback/iphone.html

  • Is there any BADI or any other alternate in ECC for the Field exits

    Hi guys,
    Is there any BADI or any other alternate in ECC for the Field exits:
    FIELD_EXIT_BP_VERS_Z
    FIELD_EXIT_BP_VERSION

    Hi,
    If you are aware that these are the field exit funciton modules that get created when you create a field exit for the corresponding data element.
    Hence there will not be any replacement for this FM, But you need to find where the data element is triggering(the tcode) and check in debugging if there is any BADI/Enhancement Point.
    Hence check for which data element the FM belong to using the program RSMODPRF and check if they are globally activated, then they trigger on all the screen/transactions..(Tedious to replace with BADi/Enhancemnet points everywherre)
    If the field exit is activated for screens, check to which transaction the screens belong to and then check for enhancement point or badi that trigers on the screen..
    Hope this helps
    Regards
    Shiva

  • Is there a way to view the timecode in iMovie for Mac?

    Is there a way to view the timecode in iMovie for Mac?  This is such a basic feature needed for editing; I can't believe it wouldn't be available.  Am I missing something?

    Do the math means you know the timecode at the beginning of each clip and when you mouse over a transition or clip you know the clip length. If you trim the clip you see how much you are trimming. With these numbers you can caulate the cursor position or find the timecode value at any frame in the clip. I am not saying it is an elegant process by any means, but if you really need to, this will work. Obviously it is a grievius situation Apple has left us in regarding timecode.

  • My ipod nano was synced by itunes and removed all of my music and game files. I am in the process of adding my music back one cd at a time, but there is no history of tetris that I paid for from the itunes store. How can I get this game back for my ipod?

    My ipod nano was synced by itunes and removed all of my music and game files, and replaced my music with my kids music that they have put into the current itunes library. My music is nowhere to be found on my computer, so now  I am in the long, forever process of adding my music back one cd at a time, but there is no history of tetris that I paid for from the itunes store. How can I get this game back for my ipod?

    Contact iTunes support and explain your situation to them.  They may let you redownload it at no cost.
    http://www.apple.com/support/itunes/contact.html
    If they don't, I'm afraid you'll have to purchase it again.  Sorry.
    B-rock

  • Is there dvd software out there that allows you to create a dvd menu in which the viewer can choose to play different sequences of the videos offered?

    Is there dvd software out there that allows you to create a dvd menu in which the viewer can choose to play different sequences of the videos offered? It was described to me as a dvd matrix menu but I can't find anything like it for mac. The idea is that there are multiple videos on the dvd menu and you can choose to play "video A, then B, then C" or "video B, then C, then A", etc, in different orders each time. And it would play the sequence that you choose.

    meghanica wrote:
    I think that's on the right track but I'm wanting something that allows the viewer to choose the sequence when they're looking at the DVD menu. I only see how the creator of the DVD can make different sequences. It's a yoga tutorial DVD and we are wanting the viewer to be able to pick a sequence from the menu items as such: pick one of the 3 warm-up videos, then pick one of the 2 yoga practices and then pick 1 of the 3 cool-down videos and then the dvd will play the sequence of selected warm up, practice, then cool down. And it can be differently chosen every time the viewer uses the menu.
    You can do this on a DVD with DVD Studio Pro.
    DVD's have some very basic storage called SPRM/GPRM scripting IIRC.
    There are a few tutorials around for DVDSP…
    http://www.kenstone.net/fcp_homepage/dvd_language_nattress.html
    http://www.digitalproducer.com/article/DVD-Studio-Pro-Scripting-Part-4-28784
    You use scripts to set values that are stored in a tiny amount of memory on the player & then have to use additional scripts to respond to the values set, so that at the end of a sequence it will jump to the one a user previously chosen.
    Some things to consider…
    DVD's have limits on the number of chapters & titles, you need to plan around that.
    Some DVD players are terrible to navigate, the settings that a user selects will be forgotten when the player is powered off. Users will need to make the choices over & over, every time they use the DVD (computers may remember it - I haven't tested this in years).
    You will also need to setup many variations of menus to be able to indicate what selections they chose.
    It is not a trivial task, you may want to hire a programmer to set it all up.
    Testing is also a lot of work - too many combinations can quickly cause issues for testing, different players can also do odd things too.
    I have used scripting for basic, 'play all' or 'play chapter' menus where the video is encoded once on the DVD & the scripts will either play through, or simply play a chapter & return to the same menu.
    You may find that it would be better to invest in setting up a website with this. On a custom site it would be possible for users to save a playlist or several, they can also share playlists etc, it would be more flexible & usable IMO.
    See roaring apps for info on others who have used DVD Studio Pro with various OS's…
    http://roaringapps.com/app/dvd-studio-pro …it looks like 10.8 may be the last OS to work correctly with DVDSP.
    Other DVD authoring apps may be able to do GPRM scripting too, but you will have to search for them.
    I think the registers are part of the DVD spec, so devices should support them, https://en.wikipedia.org/wiki/DVD-Video

  • Situation about SUN-Oracle ODF Plugin for MicrosoftOffice

    Dear Oracle!
    Sorry I did not find any other appropriate forum here! Please tell me where should I place it.
    What's up with this product?
    "Oracle ODF Plug-in for Microsoft Office":
    http://www.oracle.com/us/corporate/accessibility/templates/t2314.html#information
    What is the current legal situation about the usage of this product?
    It is neither present on Oracle's site nor on the Apache OpenOffice project site.
    What happened to this product after the Oracle > Apache OpenOffice handover?
    Currently what usability and license conditions are valid for this product?
    Can this product be installed and used for free at any use? Even for government computers?
    Thank you for your answer!
    Best regards,
    Rita Garrone

    910203 wrote:
    Dear Oracle!
    Sorry I did not find any other appropriate forum here! Please tell me where should I place it.
    What's up with this product?
    "Oracle ODF Plug-in for Microsoft Office":
    http://www.oracle.com/us/corporate/accessibility/templates/t2314.html#information
    What is the current legal situation about the usage of this product?
    It is neither present on Oracle's site nor on the Apache OpenOffice project site.
    What happened to this product after the Oracle > Apache OpenOffice handover?
    Currently what usability and license conditions are valid for this product?
    Can this product be installed and used for free at any use? Even for government computers?
    Thank you for your answer!
    Best regards,
    Rita GarronePerhaps you should have contacted the email at the top of that page...
    >
    For more information regarding the accessibility status of this product or other Oracle products, please contact: [email protected]

  • There was no way to order AppleCare for the iPhone 5 using the online AppleStore to have it activated automatically. Am I missing something?

    There was no way to order AppleCare for the iPhone 5 using the online AppleStore to have it activated automatically. Am I missing something?

    I must have missed the option to add AppleCare+ to my iPhone 5 pre-order, too.  Fortunately, I was able to obtain confirmation from an Apple representative that AppleCare+ can still be added to a new iPhone 5 within 30 days of the device's ship date.
    My iPhone 5 Ordering Situation:
    Successfully submitted pre-order at 2:05am CST
    Realized I did not add AppleCare+
    Tried to add it as a separate product
    Unable to add AppleCare+ after submiting pre-order
    This Morning:
    I just got off the phone with an Apple representative.  He assured me that, once my iPhone 5 arrives on September 21, I will be able to: 1) call 1-800-MY-APPLE and have AppleCare+ added to my iPhone 5;  2) go into an Apple Retail Store and have AppleCare+ added to my iPhone 5.  He said I would have thirty days from my device's ship date (September 21) to add AppleCare+ to it.  He also recommended that, if I wanted to have AppleCare+ added at an Apple Retail Store, I should make an appointment as soon as possible.  Because I was still concerned something might go wrong, the Apple representative emailed me a copy of my case number to use as a reference in case I have any issues obtaining AppleCare+ on September 21.
    Caveats & More Information:
    I ordered through the Apple Store app on my iPhone 4
    I live in the United States
    My carrier is AT&T
    I have a case number and repeated assurances from an Apple representative
    While your situation may differ from mine I do hope you're able to add AppleCare+ to your iPhone 5 once it arrives, either by calling 1-800-MY-APPLE or by making an appointment at your nearest Apple Retail Store.
    Best Wishes,
    Dylan

  • When in I tunes the Genuis recomendations has not refreshed since I intalled the newest version.  Only show 5 covers and only 2 song tiitles.  Never gives me new choices which I do use for finding new music.  Any ideas out there?

    When in Itunes the Genuis recomentations do not refresh at all ever since i installed the new version of Itunes.  The same two songs and the same 5 cd cover have been there and do not change like the did before.  I do like using it for new music that I may not have heard before.  Any clues? Thanks.

    I agree... I am trying not to whine... but be helpful to others if they experience the same while get input before I make the decision to return (which I am leaning towards)… It’s still a great phone – but I expected something different. I also have been coming the internet and forums to see what other people think as well to make sure I am not being oversensitive about it. $300 for a 16gb is not buyers remorse kicking in… it’s just I am not sure if I see much of a difference from my perfectly good (8month old) iPhone 1st generation…
    But yes… if all iPhone 3G were problematic it would be in the news… so I err on the side that I may be a unique situation or simply did not make a well informed decision when going to 3G.
    Still… the idea of turning 3G off to get a full day of use out of an iPhone… even moderate use that most of us would expect w/o charging midway or multiple times is a bit much to swallow.
    I don’t want to bash and just looking for peoples reaction. I still really like Apple and the iPhone in general.

  • Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    ... when i click go - connect to server, it comes up with connection failed.
    If you're trying to connect to a Bonjour server on the remote network, that won't work over a layer 3 VPN. Use something like Hamachi or one of the SSH-tunnelling Bonjour proxy apps for that.

Maybe you are looking for

  • How to use betrg and sumbb in FM?

    Hi experts, The specification given is to get the personal_no(pernr),Complete name(CNAME) of the employees who are having active status i.e(STAT2 = 3) is the condition  from pa0000,and for that list of employees get the  basic pay(BETRG) using "HR_Re

  • URGENT!!!Can't login into Performance Management.

    Post Author: doris CA Forum: Performance Management and Dashboards Hi all,        I can't access into the performance management. After i login into INFOVIEW and click on the performance management button, it lead me to the error below. Besides that,

  • Lightroom CC error message - cannot open previews - program closes when hit ok

    Suddenly after using Lightroom CC for several months, I cannot open it.  I get an error message saying "Lightroom encountered an error when reading from preview cache" and has to close; will fix next time.  Many times later, still cannot open it.  An

  • ITunes 11 crashes on startup

    Whenever I start up iTunes it runs for a few seconds and then crashes.

  • What do you do if...

    the download doesn't start? (Adobe Flash CS3 Professional Free Trial)