Scripting option difference between SSMS 2012 and all previous versions

Hi,
I recently started to use SSMS 2012 (11.0.2100.60) and have seen some differences in scripting behavior of this version with previous ones (since V9). In previous versions when I want to modify a stored procedure, I right clicked on it
and selected “Modify”, and had a nice ALTER script. Now, I have a script using sp_executesql which is really not handy for SQL validation checks. After a research, I figured that I can change this behavior in the scripting options by changing the option “check
for object existence”. Great, it makes the deal!! In fact, no, because now, when I ask to script a DROP and CREATE on a table, I do not have the IF EXSIST part before the DROP anymore.
The behavior I try to have is:
When I hit “modify” on a procedure or other programmatic part, I would like to have an alter statement (DROP CREATE is fine too).
When I choose to script out an object as DROP and CREATE, I would like to have an existence check before the drop.
This is basically what SSMS did before the version 11 and was very helpful.
Regards,
Stef, DBA

Hi,
Thanks for your reply.
What do you think about the behavior?
Personally, I checked the links you sent. I cannot agree with sentences like “who cares about the outcome of the DROP when the CREATE
will still work”. When a script runs, it should run without errors, otherwise, how will you detect real issues in the noise? It’s like talking about “normal bug”. Also, “the create procedure must be in its own batch”, that’s what we did with the batch separator
GO.
A proper way to script database modifications (outside the tables itself) is to drop the object if it exists and to create it after.
Why? Because it works in any cases! Also, when I try to modify code, it’s convenient to have validation check against, and that’s why it’s convenient not to have dynamic code. It’s like coding large web sites in notepad. That’s what SSMS 10.50 and below did
perfectly.
I use script DROP CREATE capability when I prepare a migration script. Why should I write code when I have tools doing it for me? As
a DBA, I have to be critic about the script generated and to adapt it if necessary. The MODIFY option is when I debug some code. I expect the tool to validate as much mistakes as possible (yes I do mistakes and I admit it). Like I said before, it’s like working
with notepad as coding tool, it works, but who will do it?
I really would like to know if I’m alone on this position.
Just to make it easier to understand for other people, the following code is what is generated.
With SSMS 10.50.2806.0 (include IF NOT EXISTS clause = true):
Scripting a table as “DROP and CREATE”:
IF 
EXISTS
(SELECT
FROM
sys.objects
WHERE
object_id
=
OBJECT_ID(N'[dbo].[ScrapTable]')
AND
type
in
(N'U'))
DROP
TABLE [dbo].[ScrapTable]
GO
CREATE
TABLE [dbo].[ScrapTable](
                [ScrapID] [int]
NOT
NULL
ON [PRIMARY]
GO
Right click on my stored procedure and hit “Modify”:
ALTER
PROCEDURE [dbo].[GetScrap]
AS
BEGIN
SET
NOCOUNT
ON;
SELECT
FROM dbo.ScrapTable
END
With SSMS 11.0.2200.60 (check for object existence = false):
Scripting a table as “DROP and CREATE”:
DROP
TABLE
[dbo].[ScrapTable]
GO
CREATE
TABLE
[dbo].[ScrapTable](
[ScrapID]
[int]
NOT
NULL
ON
[PRIMARY]
GO
Right click on my stored procedure and hit “Modify”:
ALTER
PROCEDURE
[dbo].[GetScrap]
AS
BEGIN
SET
NOCOUNT
ON;
SELECT
FROM
dbo.ScrapTable
END
With SSMS 11.0.2200.60 (check for object existence = true):
Scripting a table as “DROP and CREATE”:
IF 
EXISTS
(SELECT
FROM
sys.objects
WHERE
object_id
=
OBJECT_ID(N'[dbo].[ScrapTable]')
AND
type
in
(N'U'))
DROP
TABLE
[dbo].[ScrapTable]
GO
IF
NOT
EXISTS
(SELECT
FROM
sys.objects
WHERE
object_id
=
OBJECT_ID(N'[dbo].[ScrapTable]')
AND
type
in
(N'U'))
BEGIN
CREATE
TABLE
[dbo].[ScrapTable](
[ScrapID]
[int]
NOT
NULL
ON
[PRIMARY]
END
GO
Right click on my stored procedure and hit “Modify”:
IF 
EXISTS
(SELECT
FROM
sys.objects
WHERE
object_id
=
OBJECT_ID(N'[dbo].[GetScrap]')
AND
type
in
(N'P',
N'PC'))
BEGIN
EXEC
dbo.sp_executesql
@statement
=
N'ALTER PROCEDURE [dbo].[GetScrap]
AS
BEGIN
                SET NOCOUNT ON;
                SELECT * FROM dbo.ScrapTable
END
END
SSMS 11.0 does it definitely in another way.
Regards,
Stef, DBA

Similar Messages

  • What's the difference between "My Contacts" and "All Contacts"?

    What's the difference between "My Contacts" and "All Contacts"?
    I have no other account other then my iCloud account (from what I can tell), but "My Contacts" has a significantly smaller number of contacts then "All Contacts".
    What's the difference?

    Thanks for posting the screenshots, that's helpful.  I didn't realize that you were looking at your groups.
    "All Contacts" include (as the name implies) all of your contacts.  Below that are any contact groups that you may have defined.  These would normally be such things as "Work", "Personal", "Doctors", etc.; any groups that you find useful to define.  These contain subsets of the "All Contacts" group.
    At some point, perhaps inadvertently, you must have created a group called "My Contacts", or imported it to iCloud from your computer.  At the time this may have contained all of your contacts and would have had the same number of contacts as the "All Contacts" group.  Then over time you probably added 433 additional contacts that were never part of the original "My Contacts" group, resulting in an "All Contacts" group that contained 1465 contacts.
    If you don't have any use for the "My Contacts" group, you can delete it by clicking on it on the left sidebar, click the gear icon on the lower left and choose Delete.  If you're concerned about doing this, you can make a backup of this group first by selecting it on the left sidebar, clicking on a single contact within the group, pressing Control-A to select them all (they should all be highlighted), then clicking the gear icon and choosing Export vCard.  This will create a .vcf file that can later be imported back to iCloud if you ever need to (by clicking the gear icon again and choosing Import vCard).

  • What are the difference between 4.6c and 4.7 versions?

    what are the difference between 4.6c and 4.7 versions?
    if any please give me answer
    regards
    ramanji

    Hi,
    Upgrade SAP or Installation of SAP R/3 and ECC
    What is ECC?  Where to find the installation steps of  ECC 5/6.0 with SQL as database and on windows platform with the steps including Solution Manager installation?
    http://service.sap.com/instguides
    ECC means Enterprise Central Component.
    There are all the relevant installation guides. You NEED SAPNet access because without a registered and licensed SolMan installation number you will not be able to generate the SolMan key for the ECC installation.
    Upgrade to 4.7
    Have you gone through an upgrade to 4.7? 
    What are the difference or changes associated with 4.7. 
    If you are currently on 4.6C and are inching forward to upgrading to 4.7 then this information might be useful to you.
    There is very little difference between 4.6 and 4.7, the only "steps" you should need are steps in SU25 ( skip step 1) Then go through all your role and perform a merge old new to bring in the new authorization objects 
    Just to forewarn you of a potential problem which have been encounter at the point of writing.
    After updating/ modifying roles in step 2C, when going back into 2C to make sure all roles are now green, 70% have gone back to red! 
    The maintenance done is ok, but there seems to be a problem while trying to go back into the roles again to re-generate. 
    SAP recognizes them as needing "adjustment", so you cannot pick them up in mass generate in PFCG as they do not come in, even though the authorizations tab is red. 
    This problem is currently with SAP and it is confirmed that nothing have been done wrongly. 
    Generally, the work is quite manageable in the upgrade, but don't be surprised at how big the upgrade is when compared to upgrading from 46b to 46c.
    If we have full software of 46c and 47E is it possible to upgrade 46c to 47E or there is a seperate 47E upgrade software need to be requested from SAP?
    Where I can get the document with upgrade steps on the service market place?
    It is of course possible and supported:
    http://service.sap.com/inguides
    --> SAP Components
    --> SAP R/3 Enterprise
    --> (choose your version)
    at the bottom there is an "Upgrade guide" for Windows and Unix.
    For Upgrades it is recommended to read ALL the notes mentioned in the 
    upgrade guide and to make sure one is using
    - the correct version of the "tp" program
    - the correct version of the "R3trans" program
    - the correct version of the "R3up" program
    All that is explained in the upgrade guide and in the corresponding notes.
    If this is your first upgrade you should take a person, that has some experience on doing that for the first time.
    Installation of SAP R/3
    Currently we are going to install SAP on a new IBM server from the existing COMPAQ server. Where can I get the steps for that. 
    Configuration is :
       OS - windows 2003 server
       DB - Oracle 9i
       SAP 4.7
    http://service.sap.com/instguides
    --> SAP Components
    --> SAP R/3 Enterprise
    --> SAP R/3 Enterprise Core 4.70 / Ext. Set 2.00 (SR1)
    --> Inst. Guide - R/3 Enterprise 4.7 x 2.00 SR1 on Win: Oracle
    The above url is the SAP Service Marketplace with all the information you need to install, configure and run system. You need to be a valid licensed customer with a user ID and PASSWORD to use that.
    Without access you won't be able to successfully run any SAP systems because it has notes, patches etc.

  • Differences between PT8.51 and PT8.52 versions

    Hi,
    Can I get some documentation or reference URL for differences between PT8.51 and PT8.52 versions?
    Thank You!
    Regards
    Soundappan

    In addition, specially for the YouTube generation, Gray Sparling has created a great webinar on the features of PeopleTools 8.52
    http://www.youtube.com/playlist?list=PL9B370AEEF80F8C10&feature=plcp
    I have also written a couple of blogs on some feaures of PeopleTools 8.52
    http://bloggingaboutoracleapplications.org/bi-publisher-enhancements-peopletools-852/
    http://bloggingaboutoracleapplications.org/create-interactive-dashboard-interwindow-communication-iwc/
    http://bloggingaboutoracleapplications.org/create-apealing-dashboards-peopletools-852/
    http://bloggingaboutoracleapplications.org/peoplesoft-oracle-secure-enterprise-search-ses/
    http://bloggingaboutoracleapplications.org/peopletools-852-generally/
    That should keep you busy for some wile :)

  • Are there any functional differences between the trial and the paid version?

    Are there any functional differences between the trial and the paid version for Labview 2009?  Thank you.
    Solved!
    Go to Solution.

    This outlines the limitations of the eval version of Labview: Limitations of the LabVIEW Evaluation Version
    Cheers, 
    Misha

  • What is the difference between a full and a upgrade version?

    When I want to buy photoshop elements 8.0 i can select a full or upgrade version, the price is alsmost thesame.
    normally you would think a upgrade is just a upgrade and you can't use it if you don't already have photoshop Elements installed.
    but in many online stores they only sell the upgrade version.
    so that makes me believe you can buy it even tho you don't have any photoshop elements on your pc.
    so what is the difference?

    The only difference between the Upgrade and Full version is of the pricing. I believe right now Adobe is already offering PSE at $79 so there is no Upgrade option appearing on the website (although I am not sure about unavailability, I just stating what one of the user on the forum says).
    Legally, you should be a previous customer of PSE to buy an upgrade version and I am not sure but I believe when one go for buying the Upgrade version they do need to provide the serial number of the previous verison.(not sure though)
    Regards,
    Ankush

  • Difference between 7.0 and ce7.2 versions

    Hi Everybody,
    Can any body tell me what is the difference between 7.0 and ce7.2
    Thanks,
    William

    Hi William,
    SAP Netweaver Portal 7.0 is the part of main release SAP NetWeaver 7.0. it has all the features like portal, Knowledge Management and Collaboration etc plus you can apply built in packages provided by SAP on ESS, MSS etc
    CE 7.1 and CE 7.2 are complementary products by SAP. Their main purpose is to enable the design of composition application easier and more effective. They have various new features compared to 7.0 like AJAX, CAF, Service Repository. But CE portal is only a thin portal means it does not obsesses all the full fledged features of portal like KM, Collaboration, TREX etc.
    However, using federated portal concept you can use them both together.
    Thanks
    Sarbjeet Singh,

  • Are there any differences between Server 2012 and Server 2012 R2 that might impact TFS or SQL server required for TFS?

    Hi,
    In the interest of just getting started and learning the basics of setting up TFS, I previously setup an IDE using a large workstation running Windows 8.  I set up the required servers for TFS using VM's through Hyper-V.  I am now transferring
    everything to a new and separate physical server.
    My question stems from a problem I had when I originally setup the TFS system the 1st time.  I couldn't get SQL server to work using the Server 2012 R2 download from the subscription center.  When I used Server 2012, it worked, so I proceeded that
    way just to get going.
    So now I'm setting things up anew on a new physical box, I want to ask up front, is there some difference in the R2 version that causes problems with either TFS or SQL server, or was there likely some oversight on my part when I did things the 1st time?
    As an addendum to my question, I always assumed R2 merely means the Server software has progressed to a refined state and is ready for wide distribution and easy setup.  I assumed that there are no differences between the Standard version and the R2
    version.  Is that understanding correct?
    Thanks.

    Hi Daniel,
    Thanks for your response.  That's a great link.  I don't recall seeing a page that is so clear and easy to read back when I was doing this the 1st time, but I probably just missed it.  That helps.
    I am/was using TFS2013 and VS2013.  As I recall, my problem was getting SQL Server to work, but I thought asking this question on this forum was wiser because I figured everyone using TFS would be well familiar with these issues.
    At any rate, it seems as though TFS2013 is fine with Server 2012 standard or R2.
    I was using SQL Server 2012, and it also seems as though it works on R2:
    https://msdn.microsoft.com/en-us/library/ms143506(v=sql.110).aspx
    Anyway, thanks for your support.  I'll be trying this again and we'll see.

  • Difference between late-2012 and early-2013 mbp retina 13"?

    I just bought the early-2013 mbp retina from the refurbished section of the mac site.
    It seems to be v. difficult to get detailed info on this model. Most web queries about aspects of this model bring up info on the late-2012 model.
    Is this some sort of freak model that was a limited run?
    One of the main reasons I ask is that I have a 512gb SSD, and I'm looking to replace it with the 768gb SSD module. The SSD module I am looking to buy advertises itself as being compatible with the late-2012, but no mention of early-2013.
    The late-2012 and early-2013 share the same model number (A1425), should I assume they carry the same architecture under the hood?
    **Before you reply**
    - Yes, I know I'm not supposed to open the computer, might void the warranty etc.
    - No, I didn't have the option of the 768gb SSD when I bought it, it was already assembled. I got it cheap.
    - Yes, I am aware that SSD upgrade is an expensive option.
    - Yes, I am aware I can store additional data on an external HDD.
    - Yes, I am aware I can boot from a higher capacity external HDD.
    - No, I don't want to know about alternative options, just the one outlined in the original query.
    Thanks.

    didvid.s,
    the technical specifications for the two models are here and here. Contrast and compare them to your heart’s content.

  • Why is there a difference between LR4 image and PS-CS5 version which is much darker

    if i get an image to look great in LR4 (v. 2012) after upgrading the cat from LR3,(version 2010) -  and it looks great in the new develop mode, then I open  up the image in the latest PS CS5, version 12.0.4 x64,  the image then looks much darker in PS and in no way matches the image in LR 4.
    NOT ACCEPTABLE! WHY, Adobe?? 
    I'm on a 64 bit Mac, OS 10.6.8  -- my catalogue settings in LR are for the largest monitor, highest preview, don't discard... and it writes changes immediately to xmp
    is it because the RAW processor in PS doesn't yet match the one in lightroom? and it won't be the same till CS6 is out, and I upgrade to that?  Adobe says all my software is up to date. How do I get things to match? never had this problem with LR3 or any earlier version. What's up?  I'm not on the beta - i just downloaded the real thing from Adobe - read all about it online and I've been very comfortable wiuith LR for years, but I should be able to hit command E on my mac and open it up in PS, looking exactly the same in PS as the image in Lightroom. the new develop mode in LR4 is awesome - so much better than LR3 which was so much better than 2. Why is this happening? How do i get the images to match? what am i doing wrong, if anything? any clues anyone? thanks in advance.          ( would love to include a sample, but I don't see how i can attach a scressn shot of the two.)
    anyone?
    owen

    thanks for replying, Jeff. You may be a user ( that sounds funny )  but you are certainly one well connected user.  thanks for getting back,
    I just click command E  using the shortcut for "edit in CS5." I never go to the menu, if i know the shortcut.  My basic color settings for PS has for years been what i have set up as a ProPhoto /rel. colorimetric color space on both PS... and in LR, my edit in PS-CS5 set up is for a PSD in 16 bit ProPhoto as well - should look the same, right?  You'll probably scold me for saving as a layered PSD instead of a layered tiff - I can't remember why - but I do have my PS preference set for ALWAYS maximize PSD and PSB compatability. Could you give me your advice and reason for tiff vs PSD. I hear that PSD can be "less efficient" than tiff with respect to metadata updates. Not sure exactly what less eficient means or what problems may arise with PSDs.
    Years ago I got into RAW files with the D65 workshops with Seth Resnick and Jamie,before there ever was a lightroom - in fact i first downloaded the first ACR plug in from adobe before it became a part of PS -    ( early 2003? ) - and perhaps you pixel geniuses don't always see eye to eye on certain things but i respect both of your opinions and your work and I'm thankful that you are both out there helping us... and Thomas and all the hard working people at Adobe too.
    So...  after posting, in the deveop mode in LR4 - I switched process versions from 2010- (there was a slight change)- then i switched it back to 2012 - then reopened the file ( exported it to CS5 ) in PS - and lo and behold - it all looked good. the lightroom and PS versions looked like a match - perhaps I should chalk this up to user error. not sure.
    that said,  when i take a canon CR2 file and just drop it into PS on my dock and it opens in CS5's ACR - I still see the ACR equivalent of LR3- which is to say - the exposure, recovery, fill light system- not the new development modality of exposure/contrast - highlights, shadows, whites and blacks -- do you know if we have to wait for CS6 to see the new ACR that matches Lightroom4 - or is an update soon forthcoming? what do you say, Big Guy?
    and many thanks for your attention, your knowledge , and your sense of humor.
    ~oc

  • Difference between the CD and online downloaded versions of Multisim (student version)?

    I want to buy the Multisim student version and noticed that there is a CD version and also a online downloadable one. I believe the CD version cost more money. Is there a difference between the two? Are the installing processes between the two different? What is the usual process for installing the software?
    Thanks, any input much appreciated!

    Hi,
    The version you download and what we send on CD is exactly the same.  The only thing you need is a serial number to activate the software and this you should get through email.
    Tien P.
    National Instruments

  • Difference between 3.5 and 7.0 versions in BW

    hai can anyone of u give the difference between BI 3.5 .and BI 7.0. relating to source system support. answers will be rewarded

    Hi ,
    See this very nice presentation prepared by Dr Berg on new features of BI 7.0 (these are the differences between BI 7.0 and BW 3.5):
    http://csc-studentweb.lrc.edu/swp/Berg/Articles/NW2004s_what_is_new.ppt
    Check the release notes:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/1be541f321c717e10000000a155106/content.htm
    This presentation:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/910aa7a7-0b01-0010-97a5-f28be23697d3
    Web Blog:
    /people/michael.eacrett/blog/2006/06/07/whats-new-in-sap-netweaver-702004s--an-introduction-to-the-functionality-deltas-and-major-changes
    You can also refer below posts:
    Re: BW 7.0 Release
    /message/1383908#1383908 [original link is broken]
    Upgrade from BW 3.5 to BW 7.0 (BI 7.0)
    Some features of BI 7 are
    1. In Infosets now you can include Infocubes as well.
    2. The Remodeling transaction helps you add new key figure and characteristics and handles historical data as well without much hassle. This is only for info cube.
    3. The BI accelerator (for now only for infocubes) helps in reducing query run time by almost a factor of 10 - 100. This BI accl is a separate box and would cost more. Vendors for these would be HP or IBM.
    4. The monitoring has been imprvoed with a new portal based cockpit. Which means you would need to have an EP guy in ur project for implementing the portal !
    5. Search functionality hass improved!! You can search any object. Not like 3.5
    6. Transformations are in and routines are passe! Yess, you can always revert to the old transactions too.
    this is a good PDF on Upgrade from BW 3.5 to BW 7.0
    latest on upgrade tp BI7.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2e8e5288-0b01-0010-2ea8-bcd4df5084a7
    http://help.sap.com/bp_epv170/EP_US/Documentation/How-to/Planning/Master_Guide_NW2004s.pdf
    You can seek more information on BI 7.0 in the SAP NetWeaver2004s Ramp-Up.
    /community [original link is broken]
    Re: BW 7.0 Release
    Re: BW 7.0 Release
    Re: BW 7.0
    take a look presentation
    overview
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5ee3725b-0401-0010-e381-ac323362ce91
    detail
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6
    https://www.sdn.sap.com/irj/sdn/developerareas/bi?rid=/webcontent/uuid/e78a5148-0701-0010-7da9-a6c721c6112e [original link is broken]
    may useful .....
    https://www.sdn.sap.com/irj/sdn/developerareas/bi
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Hope this helps.
    Regards,
    Ravikanth

  • How to calculate Sales percentage difference between selected year and its previous year in a Matrix

    Hi,
    I'm trying to generate a report using matrix like this
                                                          Month
    Product     PreviousYearSalesAmount    SelectedYearSalesAmount      %SalesDifference
    I can populate year sales amount, but i cant calculate the percentage.
    Can Anyone help me please.
    Note: Month and Year are passed as parameters.
    Thank you.

    Hi Abhiram,
    As per my understanding you can show your fields in matrix.
    Only problem is to create the additional column which will have the  %SalesDifference value right?
    If yes,
    Just create one column as shown in below screen,
    It will create one column, Name the header of this newly created column as %SalesDifference
    In below this header , where you want to show the value for %SalesDifference as
    =sum(iif(Fields!year.Value=Parameters!year.Value,(Fields!SalesAmount.Value),-Fields!SalesAmount.Value))/Fields!SalesAmount.Value
    Set the property of the column in number as Percentage.
    run the report, you will see as below screen.
    For your reference I am attaching my RDL code, you can save as .rdl file and run the report (sample Data inside the report only)
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Matrix</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>14pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="Tablix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox16">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Product</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox16</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>LightBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox17">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox17</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1.79722in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1.76722in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="SalesAmount">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!SalesAmount.Value)</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>SalesAmount</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox76">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=sum(iif(Fields!year.Value=Parameters!year.Value,(Fields!SalesAmount.Value),-Fields!SalesAmount.Value))/Fields!SalesAmount.Value</Value>
    <Style>
    <Format>0.00%</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox76</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="month">
    <GroupExpressions>
    <GroupExpression>=Fields!month.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!month.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="month1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=MonthName(Fields!month.Value)</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>month1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>LightBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <Group Name="year">
    <GroupExpressions>
    <GroupExpression>=Fields!year.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!year.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="year">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!year.Value</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>year</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    <TablixMember>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="Textbox61">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>%SalesDifference</Value>
    <Style>
    <FontStyle>Normal</FontStyle>
    <FontWeight>Bold</FontWeight>
    <TextDecoration>None</TextDecoration>
    <Color>#000000</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox61</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>LightBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="Textbox62">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox62</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="Product">
    <GroupExpressions>
    <GroupExpression>=Fields!Product.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Product.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1.38889in</Size>
    <CellContents>
    <Textbox Name="Product1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Product.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Product1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.38in</Top>
    <Left>0.04667in</Left>
    <Height>0.75in</Height>
    <Width>4.95333in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    </ReportItems>
    <Height>1.20167in</Height>
    <Style />
    </Body>
    <Width>5.1in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>501ee6de-61fb-416f-9a92-011661d01cba</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@year">
    <Value>=Parameters!year.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@Month">
    <Value>=Parameters!Month.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>select * from
    select 'apple' Product ,1 month ,2014 year,2000 SalesAmount
    union
    select 'apple' Product ,1 month,2015 year,3000 SalesAmount
    union
    select 'dell' Product ,1 month,2014 year,3000 SalesAmount
    union
    select 'dell' Product ,1 month,2015 year,2500 SalesAmount
    union
    select 'apple' Product ,2 month,2014 year,1500 SalesAmount
    union
    select 'apple' Product ,2 month,2015 year,3000 SalesAmount
    union
    select 'dell' Product ,2 month,2014 year,3000 SalesAmount
    union
    select 'dell' Product ,2 month,2015 year,5500 SalesAmount
    )t
    where year between @year-1 and @year
    and Month=@Month</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="Product">
    <DataField>Product</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="month">
    <DataField>month</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="year">
    <DataField>year</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="SalesAmount">
    <DataField>SalesAmount</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="year">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>2015</Value>
    </Values>
    </DefaultValue>
    <Prompt>year</Prompt>
    </ReportParameter>
    <ReportParameter Name="Month">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>1</Value>
    </Values>
    </DefaultValue>
    <Prompt>Month</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>ee1a8383-6595-42b1-94f2-c68d681c85d3</rd:ReportID>
    </Report>
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

  • Difference between refurb 2012 and new Apple TV?

    Is the refurb 2012 Apple TV with A5 any different than the model current sold as new? Are they both 3rd gen and are any specs different?

    Hi Douglas.
    A 2012 Apple TV could be a Apple TV 2 or an Apple TV3 (which was released on March 7, 2012) So it's something you need to ask when buying it.
    If it is the Apple TV 3, it will be the first one and not the revision A model which is sold today. The difference I believe is mainly in the CPU, the first model used a dual core CPU with one core closed off, the rev A version a redesigned CPU with single core but based on the dual core.

  • BRBACKUP options - difference between rman_util, rman_stage and rman_disk?

    Hi
    I am trying to implement a brbackup solution utilizing Oracle rman via Tivioli Storage Manager.
    From reading the documentation, if I use rman_util option this will also require use of backint to backup the non-database elements. It appears that the rman_stage and rman_disk options can be used which do not require use of backint which sounds desirable.
    However, I cannot find any documentation to explain how these differ and how these work?
    It appears that the rman_stage option may work with an external tape API but when I try and use this, it asks for remote_host and remote_user to be entered in the init<SID>.sap file. This suggests that it is trying to do some sort of remote copy rather than use the tape API (TSM for Databases in my case).
    Please can anyone explain this better?
    Thanks
    Tom

    Hi,
    I'm not expert in RMAN, but I know pretty well BR* tools and, with the help of the documentation, I think I can explain the differences to you.
    1) if you want to use RMAN directly with a 3rd party tool and BRBACKUP then you had no other option than to use the BACKINT interface.
    The following parameter has to be set:
    backup_dev_type = rman_util
    2) if you do not use BACKINT interface, then the only option is to backup to disk or to use a 3rd party SBT. in the last case,  some files (logs, control files, profiles) are not backed up on the tape, they mst be copied to disk:
    local disk:   backup_dev_type = rman_disk
    remote disk:   backup_dev_type = rman_stage
    you can find more information on the documentation:
    [backup_dev_type|http://help.sap.com/saphelp_nw70/helpdata/EN/3f/9d800b1aec11d2b42c00609419997a/frameset.htm]
    As I mentioned, this is my understanding from reading the documentation. May be someone has 1st hand information.

Maybe you are looking for