Possible for using profiler for creating workload for Database Engine Tuning Advisor in case of SSRS reports

I have SSRS reports with each 5 parameters. Parameter datasets includes statements like WHERE @CategoryKey
I have 20 tables in SQL Server. We don't have OLAP cube.
I have created SQL Server Profiler trace. I have clicked all reports during process.
I have opened Database Engine Tuning Advisor.
 I have selected all tables to Tune.
 Tuning options are Indexes/No Partitioning/Keep all existing PDS
Result is following:
 14% improvement
 10 recommendations (8 statistic for Calender table and 2 index for Calender)
Tuning logs:
S008 exec sp_executesql N'  LongSQLStatment including IN (@CategoryKey) Event does not reference any tables
S007 Replaced event exec sp_executesql
My question is that why I did not get any recommendations for other tables that Calender?
Could it be because of SSRS parameters like @CategoryKey?
Is it possible at all to use SQL Server profile for creating workload in case of SSRS reports with parameters?
I have tables and reports like ProductSales, which I suppose should be get indexedbecause of WHERE statements.
 I have where statement like Month and Category and Color.

Yes it is possible to capture a trace using profiler, but please provide the t-sql behind your dataset before I can answer your question about the DTA recommandations.
Regards
Rasmus Glibstrup
http://blog.sqlguy.dk

Similar Messages

  • Hi! I have 1 credit card and 2 more apple id. Is it possible to use this credit card information for all my apple id?

    Hi! I have 1 credit card and 2 more apple id. Is it possible to use this credit card information for all my apple id?

    Though you are being asked for card details it doesn't necessarily mean that the card will be charged for the purchase (unless you want to gift content). Have you tried entering your card's details to confirm the account ? You should then be able to remove it.
    From http://support.apple.com/kb/HT5582 :
    When making purchases, content credits are used first, followed by Gift Certificate, iTunes Card, or Allowance Account credits; your credit card or PayPal account is then charged for any remaining balance
    Is it a new account ? If it is then unless a new account is created by following the instructions on this page (the instructions won't work with existing accounts) : http://support.apple.com/kb/HT2534
    then you will need to enter card details (debit cards are no longer accepted in all countries) before the account can be used to download any item from the store.

  • Is it possible to use an external hard drive for time machine backup and also as a regular hard drive?

    Is it possible to use an external hard drive for time machine backup and also as a regular hard drive?

    I am using an external drive in the exact way that you described. You just keep it plugged in to the computer when you want to access the movies and files. In order to put files on it, just go to finder open up the drive under devices and drag and drop files onto the drive. It is just like using a usb drive with a terabyte of space.

  • Is it possible to use aim with a mac for free?

    Is it possible to use aim with a mac for free?

    If you mean the application AIM for Mac, it will depend on your download speed.
    If you mean "Can I use iChat with an AIM a screen name and does it cost anything ?" then the answer is Yes you can and no it does not cost and there is no download to do.
    If you mean "Can I use the AIM service with an @mac screen name and can this be done for free ? " then the answer is again yes.
    A trail account cost nothing and will work in ichat after the 60 days is up
    A Paid for but Lapsed account will also work in iChat and for this purpose can now be considered free.
    As I said and hinted at before your first question does not make it clear what you are actually asking.
    The Application AIM for Mac is stuck at version 4.7 and does not do Video or Audio Only chats.
    It has things that are useful in tweaking Buddy Lists in iChat but it is not specifically needed to contact AIM Buddies.
    9:00 PM Tuesday; June 24, 2008

  • CS6 I have a Student and Teacher Edition (incl. 3 license) for Windos. Is it possible to use one of these licenses for mac?

    CS6 I have a Student and Teacher Edition (incl. 3 license) for Windos. Is it possible to use one of these licenses for mac?

    jasontc:
    The answer is yes. If you use the "alias" method (in iPhoto's Advanced Preference pane - don't copy files when importing) you can use your own source folder system. You can also share the source files with another image management application. There are some unique issues, however. Any edit of a photo by iPhoto is not seen by the other application as the edited version is saved in iPhoto's Modified folder. If the other application can perform edits on the source file and save the edits to the actual source file, iPhoto's thumbnail of that file will not reflect the change but the edit will display when you open the photo in iPhoto's edit window or use that photo in a book or slideshow. If iPhoto hasn't edited before hand. If iPhoto edits the other application's edited version the source file is not touched. Also any file added to an existing source folder has to be manually imported into iView and then moved within iPhoto from its roll to the roll representing the source folder it was placed in via the Finder. When moved in iPhoto the source file will physically be moved to that folder in the Finder. Hope I haven't confused you with this convoluted description.
    So with some quirks you can use another application like iView MediaPro on the same set of source files.
    I do the above with iPhoto and iView.

  • Problem for using oracle xml parser v2 for 8.1.7

    My first posting was messed up. This is re-posting the same question.
    Problem for using oracle xml parser v2 for 8.1.7
    I have a sylesheet with
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">.
    It works fine if I refer this xsl file in xml file as follows:
    <?xml-stylesheet type="text/xsl" href="http://...../GN.xsl"?>.
    When I use this xsl in pl/sql package, I got
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    After I changed name space definition to
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> in xsl file, I got
    ORA-20100: Error occurred while processing: XSL-1019: Expected ']' instead of '$'.
    I am using xml parser v2 for 8.1.7
    Can anyone explain why it happens? What is the solution?
    Yi

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Element's dont have text content, they [b]contain text node children.
    So instead of trying to setNodeValue() on the element, construct a Text node and use the appendChild method on the element to append the text node as a child of the element.<HR></BLOCKQUOTE>
    Steve,
    We are also creating an XML DOM from java and are having trouble getting the tags created as we want. When we use XMLText it creates the tag as <tagName/>value rather than <tagName>value</tagName>. We want separate open and close tags. Any ideas?
    Lori

  • Possible to use dnscmd to create host in a zone delegation?

    I have been trying to run a dnscmd script to upload a CSV file that will add 600 host records to our DNS.  We decided to delegate our main Forward Zone (company.local) for these specific devices (cameras.company.local). 
    My issue is when trying to add it gives me the DNS_ERROR_ZONE_DOES_NOT_EXIST. 
    Here is the command I am using:
    dnscmd dc1 /recordadd cameras.company.local test a 10.10.10.1
    My basic question is it even possible to use dnscmd to create a host file within a zone delegation?

    try this
    dnscmd dc1 /recordadd company.local test.cameras a 10.10.10.1
    Also, would urge you to move to PowerShell, much intuitive and error handling is awesome there

  • Is it possible to use the same OSSO/OID for multiple R11 and R12 instances?

    Hello guru's,
    We have multiple R11and R12 instances that should be configured for Oracle SSO 10.1.4.3. For OID, we are still trying to decide between OID 10.1.4.3, or OID 11g. OAM is not an option because we also also need OSSO integration with Siteminder. We will also need to SSO-enable Discoverer an Forms.
    I have successfully configured SSO for a single-instance EBS R12, but not for multiple instances, let alone include R11 and other components into the mix.
    Do you have any special tips, guidance or lessons learned when SSO-enabling multiple instances into the same SSO/OID?
    Thanks!
    Maria

    Interestingly, the article talks about using the same SSO/OID for EBS, JD Edwards, Peoplesoft multiple R11 instances, but did not mention 'multiple EBS versions'. Am I just being picky or there was a reason for it not being mentioned?In Steven Chan blog (in the same link), see the following:
    Comprehensive Single Sign-On Solution+
    If you have one or more E-Business Suite Release 11i instances and are tired of maintaining users separately for each environment, you can create a central OracleAS 10g environment and manage all 11i users in one place.
    If you have a combination of PeopleSoft, JD Edwards, and the E-Business Suite in your organization, you can use OracleAS 10g to manage users for all three environments centrally.
    If you have a combination of the E-Business Suite and custom applications based on Oracle databases or OracleAS 10g technology, you can use OracleAS 10g to manage users for all applications in a single place.
    Thanks,
    Hussein

  • Is it possible possible to use a WD "My Passport for Mac" External HD with a Chromebook?

    Hello . . .
    I am a photographer who is seriously thinking of purchasing a Chromebook to utilize for both online and offline editing while in the field. I'm wondering if it is possible to use a Western Digital "My Passport for Mac" to store and retreive my images as an external drive for both storage and retrieval using a CB.
    Does any one know if I will have to do any special formatting to use this drive with a Chromebook? And, if so, what do I need to know/do to do it?
    Thanks very much for any information that might be provided.
    David
    Solved!
    Go to Solution.

    The "My Passport for Mac" is listed here (both the WDBLUZ0010BSL-NESN and the WDBZYL0020BSL-NESN).
       Chromebook compatible external drives 
    For other help with Chromebooks, it's best to visit the Chromebook Forum.
    -Jerry

  • Is it possible to use my snow leopard software for my macbook pro on an iMac or more iMacs?

    Here is the reason why i'm asking this question that sounds silly to me in a way...... i got the 2011 15.4inches macbook pro 2 weeks ago ..... it came with the last snow leopard os x but since the lion was out and i was eligible for an upgrade i got it striaght away for free in the apple store and did not use the snow leopard.... now here is the situation.... i was talking to a friend last night and he told me to give him the CD for the OS x snow leopard that he wanted to upgrade his imac to that....but i told him that i did not think that would work because in most cases i know even in windows os these kind of CDs are protected and are made for that pc it is installed on but he kept on insisting it would work and telling me how experienced he is in using a mac for 7 years and what ever cd protection happened to only pc and not mac(the funny thing is that he said he has experience but has never tried it before) so to cut the long story short i told him that i would get back to him....... so here i am again today asking a question that might even prove my thoughts right.....
    valuable community.....PLEASE IS IT POSSIBLE TO USE MY MACBOOK PRO OPERATING SYSTEM CD ON A FRIENDS IMAC?  because i dont believe it is possible because if it was, no one will ever upgrade to any os in a mac... they will just look for oppotunities to get it from a friend or family who has one.... hope im not the only one thinking that this question is a silly one lol....... please i really need your answers to show this experienced mac user of 7 years since he told me that i can install my os on more macs.... how possible it that...i dont know...
    Thanks in Advance for your replies

    Hi Chris,
    I'm guessing it's the "old" gray disc, which is usually hardware specific to your exact model. I'd keep it if I were you, you may want to install it.

  • Have you used Drawscript to create code for Edge Animate?

    Drawscript is an Illustrator extension, http://drawscri.pt/
    Code can be generated into many formats: Obj-C iOS, JavaScript Canvas, CreateJS Tiny, ActionScript 3, Processing, JSON, Bezier Points Array, Archor Points Array, C++ OpenFrameworks Simple and C++OpenFrameworks Shape.
    Made note of this program some time ago and finally getting back to it.
    Looking for anyone using Drawscript to create shapes with code to add to Edge Animate.
    Do you have a working example of Drawscript to Edge Animate or tutorial?
    Thanks for any info.
    Cindy J-H

    I have replied to your previous thread.
    Thanks,
    Sanjit

  • Is it possible to use the firewire power adapter for ipod to charge an Ipad

    There is information everywhere that the Ipad doesn't charge with low power adapters.
    The first power adapter I received with my first Ipod was the firewire power adapter and it allows intensities even higher than the 10 W Ipad adapter.
    Could this old adapter be used with Ipad
    Model n. A1070 output 12V 6.7 A if I believe what is written on it.

    You should only use a USB-type charger for the ipad. Any other charger is risking damage to the ipad.
    The ipad uses 5Volts at 2 amps for best charging. This is why it came with the wall charger.
    You can charge it with any 5 Volt USB charger as long as the output amps is approximately 1 amp or more. If the amps rating on the charger is less than 2 amps, it will charge slower, but it is safe. The ipad will only draw the current it requires, but any voltage higher than 5 volts is risking damage to the ipad.
    Hope this helps.

  • Is it possible to use a vector filter mask for smart filters?

    Hello
    I have a very specific question. With smart objects, you can use smart filters and you can use a smart filter mask to define the filter effect area. Now, the filter mask is like a regular layer mask, in that its effectively a raster image. I'm wondering if it's possible to use a vector filter mask as well? I haven't yet found an option to do so. Any help would be greatly appreciated.
    I'm using Photoshop CS5.
    Thank you
    R. Kroll

    I'm wondering if it's possible to use a vector filter mask as well?
    Not to the best of my knowledge.
    A possible workaround (depending on the SO) might be to duplicate it, apply the Filter and apply the Vector Mask to the SO itself.

  • Putting fileinfo data on bottom of image for use in building a photobook for printing/binding

    I wonder if someone on here could help me with a problem I have? I am not a script expert by any means. The term "amateur" is probably pretty accurate!
    I have a few hundred pictures I want to include into a (to be printed) photobook. I want to put some key EXIF/Fileinfo data on the images so that they remind me of what file, when it was taken, with what and with what settings. I found an excellent script (by JJmack?) which does what i want with one exception. The script (below) puts the info on the image starting on the top left (0,0) and I really want it to start on the bottom left (so that it looks like a caption). I have tweaked the original 5 lines of data down to one line, and have reduced the font size but I simply do not have the skills to amend it to add the selected text to the bottom left.
    I was hoping that someone on this forum might be kind enough to help - not least because I am sure there are others who would want to the same thing? Or am I being a complete idiot and there is a simpler way to achieve what I am trying to do?
    Grateful for any help
    Michael.
    Apologies - can't find way to insert file so had to copy and paste:
    // This script was hacked from one I downloaded from the web JJMack 2008
    /*  Script to stamp copyright and camera data of shot   */
    // This script is supplied as is. It is provided as freeware.
    // The author accepts no liability for any problems arising from its use.
    <javascriptresource>
    <about>$$$/JavaScripts/StampExif/About=JJMack's Stamp Exif.^r^rCopyright 2009 Mouseprints.^r^rScript utility for action.^rNOTE:Add Text Layer with Fomatted EXIF Data!</about>
    <category>JJMack's Action Utility</category>
    </javascriptresource>
    // enable double-clicking from Mac Finder or Windows Explorer
    #target photoshop // this command only works in Photoshop CS2 and higher
    // bring application forward for double-click events
    app.bringToFront();
    // ensure at least one document open
    if (!documents.length) {
        alert('There are no documents open.', 'No Document');
    // if at least one document exists, then proceed
    else {
        main();
    // main - main function
    function main() {
        /* Null business owner */
        var Biz = "";
        var Owner = "";
        /* Variables You can hard code your business owner here */
        // var Biz = "Mouseprints";
        // var Owner = "John J McAssey";
            /*  sizeFactor influences text size 1 will use largest font 2 will half that font size    */
        var sizeFactor = 1.5;
            /* textX and TextY positions text placement 0 and 0 Top Left corner of image in pixels    */
        var textX = 0;                                   
        var textY = 0;   
        /* Internal Photoshop Text name                                */                               
            var fontName = "ArialMT";
        var fontName = "TimesNewRomanPSMT";
        var fontName = "Tahoma";
        /* Text Color                                        */
        textColor = new SolidColor;                       
        textColor.rgb.red = 255;
        textColor.rgb.green = 255;
        textColor.rgb.blue = 255;
        /* END Variables You can hard code your business owner here */
            // remember users Ruler avd Type Units and set ours
        var strtRulerUnits = app.preferences.rulerUnits;
        var strtTypeUnits = app.preferences.typeUnits;
        app.preferences.rulerUnits = Units.PIXELS;
         app.preferences.typeUnits = TypeUnits.PIXELS;
        /* Trying to figure out font size for the number of lines to cover the document height        */
        /* and getting setting text area to cover the document was a trip. Adobe Postscript trip    */
        /* I believe that 72 or 72.27 Point/Pica Size Photoshop Preference maybe I should see if    */
        /* I could retrieve it. Anyway mine is set to 72 Setting the document resolution taking        */
        /* the document width and dividing by 72 would probably yield number of characters that        */
        /* would fit in the document width. Setting the documents resolution comes into play        */
        /* with Photoshop text support. Using the documents height and dividing the by the number    */
        /* of lines of text I needed I hoped would yield the font size I needed. However that        */
        /* did not work the text area was correct the number of text lines did not fit. I needed    */
        /* to use a smaller font.  When the document resolution is set to 72 DPI and I set a text    */
        /* layer font size to 72 and the text area the number of pixels I want and observing        */
        /* Photoshop's text options bar there I see a one 1 to one relationship. 72 px = 72 px.        */
        /* If I set the documents resolution lower and set a Photoshop text layer font size to        */
        /* 72 px I see Photoshop scale the number to a lower number of pixels in the option bar.    */
        /* Just what I needed. Setting the Documents resolution to 60 DPI let the number of line    */
        /* I needed fit on the document. However Photoshop also scaled the text area I set down        */
        /* in size and that number of lines did not fit within that area. I needed to scale the        */
        /* text area up. Scaling the Text area up using 72/resolution did the trick...             */
            var testres = 60;
        res = app.activeDocument.resolution;
        if(res!=testres){ app.activeDocument.resizeImage(app.activeDocument.width.value,app.activeDocument.height.v alue,testres); }
        /* Define var to be used to avoid undefined */
        var expTime = "";
        var expPgm = "";
        var expCmp = "";
        var mtrMode = "";
        var ev = "";
        var flshCode = "";
        var flshMode = "";
        var focLength = "";
        var Fstop = "";
        var ISO = "";
        var Model = "";
        var CameraModel = "";
        var Artist = "";
        var maxF = "";
        var wbMode = "";
        var phoTime = "";
        var picYr = "";
        var lens = "";
        var cpyrt = "";
        var remShutter = "";
        var remAperture = "";
        var remISO = "";
        var lat = "";
        var latRef = "";
        var lon = "";
        var lonRef = "";
        var docName = app.activeDocument.name;
        /* END var to be used to avoid undefined */
        try {   // get active document
            var doc = app.activeDocument;
        catch (e){
            alert("No Document Open..." );
        var exifInfo = "";
    try {
            // alert( "doc.info.exif=" + doc.info.exif );
            var numExifItems = doc.info.exif.length;
            // alert( "numExifItems=" + numExifItems );
                    for (var i = 0; i < doc.info.exif.length; i++){
                 exifInfo = exifInfo + doc.info.exif[i][0] + " = " + doc.info.exif[i][1] + "\r";
    /* ---------------------------------- Extracting Data I want to Stamp  formated ----------------------------------------------------------------------- */
                            checkThisItem(doc.info.exif[i][0], doc.info.exif[i][1])
                key=doc.info.exif[i][0];
                keyData=doc.info.exif[i][1];
                if (key == "Artist") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    Artist =("By " + keyData + "  ");
                 if (key == "Date Time Original") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    var phoTime = keyData;
                    var dateArray1 = phoTime.split(" ", 2);
                    phoTime = dateArray1[0];
                    phoHour = dateArray1[1];
                    var dateArray2 = phoTime.split(":");
                    var monthsArray = ["January","February","March","April","May","June","July","August","September","October", "November","December"];
                    phoTime = monthsArray[dateArray2[1]-1]+" " + dateArray2[2]+ ", " + dateArray2[0] +" @ " + phoHour;
                    var picYr = dateArray2[0];
                if (key == "Model") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    Model = (keyData + "  ");
                if (key == "Max Aperture Value") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    maxF = ("maxF " + keyData + " ");
                    maxF = ( keyData + " ");
                if (key == "Focal Length") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    focLength = ("@ " +keyData + "  ");
                if (key == "Exposure Program") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    expPgm = (keyData + "  ");
                    if (expPgm == "Not defined") { expPgm = "Exposure Program Not Recorded  "; }
                if (key == "Exposure Bias Value") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    expCmp = ("Bias " + keyData + "  ");
                if (key == "Metering Mode") {
                    //alert ("Key=" + key + " Data=" + keyData );
                    mtrMode = (keyData + " Metering  ");
                if (key == "White Balance") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    wbMode = ("White Balance " + keyData + "  ");
                if (key == "ISO Speed Ratings") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    ISO = ("ISO " + keyData + "  ");
                    remISO = keyData;
                if (key == "Exposure Time") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    expTime = (" " + keyData + "  ");
                    remShutter = keyData;
                if (key == "F-Stop") {
                    //alert ("Key=" + key + " Data=" + keyData );
                    Fstop = (" " + keyData + "  ");
                    remAperture = keyData;
                if (key == "Flash") {
                    // alert ("Key=" + key + " Data=" + keyData );
                    var flshCode = keyData;
                    var flshMode = "Flash Code=" + flshCode + "  ";
                    if(flshCode==1){var flshMode = "Firing Flash   ";}
                    if(flshCode==9){var flshMode = "Firing Flash   ";}
                    if(flshCode==13){var flshMode = "Firing Flash   ";}
                    if(flshCode==15){var flshMode = "Firing Flash   ";}
                    if(flshCode==25){var flshMode = "Firing Flash   ";}
                    if(flshCode==29){var flshMode = "Firing Flash   ";}
                    if(flshCode==31){var flshMode = "Firing Flash   ";}
                    if(flshCode==65){var flshMode = "Firing Flash   ";}
                    if(flshCode==69){var flshMode = "Firing Flash   ";}
                    if(flshCode==71){var flshMode = "Firing Flash   ";}
                    if(flshCode==73){var flshMode = "Firing Flash   ";}
                    if(flshCode==77){var flshMode = "Firing Flash   ";}
                    if(flshCode==79){var flshMode = "Firing Flash   ";}
                    if(flshCode==89){var flshMode = "Firing Flash   ";}
                    if(flshCode==93){var flshMode = "Firing Flash   ";}
                    if(flshCode==95){var flshMode = "Firing Flash   ";}
                    if(flshCode==0){var flshMode = "without Flash   ";}
                    if(flshCode==16){var flshMode = "without Flash   ";}
                    if(flshCode==24){var flshMode = "without Flash   ";}
                    if(flshCode==88){var flshMode = "without Flash   ";}
                    if(flshCode==32){var flshMode = "No Flash   ";}
                if (key == "GPS Latitude") {
                    //alert ("Key=" + key + " Data=" + keyData );
                    lat= ("Lat: " + keyData.replace(/\.00/g,'') + " ");
                if (key == "GPS Latitude Ref") {
                    //alert ("Key=" + key + " Data=" + keyData );
                    latRef= (keyData + "  ");
                if (key == "GPS Longitude") {
                    //alert ("Key=" + key + " Data=" + keyData );
                    lon= ("Lon: " + keyData.replace(/\.00/g,'') + " ");
                if (key == "GPS Longitude Ref") {
                    //alert ("Key=" + key + " Data=" + keyData );
                    lonRef= (lon + keyData + "  ");
            /* Copyright Year(s) */
            var thisYr, toDay       
            var toDay = new Date();
            var thisYr = toDay.getYear() + 1900;
            if(picYr!="" && thisYr!=""){ var cpyrt =  picYr + "-" + thisYr + "  ";}
            if(picYr=="" && thisYr!=""){ var cpyrt =  thisYr + "  ";}
            if(picYr==thisYr){ var cpyrt =  thisYr + "  ";}
            /* For cameras that don't set Artist or set unknown in the Exif substitute Owner if set */
            if(Artist=="" && Owner!=""){var Artist = "By  " + Owner + "   ";}
            if(Artist=="By unknown  " && Owner!=""){var Artist = "By  " + Owner + "   ";}
            /*  Lens info  */
            xml = app.activeDocument.xmpMetadata.rawData;
            lensOffset = xml.indexOf("<aux:Lens>") + "<aux:Lens>".length;
            if(lensOffset > 0) {
                lens = xml.substr(lensOffset, xml.length - lensOffset);
                lens = lens.substr(0,lens.indexOf("</aux:Lens>"));
            /* Hack for my cameras with fixed lens */
            if(lens=="" && Model=="E990  "){var lens = "9-28mm";}
            if(lens=="" && Model=="E-20,E-20N,E-20P  "){var lens = "9-36mm";}
            if(lens=="" && Model=="E-10  "){var lens = "9-36mm";}
            if(lens=="" && Model=="E-10          "){
                var Model = "E-10  ";
                var lens = "9-36mm";
            if(lens=="" && Model=="Canon PowerShot SD700 IS  "){var lens = "5.8-23.2mm";}
            if(lens!=""){var lens = lens + "  ";}
            else {var lens = "Unknown Lens  ";}
            /* Hack for my ultra compact cameras program mode not recorded */
            if(Model=="Canon PowerShot SD700 IS  "){var expPgm = "Ultra Compact Camera  ";}
            //alert (remShutter + " " + remAperture + " " + remISO);
                    ev = calcEV(remShutter, remAperture, remISO);
    /* ---------------------------------- END Extracting Data I want to Stamp  formated -------------------------------------------------- */
        catch (e){
            alert("No EXIF data exists..." );
        if ( exifInfo == "" ) {
            alert( "No EXIF data exists..." );
        else {
            // alert( "exifInfo=" + exifInfo );
            text_layer = doc.artLayers.add();                        // Add a Layer
            text_layer.name = "EXIF Stamp";                            // Name Layer
            text_layer.kind = LayerKind.TEXT;                        // Make Layer a Text Layer
            text_layer.textItem.color = textColor;                        // set text layer color
    /* Do not set TextType to Pargarph Text for StampEXIF so action can position text layer
             text_layer.textItem.kind = TextType.PARAGRAPHTEXT;                // Set text layers text type
            text_layer.textItem.font = fontName;                        // set text font
            text_layer.blendMode = BlendMode.NORMAL                        // blend mode
            text_layer.textItem.fauxBold = false;                        // Bold
            text_layer.textItem.fauxItalic = false;                        // Italic
            text_layer.textItem.underline = UnderlineType.UNDERLINEOFF;            // Underlibn
            text_layer.textItem.capitalization = TextCase.NORMAL;                // Case
            text_layer.textItem.antiAliasMethod = AntiAlias.SHARP;                // antiAlias
    //        var fontSize = Math.round((doc.height- textY) / ((numExifItems +1) * sizeFactor)); // Calulate font size to use Item nomber + last \r
            /* Calulate font size to use for StampExit keep size same for landscape and portrait base on document size */
            if (doc.width >= doc.height) {var fontSize = Math.round(doc.height / (30 * sizeFactor));}
            else {var fontSize = Math.round(doc.width / (30 * sizeFactor));}
            if (fontSize<10){fontSize=10};                            // don't use Font size smaller then 10
            text_layer.textItem.size = fontSize;                        // set text font Size
    //        text_layer.textItem.position = Array(textX, textY );                // set text layers position in and down
            text_layer.textItem.position = Array(textX, (textY + fontSize ));        // set text layers position in and down for Stamp add in fontsize
            textWidth = ((doc.width - textX) * 72/testres );                // Text width document width - offset
            textHeight = ((doc.height - textY) * 72/testres );                // Text height document height - offset
    /* Do not set Text Area for StampEXIF so action can position text layer
            text_layer.textItem.width = textWidth;                        // set text area width
            text_layer.textItem.height = textHeight;                    // set text area height
             alert(
            "res=" + res + " sizeFactor=" + sizeFactor + " numExifItems=" + numExifItems
            + "\r" + "fontsize=" + fontSize + " font=" +fontName
            + "\r" + "Image area width=" + doc.width + " height=" + doc.height
            + "\r"    + "text area width=" + textWidth + " height=" + textHeight
            + "\r"    + "Text Position top left=" + textX + "," + textY
            + " bottom right=" + (textX + textWidth )+ "," + (textY +  textHeight )
            try{
                text_layer.textItem.contents = exifInfo;
            catch (er) {
                alert("Error Setting Contents...");
    /* -----------------------------------------  Data Stamp  format ----------------------------------------------------------------------- */
            if (!app.activeDocument.info.copyrightNotice=="") {var Notice = app.activeDocument.info.copyrightNotice; }
            else { var Notice = "Copyright \u00A9 " + Biz  + " " + cpyrt; }   
            if (lat!="" && lon!="") { gps = "\r" + lat +latRef + lon + lonRef;}
            else {gps = ""; }
            text_layer.textItem.contents =  docName + " " + Model + lens + ISO + expTime + Fstop;
            if (app.activeDocument.info.instructions == "" ) {
                app.activeDocument.info.instructions = docName + " " + Model  + lens + ISO  + expTime + Fstop;
        if(res != testres){ app.activeDocument.resizeImage(app.activeDocument.width.value,app.activeDocument.height.v alue,res); }
        app.preferences.rulerUnits = strtRulerUnits;
        app.preferences.typeUnits = strtTypeUnits;
    // END - main function
    // calcEV()
    function calcEV(shutter, aperture, iso) {
        evString = new String("");
        isoValue = new Number(0);
        shutterValue = new Number(0);
        apertureValue = new Number(0);
        evValue = new Number(0);
        apertureValue = aperture;
        apertureValue = apertureValue.substr(2,apertureValue.length -2); // Strip off "f/"
        shutterValue = shutter;
        shutterValue = shutterValue.substr(0,shutterValue.indexOf(" ")); // Strip off ending " sec"
        if ( shutterValue.indexOf("/") != -1) {
            topShutter = shutterValue.substr(0,shutterValue.indexOf("/"));
            bottomShutter = shutterValue.substr(shutterValue.indexOf("/") + 1,shutterValue.length -(shutterValue.indexOf("/") + 1));
            shutterValue = topShutter / bottomShutter;
        isoValue = iso;
        //alert ("apertureValue = " + apertureValue +  " shutterValue = " + shutterValue + " isoValue = " + isoValue );
        if (isoValue>0 && shutterValue>0 && apertureValue>0) {
            evValue = Math.LOG2E * Math.log(Math.pow(apertureValue, 2) * (1 / shutterValue) * (100 / isoValue));
            evValue = Math.round(evValue * 10) / 10;
            evString = "EV " + evValue;
        return evString;;
    function checkThisItem(key, keyData) {
        // alert("Key=" + key + " Data=" + keyData );

    I wrote that script to be used within an Action.  The Action uses the script to add the text layer. The text layer becomes the current active layer.  The action can then position the layer anywhere over the document by aligning the layer to a selection.  Also add a layer style like set fill to 0 and adding a drop shadow and emboss. That is the un-expanded step below the set current layer is setting a style and is lengthy.
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Which rights are required for a user to create a new database instance

    Hi,
    Which user can create a database instance? Is it Admin or any user? or Is it must to have admin rights on the <oracle_home> folder in order to create a new database instance?
    Please let me know what rights the user should have for creating a new database instance.
    Regards,
    venkat

    If I login to machine as a Guest user or I am not a owner of Oracle software then in the both cases I couldn't able to create a new database instance. Am I right?
    Please suggest me.
    Regards,
    Venkat

Maybe you are looking for

  • How to use external libraries jar files in the composite application?

    Hi, I have some external jars files (which consists of java classes) that I would like to use in my composite application.  I have created a DC with type as external library for the jars.  However, I don't know how to specify the DC to be used in my

  • HT1688 I have lost my notes. What to do?

    I have lost my notes. Yesterday. The last note is left that I made on may 28th. It's the first time since I upgreade to iPhone 5. I had the same problem with my 4th iPhone like 3 time. I lost very important notes. that make me angry, because how such

  • Comparision of SAP QM and BI standerd reports

    how i can compare the  standerd Qm reports with standerd BI Reports ,which are similar to each other, i have to validate the results of BI standerd reports by checking the standerd  qm reports.can anybody help regarding this.

  • Invoking RMI using Tomcat

    Hello i have a question but i do not know how to solve it. i tried to implement a small Client and Server RMI standalone application and is working fine. However know I would like to change the implementation and use Tomcat as the Server for the appl

  • Not allowing to delete in certain text in JTextPane

    I want to create a program that Inserts some text AUTOMATICALLY into JTextPane and the user is not allowed to Delete that Code.