Can we store procedure in a folder in text file using SQL QUERY

I want to create a folder in D drive and give folder name as current date. After that create no. of text files based on how many procedure are,  text file name will be same as procedures name and insert a procedures inside the text files by using stored

I want to create a folder in D drive and give folder name as current date. After that create no. of text files based on how many procedure are,  text file name will be same as procedures name and insert a procedures inside the text files by using stored
You can use generate scripts wizard for this. It will by default give scripts in .sql format. You can then use a command line script to change all of them to .txt.
Another option is to have SSIS package and use File SYstem Task to rename it to .txt
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • Can v read a client text file using SQL*plus??

    We have a requirement like this: We need to read a text file to find spelling mistakes. Problem is the file has to be always moved to the DB machine, which is a Linux box and then run a stored procedure which uses UTL_FILE. Now in order to show the spelling mistakes of the file the user will have to again copy the file with the spelling mistakses (output file) from Linux to Windows.
    Is there a way to do it using SQL*Plus, where the text file is in the client machine???? Then users don't have to copy the file to and from the Linux box.

    SQL*Plus is a client software and whatever code you write using SQL*Plus, it ultimately run on the server. So the answers to your question is "no".

  • Can a Stored Procedure be called from a Rule (not using Scripted JDBC Adap)

    Hello smart people,
    Question: Can a stored procedure be called from a Rule without using the Scripted JDBC Resource Adapter?
    What's Desired: The project has very strong sql developers and average at best Java developers. We have been successful at implementing the scripted JDBC Resource Adapter which makes use of Java Bean shells. The custom Java Bean shell contains code that calls a stored procedure. We are cool with that process.
    However we would like to be able to set up a Rule that calls a Stored Procedure without jumping thru the Java Bean Shell layer. The Stored Procedures we will be developing will not access the tables in the Waveset database. Instead the Stored Procedures will be accessing custom tables in a custom database. The custom DBase will be housed on the same dBase server as the Waveset database.
    Environment: Identity Manager 7.1. Oracle 10i, and Unix OS.
    It seems to me that this task is possible, but the posts in this forum make it sound like perhaps it is not.
    Do any of you smart people agree that it should be possible or better yet has anyone implemented such an approach?

    We did this by putting all of the JDBC calls into a Java class, then instantiated that class and called the methods from within a rule. An example of a rule we used is this:
    <Rule authType='UserMembersRule' name='List UserType'>
        <defvar name='adapter'>
          <new class='com.waveset.adapter.ScriptedJdbcResourceAdapter'/>
        <invoke name='setResource'>
          <invoke name='getObject' class='com.waveset.ui.FormUtil'>
        <defvar name='jdbcHelper'>
          <new class='edu.bates.JDBCHelper'>
            <invoke name='getConnection'>
        <defvar name='userList'>
          <new class='java.util.ArrayList'/>
        <invoke name='addQueryToList'>
          <s>SQL QUERY HERE</s>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>

  • Can I store a .pdf or .docx in iCloud without using iWork or Pages?

    Can I store a .pdf or .docx in iCloud without using iWork or Pages?

    Welcome to the Apple Community.
    Yes, it's possible to do that with 3rd party software such as Air Doc Viewer.
    If you want to upload documents that aren't for use with iOS devices this User Tip might be of interest.

  • Procedure for read/write an XML-File using UCCX9

    Hi Team!
    Is there someone who can explain me the procedure of reading/writing an XML-File using Cisco UCCX Rel. 9.0?
    In the last couple of days I did a lot of research on the partner community as well as reading the CRS-Editor-PDFs.
    But I can’t find a solution.
    There are some templates available but they all didn’t seem to work.
    I have two xml-files, both uploaded to “Document Management\en_us\”.
    The script itself is attached to this posting.
    I build that my script according to a sample script I found in the community.
    From my point of view I have configured my script exactly like the sample script.
    But it still doesn’t work.
    I am especially interested in where to store the the appropriate files.
    I would be very happy if there is someone who can explain me, what’s wrong there.
    Many thanks in advance.
    Kind regards

    I'm experiencing the same issue [reading XML causes errors that say things from "no such file" to some odd Java exception.] I'm able to use a template XML file and after authenticating a user, transform the template into a proper XML file and then successfully save it to the en_US Doc Repository with updated values.
    However, no matter what I've tried or who I've asked, the READ on the XML file so that I can actually script something that does some routing based on the value of the XML file created in my first script? Ultra fail.
    I've even worked with three separate TAC IPCC engineers who were able to reproduce the issue in their test environment, but they were unable to assist. Eventually, whe pressed, I received this response from the last IPCC engineer.:
    "Hello Brad,
    Yes I know what I provided you with is what you already have achieved and this missing step is precisely what you need: how to setup the script to check the status and value of this XML document and then decide routing according to the state.   But unfortunately this is what I found internally.  The other resources are the ones you already know:  support forums, scripting guides.  The other resource with suggest to customer looking for script assistance is the Cisco Account Manager of your company, they know where to get the resources for such issues.   Then again as I mentioned before on our phone conversation TAC does not support scripting but certainly if I find something else on my side I will let you know for sure."
    I would do ponderous cartwheels of joy if someone who has this working in version 9.x [9.0.2 specifically] could share the deep magic.

  • Help Required -- Can we use SQL Query to READ data from SAP MDM Tables

    Hi All,
    Please help.........
    Can we use SQL Query to READ(No Creation/Updation/Deletion  just Read) Data from SAP MDM tables directly, without using MDM Syndicator.
    Or direct SQL access to SAP MDM tables is not possible. Only through MDM Syndicator can we export data.
    Thanks in Advance

    All the tables you create in Repository comes under A2i_CM_Tables in Database named as your repository name. So the tables names are fields of table A2i_CM_Tables. Now i tried it but cant make it.
    Now, I dont think its possible to extract all fields in tables and there values using select query. May be pure sql guy can do that or not.
    But there is no relation of data extraction and syndicator. Data is viewed in Data Manager. and you can also store data in a file from DM also.

  • How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    Hi Ed
    Thank you for contacting me, however I already know how to save text to
    audio files via timeline using the Export feature.
    So my question was not entirely clear and I apologize for that.  To explain
    further, whenever I save a text to audio file, captivate takes me to a
    default save as folder where I then have browse back to my production
    folder where I am keeping all my Txt to Aud files.  This is very tedious
    process when you have alot of files to save.  So my question was is there a
    way to configure captivate so I can make my production folder the default
    file for whenever I save a Txt to Audio file through Export feature that
    the system automatically takes me to that production folder, and I am
    spared the long tedious process of saving the file manually to the
    prodcution folder I want.
    I have copy the pathway to the production folder in the URL filed in the
    Save As dialoge box and that workaround as cut the work down but I still
    have to paste that URL field to point the file to the right folder. So it
    would be nice if I could do everything automatically.  Microsoft makes this
    capability in their MS Office applications, so I was thinking Adobe might
    do the same thing.  Your help with this would be appreicated,
    Merrill Roberts
    Sr. Training Specialist
    SunGard Availability Services
    Direct 925-831-7730

  • How can we generate the reports in html or text file formats?

    Is there any package that can help in creating HTMLDB reports in .txt files or .html files? (Similar to TEXT_IO in Oracle Forms)
    How can we generate the reports in html or text file formats from HTMLDB?
    Thanks in Advance

    Hello all.
    Bi Publisher is great, but has a very high price tag. It's even more expensive than Forms & Reports Services. We are considering APEX to replace Forms & Reports on the web, but the reporting limitations are still a problem.
    I wonder if there is another option.

  • Can anyone recommend a programme to convert a .mov file using windows 7 to iPad 2 please?

    Can anyone recommend a programme to convert a .mov file using windows 7 to iPad 2 please?

    I think handbrake is easier for novices.
    Mpegstreamclip is good software with a lot of great features but may be more than most people need.

  • How I can call Store procedure by TABLENAME.FIELD_VALUE ?

    I have one table called store_proc_list.
    In the table there are two fields ie ID, SP_NAME.
    In SP_NAME I have set the store procedure name.
    What I wanted to do is .
    I am writting one store procedure and in that
    and I want to execute the another store procedure (by name), which I will get from
    SELECT sp_name FROM store_proc_list WHERE id=1
    How I can do it ?
    I tried to do it but I could not get that how we can execute stored procedure by the name which I will get from the table.field_value for the specified condition.
    sample will more helpful.
    Kamlesh Gujarathi
    [email protected]

    I am curious to know how does Execute immediate help in executing the stored prod dynamically...
    2 AS
    3 BEGIN
    4 DBMS_OUTPUT.PUT_LINE('This is test_proc1');
    5 END;
    6 /
    Procedure created.
    2 AS
    3 lv_proc_name VARCHAR2(30) := 'TEST_PROC1';
    4 BEGIN
    5 EXECUTE IMMEDIATE lv_proc_name;
    6 END;
    7 /
    Procedure created.
    SQL>sho err;
    No errors.
    SQL>exec test_proc2;
    BEGIN test_proc2; END;
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at "AIP.TEST_PROC2", line 5
    ORA-06512: at line 1

  • New to iPhoto - Can I store photos in Public folder?

    I am new to iMac and iPhoto.
    My wife and I both have user accounts.
    Can I store my photo collection in my public folder, then have both user accounts use iPhoto to access the photos, or will this cause a problem?
    Ideally, I would like us to share one album. But I do not know how iPhoto organizes, and do not know if this will cause a problem for two separate iPhoto programs on different user accounts (same computer) accessing the same photo library.
    Before I start, is this OK? Or should we both just have a separate library on our own accounts?

    Best advice: use two libraries in separate accounts and then use iPhoto Sharing to share the pics:
    For iPhoto 09 (version 8.0.2) and later:
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    Tha advantage to the above is that it's really safe, especially for new users. However...
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How can i store latitude and longitude (of registered user locations) in sql server and how can i query it for finding locations inside X radius from point y (or any user)?

    In my app (WP 8.1) i have to store user location (lat,lon) in sql db so how can i store that location detail? And i also have to find all the location which are inside certain radius X from another user location, How can i do this?
    Any Sample project or code or any blog post?
    P.S. I use sql server 2012.

    If you need to do spatial queries like the one you mentioned you'd need to store it as a spatial geography type. For points, a simple SQL INSERT statement using the Point() method would do it. Example here: For locations inside a radius, you'd use STDistance() method. All of the methods for the geography data type are documented here: and can be used in ordinary T-SQL statements.
    If you need to use the SQL Server spatial library in your .NET application direct, Alastair has some nice blog posts, like this one: , he even wrote a book. Or search the answers in this forum.
    Hope this helps, Bob

  • How can I add random mail signatures from a text file?

    I'm trying to add a different quote to every email that I write... is there a program or way for Mail to pluck and append a quote at random from a external file of quotes?  (I'm not talking about the standard "Random" feature built into Mail.)
    There must be one out there, but I can't find it.  I'm using Snow Leopard and Mail 4.5

    Here is a running start on getting specific lines in the case lines starting with ComboBox. I took your data and placed it into a text file named TextFile1.txt in the bin\debug folder. Code below was done in
    a console app.
    using System;
    using System.IO;
    using System.Linq;
    namespace ConsoleApplication1
    internal class Program
    private static void Main(string[] args)
    var result =
    from T in File.ReadAllLines(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TextFile1.txt"))
    .Select((line, index) => new { Line = line, Index = index })
    .Where((s) => s.Line.StartsWith("ComboBox"))
    select T
    if (result.Count > 0)
    foreach (var item in result)
    Console.WriteLine("Line: {0} Data: {1}", item.Index, item.Line);
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile but do not reply to forum questions.

  • [SOLVED] Can't get rid of a wine-polluted text file icon [KDE]

    Hello folks,
    For some reason, my KDE system likes to use a Wine program based icon for all text files when I'm using a Faenza theme. The problem occurs only for my user (not root) so I think this is an user-specific issue.
    I've already checked .local/share/icons folder for matching icon images. I found one which was named "text-plain.png", being equally the same "W-space" icon image as shown in the picture below. Thus I removed this png file from all necessary subfolders (22, 24, 32, 48...), so as far as I can think, there should not be any traces for the old icon image left. I've already re-checked all folders which I think are relevant to the issue. In addition, I've updated icon cache by using gtk-update-icon-cache and kbuildsycoca4 --noincremental commands. However, the system seems to disagree with me and the annoying icon appears still in text file icons.
    The problem appears practically like in the following picture:
    W-space icon image is very likely related to Adobe Photoshop which I've installed on my PlayonLinux installation (.PlayonLinux/wineprefix/photoshop). I still don't understand by which logic the system decides to use this W-space image for text files.
    I wonder if I need to take further steps to get rid of this annoying icon. Am I missing something? All I want is that KDE would use basic Faenza icon for text files. Any hints are welcome!
    Thank you!
    Last edited by Fincer (2014-09-30 11:30:43)

    Allright, this was, after all, a very simple issue. As expected.
    I simply removed file /var/tmp/kdecache-fincer/icon-cache.kcache, rebooted the system and all icons are fine now.
    Topic marked as solved.
    Last edited by Fincer (2014-09-30 11:30:58)

  • Can't open a document saved as a text file

    I recently saved a document as a text file because I wanted to send it to some Windows users. Now, a few days latter when I try to open the document it is in code/ASCII thereby unreadalbe. I had one of the people I sent it to send it back to me, which he did with a .doc extension. I cannot open it either. I don't have Word. Is there anyway I can open this document. And . . what am I doing wrong so I don't do this again.
    Also if this topic has already been address please excuse me. My search didn't bring up anything. Thanks.

    Welcome to Apple Discussions
    You shouldn't have a problem opening a text file, but there are a couple of things that could be causing a problem. First, make sure the AppleWorks 6 application is in the AppleWorks 6 folder in Applications and that the folder also contains the AppleWorks Essentials folder. In the AppleWorks Essentials folder is a folder named Translators. I the application & the translators are not in the same AppleWorks 6 folder, they won't be able to "make a connection." This may also let you open a .doc file, but I can't guarantee it as Microsoft has made significant changes in the last couple of years causing AppleWorks' .doc translator to fail.
    Also, try adding .txt to end of the file name. This will let OS X identify the file as text &, if nothing else, will allow TextEdit to open it.

Maybe you are looking for

  • How do I display blob (image) in a Portal Report

    I am using 9ias 10222 and portal 30983 and I have a table that stores an image as a blob and have a varchar field to store the mime type. I have created a form to upload the image and can then query the form to display the image. How do I dislay the

  • Font appears thicker in browser

    I am setting up a web site in Dreamweaver and have chosen Helvetica Neue and related fonts for the text. It looks right in Dreamweaver but when I view it in browsers, all type thickens up. For the body text, I have chosen "lighter" as the weight. Any

  • Customizing Photoshop Web Gallery in Dreamweaver

    HOW DO I STOP WIDTH OF IMAGE FROM STRETCHING? (height is in proportion) more details: I've almost finished customizing a Photoshop web gallery in Dreamweaver, which is completely confusing for me (i'm a novice) and any head way i made in changing the

  • FCP 7 Multiple Graphics Cards & 3 Displays

    With FCP 7 (Studio 3) has Apple fixed the issue that you can't have multiple graphics cards and more than 2 displays as was the problem with prior versions?

  • Websites with flash photo galleries do not display photos in firefox.

    I manage several websites that use the 'expose' photo gallery. Expose uses flash to display photos in the photo galleries. When you go to one of these web sites and click on the photo gallery link, the photos are not displayed, the page shows the gal