Script Example

Hi,
Please send me the script full length example?
please attachment doc to Id: [email protected]
regards,anjireddi

chk this linkl
http://www.allsaplinks.com/sap_scripts.html

Similar Messages

  • ABAP SCRIPTS Examples Programs ,Screen shots ...i need?

    Hi to ALL
    hru?
    Friends
    i need ABAP SCRIPTS Examples Programs and screen shots those are most useful for me and pdf file.
    plz help to me send immid.
    Thanking U
    Murali

    Your imany nterview type questions have all been locked => please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting again.
    Many thanks,
    Julius

  • SAP script example

    Hi
    can anybody forward be sap scripts examples . Please forward me the documents on [email protected] .
    Print program examples .
    Configuration in nace , spro etc.
    Thanks and regards

    Hi Naval,
    Check these links.
    http://www.sap-img.com/sapscripts/sample-sapscripts-label-printing-program.htm
    http://www.sap-img.com/sapscripts/a-sample-sap-scripts-reports.htm
    Also check these links.
    SAP SCRIPT and the report
    about sap script
    Hope this resolves your query.
    <b>Reward all the helpful answers.</b>
    Regards

  • Requiremen​ts Gateway OT-Script example 2.Trail

    Hi BlueOnes,
    I am still waiting for a small answer on following thread.
    http://forums.ni.com/t5/NI-TestStand/Requirements-Gateway-OT-Script-example/td-p/2648861
    Regards
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

    Duplicated:
    See here
    http://forums.ni.com/t5/NI-TestStand/Requirements-​Gateway-OT-Script-example/m-p/2648861
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Requiremen​ts Gateway OT-Script example

    Hi,
    I have written my own TestStand NIRG intermidiate file generator as a COM compontent.
    Now i would like to integrate it in NIRG via the OT-Script.
    I have created a new .br file placed a new Method inside there.
    Well at the moment i see my Teststand convert tool in the convert tool's drop-down list in types editor panel.
    Of course i am not famous with this kind of scripts.
    In the other br files there is a lot of code, but there are no comments.
    Is there a suitable example or documentation on OT-Scripts ?
    Regards
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

    Duplicated:
    See here
    http://forums.ni.com/t5/NI-TestStand/Requirements-​Gateway-OT-Script-example/m-p/2648861
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Script example trigger web service call and populate request from adobe

    Hello,
    I'm trying to make a adobe interactive form that needs to be populated by a web service. I have one field : In the dataconnection that is the input for the web service request and this is bound to the request. I have a button that is connected to my web service. After filling in a new value and pushing the button I want the web service request to be triggered.
    Thus anyone has a coding example or more information about using web services directly from within a Adobe Interactive form ?
    thnx, Jasper

    Hi Jasper,
    You may refer the Adobe ddevelopment center for the docs related to the execute property of the button to trigger a web service.
    <i>Alternatively, if you do not want to create a button to execute a call to a Web Service, you can do it via Script.
    Assuming your Data Connection is named ‘LeasePayment’
    For JavaScript:
    xfa.connectionSet.LeasePayment.execute(0);
    For Form Calc:
    $connectionSet.LeasePayment.execute(0);
    execute(0) indicates no data merging
    execute(1) indicates all the data in the data DOM will be remerged.</i> - Adobe doc.
    hope this will help.
    Thanks andRegards,
    Anto.

  • Bridge/Photoshop Script Example Please

    Does anyone have an example Bridge script that they can share that
    1. Runs on a selection of images from Bridge.
    2. Calls a simple action in Photoshop (resize and sharpen, for instance) for each image in turn
    3. Saves the images into a new folder or with different filenames.
    The key here is work from the selection in Bridge. Yes, I know I can do that with a Batch, but its important that it be from the script with no batch involved.
    Thank you in advance!!
    Eric

    Hi Eric,
    I remember there was a script called OpenClose_PS.jsx by Bob Stucky on Adobe Exchange. This script does almost all that you want. But the site is temporarily out of service right now, so if you are interested, contact me by e-mail and I'll send you a copy.
    Kasyan

  • RMAN 10G script examples

    Hi all,
    I plan to start using RMAN soon. After doing a lot of reading, I have a pretty good feel for how it works and the syntax.
    I'd appreciate getting some good example scripts that I can compare with mine. I realize I can compare with the DBA manual, but I'd rather see something that someone has been using successfully. Perhaps I'll use them as a starting point for my on RMAN scripts.
    If it makes a difference, we are at RMAN 10G and our server is Windows 2003.
    Thanks a bunch.

    Full Database backup
    rman
    connect rcvcat username/password@rmancat
    connect target username/password@target
    run {
    set command id to 'rman 10g database';
    allocate channel tape1 type 'SBT_TAPE' format '%d_full_%U';
    allocate channel tape2 type 'SBT_TAPE' format '%d_full_%U';
    allocate channel tape3 type 'SBT_TAPE' format '%d_full_%U';
    backup incremental level=0 tag="target_Level0_full" (database filesperset=25 include current controlfile);
    sql 'alter system archive log current';
    change archivelog all validate;
    backup filesperset 5 archivelog all;
    backup current controlfile format '%d_cf_%U';
    release channel tape1;
    release channel tape2;
    release channel tape3;
    Archive log backup and delete
    rman
    connect rcvcat username/password@rmancat
    connect target username/password@target
    run {
    set command id to 'rman 10g archive backup';
    allocate channel tape1 type 'SBT_TAPE' format '%d_full_%U';
    allocate channel tape2 type 'SBT_TAPE' format '%d_full_%U';
    allocate channel tape3 type 'SBT_TAPE' format '%d_full_%U';
    sql "alter system archive log current";
    backup tag="target_Level0_arch" filesperset 10 archivelog until time 'sysdate - 1/24' delete input;
    release channel tape1;
    release channel tape2;
    release channel tape3;
    }

  • Sample allocation script example starting from non-root parent.

    I have a client with multiple planning entities. Most of them wish to plan at the bottom level and aggregate up. However, one planning entity wishes to plan at a higher level, and allocate this to the bottom level for a particular dimension. So my allocation script would need to start with the parent of that entity, and allocate only for the measure in question for that entity's descendants. Is there a sample allocation script that that user could invoke to do the spread on a measure (because they also later wish to plan at level zero also - only some of the time).
    Thank you.

    Please refer to the Oracle By Example sample located here:
    http://www.oracle.com/technology/obe/hyp_iop/iop401/iop_create_allocation_map.htm

  • .cgi script example

    I wish to submit data to web. I think cgi script needs for this purpose.
    How can I get example of cgi script?

    Hi,
    thanks for ur reply...to b clear,i have written a perl program for TGDH algorithm..i.e.,whenever a new user joins the dynamic group,a node 'll b created for that user in a tree structure..user entry applet is written in java..only the tree formation program i have written in perl..i need to send the user entry details to be sent to the perl program and the result to b returned to the applet..can any one tell me the format with a simple eg r kindly tell me any reference where i could know abt tat...

  • SAP SCRIPT examples in SAP SERVER?

    can anyone kindly let me know the location of SAPscript examples which are present in the sap server? in one post, someboday said it's there in ABAPDOCU, but it's nowhere to be found.
    thanks,
    max

    refer ur standard sapscript
    MEDRUCK - purchase order
    RVORDER01 - sales order
    RVINVOICE01 - invoice.
    see the print program also for MEDRUCK print program is SAPFM06P
    RVORDER01 print program is RVADOR01
    try to change a standard sapscript form.
    with regards.
    Kalpana

  • Script-Example POST

    Hello,
    I would like to rewrite or start this Skipt via LV. 
    But I've no idea how to realize it.
    Can somebody give me a hint?
    <?
    $empfang = "12345;23456;777777;88888888;999999";
    $request = "";
    $param["id"] = "XXXXX";
    $param["pw"] = "XXXX";
    $param["type"] = "2";
    $param["empfaenger"] = $empfang;
    $param["absender"] = "testapp";
    $param["befehl"] = "Temp +10";
    $param["reply"] = "1";
    $param["reply_email"] = "E-Mailadresse";
    $param["termin"] = "TT.MM.JJJJ-SS:MM";
    $param["id_status"] = "1";
    $param["massen"] = "1";
    foreach($param as $key=>$val){
    $request.= $key."=".urlencode($val);
    $request.= "&";
    $url = "http://www.meineseite.de/app/test.php";
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
    $response = curl_exec($ch);
    curl_close($ch);
    echo $response;
    ?>

    You may want to look at this post on the LAVA forums that dicusses using curl with LabVIEW.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Script Task examples

    Hi Experts
    I'm reading SSIS book to learn SSIS. My background is also programming but never work with VB and C. In SSIS book there is a topic of Script Task and in this topic the author uses Script Task and use VB but it is so confusing but if somebody help me out
    to give some example for Script Task that is commonly use then I really thankful to him.. Thanks in advance.
    Regards
    Muz

    some example for Script Task that is commonly use then I really thankful to him..
    Hello Muz,
    Every ETL process is very individual (by my experiences) so it will be difficult to find a "commonly" used script example.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Examples of Calc Scripts

    Hello,is there any where a site or a documentation on calc script examples?If yes, could some one guide me to this information.Thank you!Bob

    There are examples and a good discussion of Calc Script basic in the Database Administrators Guide. In versions 6.0 and higher this is available in electronic form from the Essbase Program Group under Server Documentation.There are also specific courses that concentrate on calculation design and development available from Hyperion Solution and its PartnersCourse descriptions for the Hyperion Solutions Education offerings can be found at http://www.hyperion.com/services/ then select “Education offerings” under “learn more about”.Joseph HoganSenior Essbase Lead Consultant – Hyperion Solutions203.703.3300 x6364

  • Sharing script to create slideshow

    Thanks for David Torno I have been able to hack together a basic slideshow script. There's still a lot more that could be done with it, but I wanted to share it so that others may be able to benefit.
    Essentially, it asks for a folder location where your photos are stored, reads them in, creates a comp for each photo, resizing them and creating a border around them, adds all of the photo comps to a master comp, then sequences them, adds in some fades and slightly random placement.
    Like I said, fairly basic. But quite the learning experience.
    Yes, there are templates available for slideshows, but none that I found that I could just add photos to and say "Display these with a border and random placement on the screen, fading in and out." All the ones I found required replacing placeholders, or some sort of manual changes to each photo. And they were generally limited to 10 to 30 images. This script, theoretically, should be able to handle hundreds of images easily.
    Next steps are to add movement to the photos (sliding across the screen as they fade in and out) and add a music track from a file (or files) selected during photo import.
    Enjoy!
    And thanks again to David Torno, plus anyone else who's script examples I may have borrowed ideas from.
    Dion
        createSlidehow v 1.0
        Developer: Dion Vansevenant
        Based on David Torno's "fileToCompToQ"
        This script creates a basic slideshow from a folder of images
         function createSlideshow(){
              try{
                   /*     DECLARE VARIABLES     */
                   var localFolder, renderToFolder, outputModuleName, jpgAEFolderName, compAEFolderName, newJPGParentFolder, myImportedFiles, newCompParentFolder, newCompParentFolder, grabFiles, grabFilesLength, extAry, compFrameRate;
                   /*     BEGIN VARIABLES TO CUSTOMIZE     */
                   jpgAEFolderName = "Photos";          //Folder name for imported files
                   compAEFolderName = "Photo_Comps";     //Folder name for resulting comps
                   extAry = new Array("jpg", "jpeg");               //Array of Strings. These are the file extension types you wish to import.
                   compFrameRate = 29.97;                                   //Frame rate for the newly created comps. Must be a float or integer value.
                   compDuration = 5;                                        //The duration of time, in seconds, that the new comps will be.
                    //masterComp Variables
                    var compWidth = 1920;  
                    var compHeight = 1080;  
                    var compPAR = 1;  
                    var compDur = 10;
                    var compFPS = 29.97;
                    //Create Master Comp
                    var masterComp = app.project.items.addComp("MASTER", compWidth , compHeight, compPAR, compDur, compFPS);
                    /*     END VARIABLES TO CUSTOMIZE     */
                   /*     START PROCESS     */
                    localFolder = Folder.selectDialog("Please select folder containing your JPG files.");                
                    // localFolder = new Folder("~/Desktop/Photos/");
                    if(localFolder != null && localFolder.exists == true){
                        app.beginUndoGroup("fileToCompToQ");
                             grabFiles = localFolder.getFiles();     //Retrieves all enclosed files
                             grabFilesLength = grabFiles.length;
                             //Process files
                             app.project.items.addFolder(jpgAEFolderName);     //Creates folder
                             newJPGParentFolder = findItem(jpgAEFolderName);     //Saves it for later use
                             extensionFilterAndImporter(grabFiles, grabFilesLength, extAry, newJPGParentFolder); //Imports files and puts them in a folder
                             myImportedFiles = storeFileObjsIntoArray(newJPGParentFolder);
                             //Process comps
                             app.project.items.addFolder(compAEFolderName);
                             newCompParentFolder = findItem(compAEFolderName);                                                 
                             createCompsAddToQ(newCompParentFolder, myImportedFiles, compFrameRate, compDuration);
                            addCompsToMaster(app.project);
                            mySequenceToLayer(compObj);
                            writeLn("All done");     //Adds this text to the Info Panel as a way to see when the script is done working.
                        app.endUndoGroup();
                   /*     END PROCESS     */
                   ///     FUNCTIONS     ///
                    // Add fades in and out to comps
                    function addFadeToComps(layerObj){
                        try{
                           // alert("Oops, module addFadeToComps is not ready yet");   
                           //alert("Entering addFadeToComps...");
                           var overLap = 1;
                           //alert("Working on layer "+layerObj.name+" with startTime of "+layerObj.startTime+" and outPoint of "+layerObj.outPoint);
                           layerObj.opacity.setValueAtTime(layerObj.inPoint, 0);                                                           
                           layerObj.opacity.setValueAtTime((layerObj.inPoint + overLap), 100);
                           layerObj.opacity.setValueAtTime((layerObj.outPoint - overLap), 100);
                           layerObj.opacity.setValueAtTime(layerObj.outPoint, 0);                                                           
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                    } // end function addFadeToComps
                    // Add fades using Expressions
                    function addExpFadeToComps(layerObj){
                        try{
                            var myLayer = layerObj;
                            var myLayerOpacityProperty = myLayer.property("ADBE Transform Group").property("ADBE Opacity");                       
                            //Frames that fade will take place over
                            var fade = "30";                        
                            //encoded expression string with "fade" variable inserted                       
                            var myExpress = "fadeTime%20=%20" + fade + ";%0DopacityMin%20=%200;%0DopacityMax%20=%20100;%0DlayerDuration%20=%20outPoint%20-%20inP oint;layerDiff%20=%20outPoint-(layerDuration/2);%0DsingleFrame%20=%20thisComp.frameDuratio n;%0DanimateIn%20=%20linear(time,%20inPoint,%20(inPoint%20+%20framesToTime(fadeTime)),%20o pacityMin,%20opacityMax);%0DanimateOut%20=%20linear(time,%20(outPoint%20-%20framesToTime(f adeTime+1)),%20(outPoint-singleFrame),%20opacityMax,%20opacityMin);%0Dif(time%20%3C%20(lay erDiff) )%7B%0D%09animateIn;%0D%7Delse%7B%0D%09animateOut;%0D%7D";
                            //Applies expression
                            myLayerOpacityProperty.expression = decodeURI(myExpress);
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                    } // end function addExpFadeToComps
                    // Add items to comp in reverse order to preserve numbering
                    function addCompsToMaster(projObj){
                        try{                   
                            for (var i = projObj.numItems; i != 0; i--){                                              
                                if (app.project.item(i) instanceof CompItem){ // <-- adds comps to the comp, but also tries to add MASTER, not good
                                    if (app.project.item(i).name != "MASTER"){ // <-- ok, filter out MASTER
                                        masterComp.layers.add(app.project.item(i),compDuration);
                                        compObj = app.project.item(1);
                                        layerObj = app.project.item(1).layer(1);
                                        layerObj.property("ADBE Transform Group").property("ADBE Opacity").setValue(0);
                                        addExpFadeToComps(layerObj);                                   
                                        imageSizeToCompSize(compObj, layerObj);
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}                
                     } // end function adCompsToMaster
                    // adds a white solid to create a border
                    function  addBorderToComps(compObj){
                        try{
                            var myBorder = compObj;
    //                        myBorder.layers.addSolid([1.0,1.0,0], "Frame", 50, 50, 1);
                            myBorder.layers.addSolid([1.0,1.0,1.0], compObj.name+"_Frame", compObj.width, compObj.height, 1);
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}                
                    } // end function addBorderToComps
                    // Loop through MASTER comp and manually do "Sequence Layers" to stagger start times.
                    // Also try to randomize placement of images on-screen
                    function mySequenceToLayer(compObj){
                        try{
                        // get number of items in MASTER comp
                            var numItems = compObj.numLayers;                   
                            for(i=2; i<=numItems;i++){
                                app.project.item(1).layer(i).startTime = app.project.item(1).layer(i-1).outPoint-2;
                                maxZ = compHeight-100;
                                minZ = 600;
                                maxX = compWidth-100;
                                minX = 600;
                                x = Math.random(minX,maxX)*100;
                                y = Math.random(minY,maxY)*100;
                                var myProperty = app.project.item(1).layer(i).position;
                                // If the result is even, add x,y change, otherwise subtract it
                                myEvenOdd = i%2;
                                if (myEvenOdd == 0){
                                    var newX = myProperty.value[0] + x;
                                    var newY = myProperty.value[1] + y;
                                }else{
                                    var newX = myProperty.value[0] - x;
                                    var newY = myProperty.value[1] - y;
                                myProperty.setValue([newX,newY,0]);
                            app.project.item(1).duration = Math.round(app.project.item(1).layer(numItems).outPoint);
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                    } // end function mySequenceToLayer
                    /*     findItem() function
                            Arguments::
                                itemName: Name of the After Effects folder to find. Must be a String.
                    function findItem(itemName){
                        try{
                             var allItems = app.project.numItems;
                             for(var i=1; i<=allItems; i++){
                                  curItem = app.project.item(i);
                                  if(curItem instanceof FolderItem && curItem.name == itemName){
                                       return curItem;
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                    } // end function findItem
                   /*     extensionFilterAndImporter() function
                        Arguments::
                             grabFiles:     Array of file objects
                             grabFilesLength:     Value must be an integer
                             extAry:     Array of Strings
                             newParentFolder:     String
                   function extensionFilterAndImporter(grabFiles, grabFilesLength, extAry, newParentFolder){
                        try{
                             var fileName, extPrep, ext, extAryLength, importOpt, newFile;
                             extAryLength = extAry.length;
                             for(var i=0; i<grabFilesLength; i++){
                                  fileName = grabFiles[i].displayName
                                  extPrep = fileName.split(".");
                                  ext = extPrep[extPrep.length-1].toLowerCase();
                                  for(var e=0; e<extAryLength; e++){
                                       if(ext == extAry[e]){
                                            writeLn(fileName);
                                            importOpt = new ImportOptions(grabFiles[i]);
                                            newFile = app.project.importFile(importOpt);     //Imports file into project
                                            moveItemToFolder(newFile, newParentFolder);     //Moves file into parent folder
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                   } // end function extensionFilterAndImporter
                   /*     moveItemToFolder() function
                        Arguments::
                             projectItem:     Must be an AVItem
                             parentFolder:     Must be a FolderItem
                   function moveItemToFolder(projectItem, parentFolder){
                        try{
                             projectItem.parentFolder = parentFolder;
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                   } // end function moveItemToFolder
                   /*     storeFileObjsIntoArray() function
                        Arguments::
                             sourceFolder:     Must be a FolderItem
                   function storeFileObjsIntoArray(sourceFolder){
                        try{
                             var itemAry, itemsInFolder, itemsInFolderLength;
                             itemAry = new Array();
                             itemsInFolder = sourceFolder.items;
                             itemsInFolderLength = itemsInFolder.length;
                             for(var i=1; i<=itemsInFolderLength; i++){
                                  itemAry[itemAry.length] = itemsInFolder[i];
                             return itemAry;
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                   } // end function storeFileObjsIntoArray
                   /*     createCompsAddToQ() function
                        Arguments::
                             myImportedFiles:     Array of File objects
                             fps:                         Must be a float or integer value.
                   function createCompsAddToQ(compAEFolderName, myImportedFiles, fps, duration){
                        try{
                             var myImportedFilesLength, curFile, extFind, fileNameOnly, newComp;
                             myImportedFilesLength = myImportedFiles.length;
                             for(var c=0; c<myImportedFilesLength; c++){
                                  curFile = myImportedFiles[c];
                                  extFind = curFile.name.toString().lastIndexOf(".");
                                  fileNameOnly = curFile.name.substring(extFind, 0);     //Removes file extension
                                  newComp = app.project.items.addComp(fileNameOnly+"_Comp", curFile.width, curFile.height, 1, duration, fps);     //Creates new comp
                                  addBorderToComps(newComp);
                                  newComp.layers.add(curFile);     //Adds file to comp
                                  imageSizeToBorderSize (newComp, 5);                             
                                  moveItemToFolder(newComp, compAEFolderName);     //Moves new comp to folder
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                   } // end function createCompsAddToQ
                    // resize layer to comp
                    function imageSizeToCompSize(compObj, layerObj){
                        try{
                            var curLayerBoundry, curLayerScale, newLayerScale, myNewLayerScale;
                            curLayerBoundry = layerObj.sourceRectAtTime(0,false);
                            curLayerScaleObj = layerObj.property("ADBE Transform Group").property("ADBE Scale");
                            curLayerScaleVal = curLayerScaleObj.value;
                            newLayerScale = curLayerScaleVal*Math.min(compObj.width/curLayerBoundry.width, compObj.height/curLayerBoundry.height);
                            myNewLayerScale = newLayerScale*.75;
                            curLayerScaleObj.setValue(myNewLayerScale);
                        }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                    } // end function imageSizeToCompSize
                    // resize image to less than frame
                   function imageSizeToBorderSize(compObj, frameOffset){
                       try{                       
                            var curLayerBoundry, curLayerScale, newLayerScale, myNewLayerScale;
                            layerPhotoObj = compObj.layer(1);
                            layerFrameObj = compObj.layer(2);
                            curLayerBoundry = layerPhotoObj.sourceRectAtTime(0,false);
                            curLayerScaleObj = layerPhotoObj.property("ADBE Transform Group").property("ADBE Scale");                       
                            curLayerScaleVal = curLayerScaleObj.value;                       
                            if (frameOffset != 0){
                                newScale = 100-frameOffset;
                                layerPhotoObj.scale.setValue([newScale,newScale,100]);
                            }else{
                                layerPhotoObj.scale.setValue([95,95,100]);
                       }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
                   } // end function imageSizeToBorderSize
               }catch(err){alert("Error at line# " + err.line.toString() + "\r" + err.toString());}
           } // end function fileToCompToQ
         createSlideshow(this);
    } // end script

    DECLARE @Query VARCHAR(MAX)=''
    DECLARE @DbName VARCHAR(400) = '<DBNAME>'
    DECLARE @DbFilePath VARCHAR(400) = '<Valid DataFilePath>'
    DECLARE @DBLogFilePath VARCHAR(400)='<Valid LogFile Path>'
    SET @Query = @Query + 'CREATE DATABASE '+@DbName +' ON PRIMARY '
    SET @Query = @Query + '( NAME = '''+@DbName +''', FILENAME = '''+@DbFilePath+@DbName +'.mdf'' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) '
    SET @Query = @Query + ' LOG ON '
    SET @Query = @Query + '( NAME = '''+@DbName +'_log'', FILENAME = '''+@DblogFilePath+@DbName +'_log.ldf'' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)'
    print @query
    exec(@query)
    --Prashanth

Maybe you are looking for

  • Java heap space error: OutOfMemoryError

    Hi, We are getting below error when we XML Publisher report. Oracle XML Publisher version is: 5.6.3 We have followed below things to get rid off this error but there is no success. Log in as XML Publisher Administrator. Select Templates, then query u

  • My iPhone 6 doesn't work with Audi MMI adapter

    When I try to connect my iPhone 6 to the Audi MMI adapter in the glove compartment of my 2015 Q5, it shows up as a source on the media screen, but says there are no playable files.

  • Built in report query

    There are few reports that I find useful, not so much as for the report, but as an example of the query I would use to get the data. But occasionally I run into a report where I can't see the query used for the report when using Report Builder.  One

  • Upgrading from Trial to registered version of Server 2012 Essentials

    I believe my Trial ran out. Arrived in the morning to see my server rebooting right after attempting to scan the registry. During the scan, it reads 0% and erorrs to "If you'd really like to know, it is a registry error". I'm able to restart in Safe

  • About system objects

    hi to all iam little bit confused on system objects i have developed a webdynpro application and deployed in the  portal and created the JCO connection for that application(backed ECC) So when and where System Objects come into picture guide me on th