Automating Exce lReports using DTS

Has any one used DTS to automate the production of Excel reports using DTS and the spreadsheet tool kit? Any thought and/or comments would be welcome.Thanks

Hi,If you wish to use Excel and the spreadsheet toolkit and DTS, it's going to be difficult. Indeed, from what I have seen, you can't use the spreadsheet toolkit through DTS directly. (except doing some vb code to create an Excel object and launch macros through that, but what's the use of DTS in this case, except inputing parameters to the vb program??).Otherwise,you can generate the reports dynamically with a "shell task" and maxl. On the command line, include the parameters to be given to maxl script.Then load the values in a SQLServer table.Regarding the extract from the table to Excel, the only question is about correctly formatting the sheet.hoep it helpsEric BelmonPartake [email protected]

Similar Messages

  • Import a CSV text file into SQL Server using DTS

    Hi,
    This may be a silly question but im gonna ask it anyway!
    What i need to do is execute a DTS package from a CF page to read a text file and import its content to a table. I have 100's of txt files with 10,000's of rows.
    The reason i think this is a silly question is because when setting the DTS package in SQL Ent, you have to specify the file name of the file you wish to import data from, therefore, its possible that you cannot change the file name. Ive done lots of research and not found one example that will allow me to do dynamically change the file name making the DTS pick up a different file. The only code ive found is as below, that executes the DTS and imports the data obtained from the file name that was set when the DTS package was created.
    <cfobject
    type="COM" name="objDTS" class="DTS.Package" action="CREATE">
    <CFSET
    r = objDTS.LoadfromSQLServer("[SERVERNAME]","[PASSWORD]","",0,"","","","[DTSPACKAGE]","")>
    <cfset
    p = objDTS.Execute()>
    I found the following suggestion in a forum somewhere, but ive not had much luck with it
    <cfset
    objDTS.GlobalVariables.Item("filename").Value = "[statsFileName]">
    I know an alternative to this is to read the file using CFfile or using Java and insert one by one, i dont dont like that method as it could cause performance issues with my server.
    Hope someone can help me out.
    regards
    d

    Questions:
    1. What version of SQL Server are you using?
    2. Are you required to use a specific DTS package or do you simply need to import data from a file to a table?  You might also consider using the bcp utility or, if you are using 2005 or newer, integration services.
    3. Is the uploading of files and the import of data a manual process or is it automated?  Is there a user uploading one file at a time to your server or do you receive files in batches.  Can you describe the work flow?
    You might try the following if you are required to use DTS:
    1. Upload your text file with CFFILE, putting in the directory expected by your DTS package.
    2. Rename the file to the name required by your DTS package
    3. Use CFEXECUTE to run the DTS package by calling dtsrun at the command line.
    dtsrun
    http://msdn.microsoft.com/en-us/library/aa224467%28SQL.80%29.aspx
    bcp
    http://msdn.microsoft.com/en-us/library/aa174646%28SQL.80%29.aspx

  • Cloud automation testing feasibility using Coded UI 2013.

    Hi,
    I am unable to find any document which could explain whether automation testing for cloud application could be achieved using Coded UI 2013. In my project the plan is to move all applications to cloud network and as an automation tester I have automated
    those application. I am bit confused how to start up the automation. We will be using private cloud, the confusion I have is, will it be similar to automate cloud application like our websites in a network ?
    Please provide some details how to start up with cloud automation.
    Ahetejazahmad Khan.

    Hi Ahetejazahmad Khan,
    Glad to see you again!
    Just to make this issue clearly, do you mean that you want to run the coded UI test in Azure?
    If so, I think you could get useful informaiton from the MCC's suggestion here:
    https://social.msdn.microsoft.com/Forums/en-US/9597e237-d792-4060-8580-64039f29561e/how-to-run-codedui-test-in-azure?forum=windowsazuredevelopment
    A blog here:
    http://blogs.msdn.com/b/anujchaudhary/archive/2012/11/02/windows-azure-automated-ui-testing-using-the-power-of-cloud.aspx
    Of course, we would think about the supported configurations and platforms here:
    https://msdn.microsoft.com/en-us/library/dd380742(v=vs.120).aspx
    It shared all the configurations and platforms which was supported by the coded UI tests.
    If I have misunderstood this issue, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Automator Folder Actions - Use filename as subject in email

    I regularly email .pdf atttachments to my head office. These are hand-written sales orders which are scanned in. The scanner software gives each file a sequential filename (eg. OrderNo_110612).
    I have set up a Folder Action in Automator to create a new email and send the file as an attachment when it is added to the folder.
    Get Selected Finder Items
    New Mail Message
    Send Outgoing Messages
    I would really like to add the filename to the subject of the email. Is there a script I can run within the 'Run Shell Script' action that will extract the filename and can then be used as a variable in the subject field? This would allow both myself and head office to easily find the email at a later date should the need arise.
    Any help would be gratefully received. I am not a programmer, although I understand the principle of variables etc..
    I am using OS X Lion 10.7.2
    Any help would be really gratefully received.
    Many thanks

    sorry, spaced.
    on run {input, parameters}
              tell application "System Events"
                        return name of first item of input
              end tell
    end run
    P.s. this only work for the first filename.  if you want the names of multiple attachments it needs to be revised a bit.

  • Automator or Applescript using png files with alpha channel

    I have hundred of png files with alpha channel.
    I want to suppress alpha channel.
    How can i do it using Automator or Applescript ?
    Thank you very much.

    You can use the free command line image processing tool ImageMagick in your Applescripts or Automator workflows, as well as from a Terminal shell.
    You can download ImageMagick from http://www.imagemagick.org, but Cactuslab has simplified installation by putting together an installer package. It’s available at  http://cactuslab.com/imagemagick/. Download the package and double-click on it. Follow the instructions to install. It will install ImageMagick into /opt/ImageMagick and add it to your $PATH by creating a file in /etc/paths.d/. Restart your computer for the changes to take effect.
    The two ImageMagick commands we’re concerned with are “convert” and “mogrify”. Convert is more efficient for multiple and piped operations on the same image file, and mogrify is more efficient for batch processing. Generally speaking, convert will output a file separate from the input file. Unless a path is specified, mogrify will overwrite the input file with the output file. An important distinction.
    You can perform various operations on the alpha channel using arguments after either the convert or mogrify command. Two of the available arguments are:
    -alpha off - Disables the image's transparency channel. Does not delete or change the existing data, just turns off the use of that data.
    -alpha remove - Composite the image over the background color.
    Also of use are the -flatten and -background options:
    -flatten - overlay all the image layers into a final image and may be used to underlay an opaque color to remove transparency from an image.
    -background - sets the background color.
    Start off using the convert command with a single image to see the effect and adjust to your liking. Once you’ve achieved the desired outcome, then use the mogrify command to batch process the chosen images.
    Before getting into how to use Automator or Applescript in your workflow, use Terminal and the command line to see the effect on a single image. Copy one image to your ~/Desktop. In Terminal change the directory to ~/Desktop by typing the following command and pressing the Enter key:
    cd ~/Desktop
    Then choose the option you are looking for, -alpha remove for instance, type the following command and press the Enter key:
    convert input-photo.png -alpha remove output-photo.png
    You can check the alpha channel (transparency) and background in the Preview app, go View > Show Image Background from the menu bar.
    Once you’re ready to batch proces, place all the photos you want to convert with the same command into one folder. Copy the folder to your ~/Desktop. Let’s assume you’ve labeled the folder “InPhotos”. It’s prudent to manipulate copies in case something goes amiss. In that event you can copy the folder with the originals again and start over. Create a new empty folder on your ~/Desktop and call it “OutPhotos”. Let’s also assume your home directory is called “Me”. The following command will process the photos from the InPhotos folder and put them in the OutPhotos folder:
    mogrify -alpha remove -path /Users/me/Desktop/OutPhotos/ /Users/me/Desktop/InPhotos/*png
    According to Apple Technical Note TN2065:
    "when you use just a command name instead of a complete path, the shell uses a list of directories (known as your PATH) to try and find the complete path to the command. For security and portability reasons, do shell script ignores the configuration files that an interactive shell would read"
    So, you need to use the full path to to ImageMagick commands, unlike in the shell where you can just use the command name.
    To batch process using Automator, use the “Run Shell Script” action (note: retain the single space at the beginning of the last line):
    /opt/ImageMagick/bin/mogrify \
    -alpha remove \
    -path /Users/Me/Desktop/OutPhotos/ \
    /Users/Me/Desktop/InPhotos/*png
    To batch process using Script Editor (Applescript), use the “do shell script” command:
    do shell script "/opt/ImageMagick/bin/mogrify -alpha remove -path /Users/pd/Desktop/OutPhotos/ /Users/pd/Desktop/InPhotos/*png"
    Further info on ImageMagick:
    http://www.imagemagick.org/script/command-line-options.php#alpha
    http://www.imagemagick.org/Usage/masking/#remove
    http://www.imagemagick.org/index.php
    http://www.imagemagick.org/script/command-line-tools.php
    http://www.imagemagick.org/script/command-line-options.php
    Examples:
    The original PNG image:
    -alpha off:
    -alpha remove:
    -background black -flatten:
    -background blue -flatten:
    -channel alpha -evaluate Divide 2:
    -channel alpha -evaluate Divide 2 -background black -flatten:

  • Using DTS Wizard to Import a Flat File containing data like "4124, rue Champenois"

    THE BELOW DATA SHOULD BE ONE FIELD, but the COMMA causes it to separate into two fields. The FLAT FILE is a comma-delimited CSV file. The data in the CSV file for this one field actually uses double quotes at each end of the street number and street name.
    "2144, rue Champenois"
    "340, rue Champs Elysees"
    What happens during the conversion process when using the DTS Wizard is that the street number and street name are split apart into two separate fields. This messes up the output and causes the SSIS package to fail, so that the FLAT FILE Source's data never
    makes it into a SQL Server Database Table. I saw a box called TEXT QUALIFIER, so I put the DOUBLE QUOTE in there, thinking that this would keep the one field together which contains the STREET NUMBER and STREET NAME. No, that didn't work.
    When using this import wizard with a FLAT FILE SOURCE, how do you keep a string that has double quotes at each end and a comma in the middle, together as one field?
    Now, I went back later and started all over and put the " (Double Quote one time) in thr TEXT QUALIFIER block, and this did work. Why sometimes and not others?

    Hi Champenois,
    I have tried your problem. 
    1) Exported "DimCustomer" table in "AdventureWorksDW" to filat file with bellow query.
    Query: select top 10 CustomerKey,AddressLine1 from DimCustomer where AddressLine1 like '%,%'
    2) Data comes to flat file like this.
    3) Then i have taken flat file source and configured like this.
    4) Now went to "Columns" tab and check the data. I am getting only two columns like above.
    So, Please check your flat file connection manager with above flat file connection screen shot.
    Please make this as answer if, you are able to solve your problem.

  • Automation error while using GetHierarchy

    Hi
    I have a hierarchical table name "Organization" in my MDM repository. I am using the following VB code to get the hierarchy. The system gives me "Automation error" (cat object is successfully initialized)
        Dim oNode As TreeNode
        oNode = cat.GetHierarchy("Organization")
    The code works only with Taxonomy tables. I've tried GetBranchFromNode and GetResultTree methods but all of them give me "Automation error" with my hierarchical table. They work fine with Taxonomy tables. Please help me how can have the tree structure of my hierarchy table.
    I am using MDM 5.5 SP4 Patch01.
    Thanks & Regards,
    Yasir Rizwan Saqib

    well ... its like answering myself
    the code given to a table is used to identify it. Use the code instead the name in API calls and it works. I now find it handy to have the same code as the name of the table. It is decieving that API documentation asks for table name as the argument when what they really need is the code.
    -yasir

  • [Automation] Differences when using Flex Automation Framework ?

    Hello everyone,
    I recently made some tests with Flex Automation Framework and noticed that using it slightly change the application behaviour.
    First, it changes the way container intercept dans handle mouse event as expalined in Adobe JIRA ticket #791:http://bugs.adobe.com/jira/browse/FLEXENT-791
    I'm using sdk 3.2 so it won't be fixed. However future releases (3.4+ and 4.0+) should not have this problem.
    Secondly I notice that using RuntimeLoader.swf on my application remove the text of some labels I have in my login form.
    This does not happen when compiling the application with automation libraries.
    Does anyone experienced other bahavioural changes when using automation ?
    Thank,
    Olivier

    Hi Olivier
    The only change which we know of is the one that you rightly pointed out in bug http://bugs.adobe.com/jira/browse/FLEXENT-791 . There are no other behavioral changes that occur when you compile your application with automation.
    With regards to your statement
    Secondly I notice that using RuntimeLoader.swf on my application remove the text of some labels I have in my login form.
    This does not happen when compiling the application with automation libraries.
    Can you please send us a working sample of this issue as we have not come across this behavior before.
    Regards
    Shanaz

  • Need help automating movies export using QuickTime Pro 7.4

    I would like to convert several movies (.mov) to .3gp and .mp4 for mobile phones. I found some sample code here to accomplish the automation process:
    http://developer.apple.com/samplecode/QuickTime/idxQuickTimeforWindows-date.html #doclist
    I built the sample QTControlCommandLine which is a command line program to convert a file from one format to another. When I use this program to convert a .mov file, there's no audio in the resulting .3gp (or .mp4); however when I manually convert the file (i.e. start QuickTime, load the .mov file and then export to .3gp), the resulting file is fine, with audio. I looked at the resulting files from both processes (using QT's view movie properties), and sure enough the manual process produces a file WITH an audio track, while the automated (COM) process produces one WITHOUT an audio track.
    Has anyone encountered this problem? Is there some simple flag that the sample program failed to toggle to allow audio to be exported? I appreciate any leads to solve this issue.
    Regards

    Found my own answer. It is a licensing issue as indicated here:
    http://developer.apple.com/qa/qa2001/qa1347.html

  • Automated Purge functionality using runjob command line prompt?

    We are currently running scheduled jobs through a command line interface using various batch scripts.  We are calling the runjob command.
    My question, is there a Purge command prompt that we could include in these scheduled jobs to automate desired purges?  We don't want to use the runopsjob command because this is taking away from our ability to view data in our created results books.
    Thanks,
    Jordan

    Hey Mike,
    So let me layout the situation we are currently in.  For our end-users, we generate results books showing data quality consistency issues between 2 systems.  Those results books may have upwards to 100 tabs that the users will go into and analyze for what exactly is causing the discrepancy.  Along with those results books, we populate Dashboards that will give a high-level understanding of what pages in the results books need attention as well as track our improvement overtime to present to upper management.
    Our issue is that our storage space isn't sufficient for the large quantity of processes and records being ran and populated in EDQ.  Therefore, we want to set up an automated purge schedule that we can use and incorporate with our command line batch scripts where we run the RUNJOB command.  This almost seems as if it should be consider an enhancement request to either allow RUNJOB to have an automated purge schedule functionality or allow RUNOPSJOB to populate results books and dashboards.
    What are your thoughts around this and what advice would you have moving forward?
    Thanks,
    Jordan

  • Automating Adobe Audition using Python/Javascript.

    I work for a professional audio company in R&D, and I'm researching the possiblity of automating file imports, favourites processing, and file exports using information and data downloaded from a server. If possible, I'd like to write a 'monitor' application which automates as much of the processing as possible as we are a high volume company.
    Has anyone got any experience with this kind of scripting for adobe audition? if not, then does anyone have any other ideas as to how we can automate the software?
    Thanks,
    Grant.

    Hi Grant,
    At this time, Audition does not publicly expose the internal scripting environment, though it may be possible through the command line.  Send me an e-mail to [email protected] and we can discuss this a bit further.

  • Automation with QTP using swfobject as the wrapper

    I can get my project to run correctly when I use  the out of the box flex wrapper but not with swfobject.Has anyone had experience using swfobject with QTP for automation testing?
    http://code.google.com/p/swfobject/

    Ok, apparently you didn't "sort and compress IDs" like I said (out of curiosity: why not?). DO THAT. The MAX ID should be 90, MAX ID IN USE should then be 85 (with Rubiter Ate). Now, still in properties, go to the IDS pull down menu again, this time selecting "Instrument Up". This usually is for multiple instruments in one ensemble to up a certain instrument in the automation hierarchy. It seems at the time the ensemble was created, there have been more instruments (like some FX) present that got deleted later on, leaving the base ID of the remaining instrument somewhere in the 300 range (or so). However, after you did the "Instrument Up" thing, the Base ID should now be 0, which is what it should be. Put the Instrument Channel in Logic into Latch mode, start the sequencer and move the knobs. Logic should record all automation just fine (checked it here).
    G5 dual 2GHz   Mac OS X (10.4.8)   Logic Pro 7.1.1 semi acoustic fuel cell
    G5 dual 2GHz   Mac OS X (10.4.8)   Logic Pro 7.1.1 semi acoustic fuel cell

  • Automating Sequencing application using App-V 5.0

    Hey Guys,
    Am working on App-V 5.0 to create virtual packages, am looking for some silent commands from App-v 5.0 which can automate my sequencing process. 
    Hope App-v 4.6 sequencer had few silent command line and options for automating the sequencing if we give the source location as input, likewise for app-v 5.0
    Am open to any scripting or coding languages, all i need assistance in whether app-v 5.0 have commands to auotmate the sequencing + applying standards. 
    Please assist. 
    Thanks for your time in reading this post. 
    Cheers,

    http://stealthpuppy.com/app-v-5-powershell-one-liners-sequencing-an-application/
    http://technet.microsoft.com/en-us/library/jj684300.aspx
    http://www.applepie.se/app-v-5-powershell-sequencing
    http://virtualengine.co.uk/2013/app-v-5-package-powershell-cmdlets-released/
    http://ittechlog.wordpress.com/2013/11/20/unattended-sequencing-using-templates-in-app-v-5/
    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually
    answer your question). This can be beneficial to other community members reading the thread.
    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.
    Twitter:
    @stealthpuppy | Blog:
    stealthpuppy.com |
    The Definitive Guide to Delivering Microsoft Office with App-V

  • Automation: should I use absolute or percentage volume change?

    Hi
    I've just started using automation. I have a number of verses (vocal) and I've been working on each one individually to get the volume levels of the various phrases/words OK. But suppose that, overall, one of the verses needs bringing up relative to the others. Once I've selected it, should I raise it "absolute" or "relative" in order to preserve the volume balance within the chorus?

    Ekko wrote:
    Hi
    I've just started using automation. I have a number of verses (vocal) and I've been working on each one individually to get the volume levels of the various phrases/words OK. But suppose that, overall, one of the verses needs bringing up relative to the others. Once I've selected it, should I raise it "absolute" or "relative" in order to preserve the volume balance within the chorus?
    What do you mean by relative and absolute? If you raise something to be louder than the rest, that is always relative.
    I always wait until I have the "provisionally complete" song orchestration ("band") before I start balancing things. Choruses tend to be a little busier musically than verses, so often it is the music that brings the chorus 'up', and even the expression of the singer, or added voice doubling or backing vocals.
    In general there should not be too much volume difference between a verse and a chorus, depending of course also on the dynamics of the recorded singing. But if it is levelled well during recording, you shouldn't exceed more than 3/4 db difference on the same vocal track. But that is very general, and I can't see your files.
    My advice: just try it out, and if you are unsure, work on something else for a while (the rest of the music may well 'lead the way' in this bringing up of the chorus.
    regards, Erik.

  • AUTOMATION OF IMPORTING USING BATCH FILES...!

    Hello Everyone!
    I want your help on this matter. Actually I am trying to get data( in the form of XML) from BI into MDM SP04.
    I want to automate the import process. i have saved the map and defined a port in the console and given the map name for the port.
    now i configured the INI file present in the import manager batch.
    I read somewhere that to run the importmanagerbatch.exe file i need to create a batch file having info about the INI file and then run the batch file which will execute the .EXE file.
    But after doing this still data is not cmg in the repository.
    Can anybody list me down all the required steps to automate importing. N can more than 1 map be taken care of in the console? or probably for every map we will have to create new ports for them?
    I am totally confused....... please help me out.
    Thanks and Regards.
    Nitin jain.

    Hi, Nitin,
    The Import Batch can handle any number of maps in one batch process. It does have a limitation that the batch ini file will only reference 1 import file. But that file can contain any number of records and different table data.
    I have used the Import Batch (only useable on Windows) for importing multiple check table data into the repository. In the dat file, I used the following code for each map. This is the code for the Partner Function.
    :: IMPORT MAPS
    cd "C:Program FilesSAP MDM 5.5Import Manager Batch"
    @echo . STARTED Map: "Partner Functions" %DATE% %TIME% >> "C:MDMImportReport.log"
    @echo Executing Map: Partner Functions
    ImportManagerBatch.exe /INI "C:MDMMdmImportCheckTables.ini" /CLIENTSYSTEM "R/3 4.7" /MAP "Partner Functions"
                /LANGUAGE "English [US]" >> "C:MDMImportReport.log"
    IF errorlevel 0 (echo . Completed successfully. >> "C:MDMImportReport.log")
               ELSE  (echo . FAILED with error code %errorlevel% >> "C:MDMImportReport.log")
    IF errorlevel 0 (echo Completed successfully - %TIME%) ELSE (echo FAILED with error code %errorlevel%)
    @echo . Ended Mapping: "Partner Functions" %DATE% %TIME% >> "C:MDMImportReport.log"
    @echo .   >> "C:MDMImportReport.log"
    I then repeated this code in the batch.dat file for each map used. In total I had 93 maps.
    Kristin

Maybe you are looking for