Return binary file in table entry

Hi all,
I wish to create RFC which will return in a table the binary code of a certain output (customer invoice).
The motivation is that it'd be called by COM Object from external script and using "BinaryWrite" it will open Acrobat Reader and display a PDF file.
Currenty, I simply read directly from the spool but it ain't working (yet). Any other ideas ?
Thanks,
Shai E.

you can use SCMS_TEXT_TO_BINARY to convert text to binary.
Regards
Raja

Similar Messages

  • Write Web service to return binary file

    Hi there,
    I am trying to write a simple weblogic web service which read a file (pdf, doc, png...) and return the file in SOAP (as attachment).
    I haven't found any bea tutorial on that topic. I would appreciate if you could provide me some links or some tutorials about SOAP attachment with weblogic 10.0
    Best regards,
    Phuong

    I don't see a version number.
    I don't see any indication as to where the code you posted originated.
    I don't see any indication of whether it works or does not work (for example an error message).
    If you have questions about web services ask them in the correct forum.
    If you want someone to teach you how to use them all I can tell you is that the developers where I work use lots of SOAP and not one has written a procedure similar to what you posted.

  • Invoke web service to return binary file (image) using soap

    Dear all,
    Please I a problem when invoking a web service throgh soap protocol,
    this we service has two operations, the first one takes student id and return doctype of it's documents id's,
    the another operation takes the document id and return it's image ( this is like archiving system)
    NOTE:
    I use soap package from this link:
    [http://www.oracle-base.com/dba/miscellaneous/soap_api.sql|http://www.oracle-base.com/dba/miscellaneous/soap_api.sql]
    Also I tried to invoke the following web service but failed:
    [http://www.webservicex.net/WS/WSDetails.aspx?CATID=12&WSID=56]
    CREATE OR REPLACE PACKAGE BODY pkg_my_webservice IS
    vg_funciton_fnc VARCHAR2(256):='GetCitiesByCountry';
    vg_ws_address VARCHAR2(255):='http://www.webservicex.net/globalweather.asmx';
    FUNCTION call_myfunction(vp_parameter1 VARCHAR2,vp_parameter2 VARCHAR2)
    RETURN VARCHAR2 AS
    ol_req soap_api.t_request;
    ol_resp soap_api.t_response;
    BEGIN
    ol_req:=soap_api.new_request(vg_funciton_fnc,'xmlns="'||vg_ws_address||'"');
    soap_api.add_parameter(ol_req,'string1','partns:string',vp_parameter1);
    soap_api.add_parameter(ol_req,'string2','partns:string',vp_parameter1);
    ol_resp:=soap_api.invoke(ol_req,vg_ws_address,vg_funciton_fnc);
    RETURN soap_api.get_return_value(ol_resp,'result','xmlns:m="'||vg_ws_address||'"');
    END call_myfunction;
    END pkg_my_webservice;
    Please can any one tell me how to invoke this web service to achive this ?
    Thanks in advance

    I don't see a version number.
    I don't see any indication as to where the code you posted originated.
    I don't see any indication of whether it works or does not work (for example an error message).
    If you have questions about web services ask them in the correct forum.
    If you want someone to teach you how to use them all I can tell you is that the developers where I work use lots of SOAP and not one has written a procedure similar to what you posted.

  • How to read/write a binary file from/to a table with BLOB column

    I have create a table with a column of data type BLOB.
    I can read/write an IMAGE file from/to the column of the table using:
    READ_IMAGE_FILE
    WRITE_IMAGE_FILE
    How can I do the same for other binary files, e.g. aaaa.zip?

    There is a package procedure dbms_lob.readblobfromfile to read BLOB's from file.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#sthref3583
    To write a BLOB to file you can use a Java procedure (pre Oracle 9i R2) or utl_file.put_raw (there is no dbms_lob.writelobtofile).
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1559124855641433424::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:6379798216275

  • Transfer a binary file stored in a table field in oracle to another table different schema in oracle

    I would like to know if it is possible to use ssis to transfer a binary file of a datatype of long raw in a field in one table in oracle to a new table in a different schema of a datatype blob in oracle? The binary file is a Crystal reports executable
    which is used in a application that I support. I are trying to consolidate data fields over many schemas into one main schema to simplify the support issues.

    Hi r_peterser,
    SQL Server Integration Services maps DT_IMAGE data type to LONG RAW and BLOB in Oracle. So, you can directly use an OLE DB Source or Oracle Source adapter to extract the LONG RAW column from the Oracle database, and then load the data to the BLOB column
    of the Oracle table through an OLE DB Destination or Oracle Destination adapter.
    Reference:
    http://technet.microsoft.com/en-us/library/ms141036.aspx 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Returning records from binary file

    Hi,
    I am having trouble returning all the records from a binary file. As my knowledge is limited, I haven't been able to devise a method for counting the records and then displaying them one by one.
    Any help you can provide is appreciated. Here is the basis of my code:
    FileInputStream in = new FileInputStream("stud.bin");
    ObjectInputStream s = new ObjectInputStream(in);
    //System.out.println(s.available());
    String studentFile = (String)s.readObject();
    String gpaFile = (String)s.readObject();
    classRoll.addStudent (studentFile, gpaFile);
    System.out.println(studentFile + " has a GPA of " + gpaFile);
    System.out.flush();
    classRoll.addStudent("andy", "4.5");
    s.close();
    System.out.println(classRoll);

    are these files in text format? You should use BufferedReader class- or some native, file component of the java.io API to retrieve the values. ObjectInputStreams are meant to exchange Object instances between resources, in other words you take a specific class, generalize it and then put it in a stream. You should not use ObjectStream for retrieving IO values because you are basically taking a specific class, making it general and then converting it back to a specific class. You should only use an ObjectInputStream when you need to send a current Object to some resource (often a remote resource) that does not have access to it.
    Do some thing like:
    FileInputStream f = new FileInputStream("file");
    BufferedReader in = new BufferedReader(new InputStreamReader(f));
    while(true) {
    String line = in.readLine();
    if (line == null)
    break;
    The above code is not necessarily the best, but it might help give you a sense of how to solve the problem. You should probably stick to the java.io API excusivly and avoid the ObjectStream class for this particular problem.

  • Write to Binary File strips carriage returns (LV 8.2.1)

       I was using Write to Binary File to write a combination of strings, numbers, and time stamps.  When I later went to read the filel, it didn't quite make sense.  Although I had written strings that had lines ending in <CR><LF>, when I read them back in, they only had <LF>.  I checked this using other programs to read the file.  The <CR>'s have been stripped out!  Why would a "binary" file VI kindly edit your strings for you?  I needed the strings to be written exactly as they were.  The VI corrupted my data.
       I couldn't find any explanation for this in the help, nor any way to turn this behavior off.  Is this a known issue, a bug, or a feature?
    Regards,
       Dave T.
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

       Thanks, Altenbach and Jarrod, for your help.
       Time to eat crow.  At Altenbach's prompting, I created a sample program that would demonstrate the problem.  It didn't.  Turns out the files were fine.  I was reading them with the "Read from Text File" vi, with the EOL option enabled!  I had used another program to check the data in the file, and was basing my conclusion on that.  Unfortunately, I didn't use a good hex editor, and it turns out the program I used was also stripping the <CR> off.  So the data in the file was good, I was reading it wrong, and my double-check was reading it wrong.
    Cheers,
        Dave
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

  • Is there a better way to do this? Binary File + MERGE

    Version
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Requirement
    I need to take binary files on a file system and a perform a MERGE in a destination table that has a blob column. This is a periodic task.
    My Version
    The following is a proof of concept that I've put together. I was wondering if anyone would be willing to critique this implementation or provide a better implementation to accomplish the same task.
    In reality the SOURCE table would be an external table that parses a control file that has a list of IDs and file names.
    DROP VIEW source_vw;
    DROP TABLE destination;
    DROP TABLE source;
    DROP FUNCTION get_blob;
    DROP PROCEDURE update_blobs;
    CREATE TABLE source
    ( id    NUMBER
    , fname VARCHAR2(255)
    INSERT INTO source
    ( id
    , fname
    SELECT rownum
         , 'Untitled.png'
    FROM   dual
    CONNECT BY level <= 5;
    CREATE TABLE destination
    ( id        NUMBER
    , file_data BLOB
    INSERT INTO destination(id, file_data) VALUES (1, EMPTY_BLOB());
    INSERT INTO destination(id, file_data) VALUES (3, EMPTY_BLOB());
    INSERT INTO destination(id, file_data) VALUES (5, EMPTY_BLOB());
    CREATE OR REPLACE FUNCTION get_blob
    ( p_dirname IN VARCHAR2
    , p_fname IN VARCHAR2
    RETURN BLOB
    AS
         b            BLOB;
         bf           BFILE;
         bfile_offset NUMBER :=1;
         blob_offset  NUMBER :=1;
    BEGIN
         DBMS_LOB.CREATETEMPORARY
         ( lob_loc => b
         , cache   => FALSE
         bf := BFILENAME(p_dirname,p_fname);
         DBMS_LOB.FILEOPEN(bf,DBMS_LOB.FILE_READONLY);
         DBMS_LOB.LOADBLOBFROMFILE(b,bf,DBMS_LOB.LOBMAXSIZE,bfile_offset,blob_offset);
         DBMS_LOB.FILECLOSE(bf);
         RETURN b;
    END get_blob;
    CREATE OR REPLACE VIEW source_vw
    AS
    SELECT id
         , GET_BLOB('SOME_DIR',fname) AS file_data
    FROM   source
    CREATE OR REPLACE PROCEDURE update_blobs
    AS
    BEGIN
         MERGE INTO destination
         USING source_vw
         ON    ( destination.id = source_vw.id )
         WHEN MATCHED THEN
             UPDATE SET destination.file_data = source_vw.file_data
         WHEN NOT MATCHED THEN
             INSERT
             ( id
             , file_data
             VALUES
             ( source_vw.id
             , source_vw.file_data
    END;
    /

    Because you are on 11.2, I would suggest switching to securefiles.
    CREATE TABLE destination
    ( id        NUMBER
    , file_data BLOB
    LOB(file_data) STORE AS SECUREFILE;

  • "Read From Binary File" function Help ambiguity

    I must be getting tired, but for some reason a doubt crept in my mind as I was designing a new piece of code this morning:
    "is the "Read From Binary File" using the last file position or is it starting from the beginning of the file?"
    "That's a stupid question", I told myself.
    "I used this function a million times and have always assumed it is reusing the last file position. Moreover, there is no file offset input to that function, so WTH am I afraid of?"
    So, for kicks, I fired up the Help window and read the following description (*):
    Reads binary data from a file and returns it in data. How the data is read depends on the format of the specified file. This function does not work for files inside an LLB.
    (*) BTW, has anybody ever complained that you can't select and copy anything from the floating Help Window?
    Not much there. I particularly admire the phrasing of the second sentence... What about: "This function can do a lot of things, but it would much to complex to describe this is extensive details, so if you are asking, you probably can't afford using it"?
    Anyhow, I clicked on the "Detailed Help" and got this (among other things):
    Use the Set File Position function if you need to perform random access.
    WHAT? I am pretty darn sure I DO NOT USE the Set File Position when I read a file in successive and contiguous chunks. I just pass the file refnum into a shift register and back to the function and that's it.
    Now, the description of the "Refnum Out" ouput says: If file is a refnum or if you wire refnum out to another function, LabVIEW assumes that the file is still in use until you close it. Translated in plain English, is that supposed to mean that if the file is not closed it is open, or is that implying that it contains more info that just "the file is open and can be found here"?
    I started searching around and finally ended up with the entry for "refnums, file I/O". Down the bottom of the (long) article, I found this under the heading "References to Objects or Applications" (but nothing specific to files, BTW):
    ...LabVIEW creates a refnum associated with that file, device, or network connection...
    [...]  LabVIEW remembers information associated with each refnum, such as the current location for reading from or writing to the object and the degree of user access, so you can perform concurrent but independent operations on a single object. If a VI opens an object multiple times, each open operation returns a different refnum. LabVIEW automatically closes refnums for you when a VI finishes running, but it is a good programming practice to close refnums as soon as you are finished with them to most efficiently use memory and other resources.
    So it seems that my recollection was correct. I do not know what the "degree of user access" for a file is, but that's not the topic of today's post. 
    So, my point is: the Help File for this function is incomplete or ambiguous at best. Please correct it. And provide a link to the "refnum, file I/O" Help entry in its detailed Help. It would H E L P...
    Thanks for reading.

    Reading in succesive chunks is *NOT* random access. An open file always has
    a current position, which is updated with each read or write operation.
    You only need to set the file position if you want to start elsewhere.
    LabVIEW Champion . Do more with less code and in less time .

  • Urgent - pls help - Problem while inserting binary file into Oracle DB

    Hi,
    I am trying to insert binary files into a Blob column in a Oracle 10G table.
    The binary files would be uploaded by the web users and hence come as multipart request. I use apache commons upload streaming API to handle it. Finally i am getting a input stream of the uploaded file.
    The JDBC code is
    PreparedStatement ps=conn.prepareStatement("insert into bincontent_table values(?)");
    ps.setBinaryStream(1,inStream,length);
    My problem starts when i try to find the length of the stream. available() method of inputstream does not return the full length of the stream. so i put a loop to read thru the stream and find the length as shown below
    int length=0;
    while((v=inStream.read())!=-1)
    length++;
    Now, though i got the length, my stream pointer has reached the end and i cant reset it(it throws an error if i try).
    So i copied the stream content to a byte array and created an ByteArrayInputStream like this.
    tempByteArray=new byte[length];
    stream.read(tempByteArray,0,length);
    ByteArrayInputStream bais=new ByteArrayInputStream(tempByteArray);
    Now if i pass this bytearray input stream instead of the normal input stream to the prepared statement's setBinaryStream() method it throws an error as
    "ORA-01460: unimplemented or unreasonable conversion requested".
    Now how to solve this?
    My doubts are ,
    1) preparedStatement.setBinaryStream(int parameterIndex, InputStream x, int length) expects an inputstream and its length. if i have the stream how to find its length with out reading the stream?
    2) Also as the length parameter is a integer, what if i have a large binary file whose length runs more than the capacity of integer
    3) Alternatively there is a setBlob(int i, Blob x) in prepared statement. But how to instantiate a Blob object and set it here
    4) Is there any better way to do this.
    Thanks in advance

    "ORA-01460: unimplemented or unreasonable conversion
    requested".When the setBinaryStream method is used, the driver may have to do extra work to determine whether the parameter data should be sent to the server as a LONGVARBINARY or a BLOB (reference: javadoc)
    1) preparedStatement.setBinaryStream(int parameterIndex,
    InputStream x, int length) expects an inputstream and its length. if i
    have the stream how to find its length with out reading the stream?no. stream may have no specified length. i think you have wrong understanding about stream.
    2) Also as the length parameter is a integer, what if i have a large
    binary file whose length runs more than the capacity of integer
    3) Alternatively there is a setBlob(int i, Blob x) in prepared statement.
    But how to instantiate a Blob object and set it here
    4) Is there any better way to do this.use ps.setBlob(1, instream) instead

  • Working with binary files

    I want to save in the MIME Repository an image, I already did it using this code:
    DATA: lr_mime_rep TYPE REF TO if_mr_api.
    DATA: lv_filename TYPE string.
    DATA: lv_path TYPE string.
    DATA: lv_fullpath TYPE string.
    DATA: lv_content TYPE xstring.
    DATA: lv_length TYPE i.
    DATA: lv_rc TYPE sy-subrc.
    DATA: lt_file TYPE filetable.
    DATA: ls_file LIKE LINE OF lt_file.
    DATA: lt_data TYPE STANDARD TABLE OF x255.
    PARAMETERS: p_path TYPE string
    DEFAULT 'SAP/PUBLIC/Test.jpg'. "<<-- Mime path, save to path
    cl_gui_frontend_services=>file_open_dialog(
    CHANGING
    file_table = lt_file " Table Holding Selected Files
    rc = lv_rc ). " Return Code, Number of Files or -1 If Error Occurred
    READ TABLE lt_file INTO ls_file INDEX 1.
    IF sy-subrc = 0.
    lv_filename = ls_file-filename.
    ENDIF.
    cl_gui_frontend_services=>gui_upload(
    EXPORTING
    filename = lv_filename " Name of file
    filetype = 'BIN'
    IMPORTING
    filelength = lv_length " File length
    CHANGING
    data_tab = lt_data " Transfer table for file contents
    EXCEPTIONS
    OTHERS = 19 ).
    CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
    EXPORTING
    input_length = lv_length
    * first_line = 0
    * last_line = 0
    IMPORTING
    buffer = lv_content
    TABLES
    binary_tab = lt_data
    EXCEPTIONS
    failed = 1
    OTHERS = 2.
    lr_mime_rep = cl_mime_repository_api=>if_mr_api~get_api( ).
    lr_mime_rep->put(
    EXPORTING
    i_url = p_path
    i_content = lv_content
    EXCEPTIONS
    parameter_missing = 1
    error_occured = 2
    cancelled = 3
    permission_failure = 4
    data_inconsistency = 5
    new_loio_already_exists = 6
    is_folder = 7
    OTHERS = 8 ).
    But I want to directly fill the  lt_data with a string that holds the binary code of the image, I mean
    I don't have the image, only the binary code, I try to do it uploading the .bin file also in .txt format, and
    I don't get it :S ,   how can I achieve this?
    Thanks in advance!

    I´m not sure if Im understanding what you´re saying... If you dont describe the path, then the file will be created in the project folder, right?
    check this program out
    it doesnt specifies a path but if you try run it the file will be created in the project folder. ¨
    import java.io.*;
    import java.util.*;
    /**  Write a primitive type data array to a binary file.**/
    public class BinOutputFileApp
      public static void main (String arg[]) {
        Random ran = new Random ();
        // Create an integer array and a double array.
        int    [] i_data = new int[15];
        double [] d_data = new double[15];
        // and fill them
        for  (int i=0; i < i_data.length; i++) {
          i_data[i] = i;
          d_data[i] = ran.nextDouble () * 10.0;
        File file = null;
        // Get the output file name from the argument line.
        if (arg.length > 0) file = new File (arg[0]);
        // or use a default file name
        if (file == null) {
            System.out.println ("Default: numerical.dat");
            file = new File ("numerical.dat");
        // Now write the data array to the file.
        try {
          // Create an output stream to the file.
          FileOutputStream file_output = new FileOutputStream (file);
          // Wrap the FileOutputStream with a DataOutputStream
          DataOutputStream data_out = new DataOutputStream (file_output);
          // Write the data to the file in an integer/double pair
          for (int i=0; i < i_data.length; i++) {
              data_out.writeInt (i_data);
    data_out.writeDouble (d_data[i]);
    // Close file when finished with it..
    file_output.close ();
    catch (IOException e) {
    System.out.println ("IO exception = " + e );
    } // main
    } // class BinOutputFileApp

  • How can I open different binary files from BLOB column ?

    If we store some type of binary file (XLS, DOC, PDF, EML and so on, not only pictures) in BLOB column how can I show the different contents? We use designer and forms 9i with PL/SQL.
    How can I copy the files from BLOB to file in a directory or how can I pass BLOB's content to the proper application directly to open it?

    The mime type is just a string as explained above (e.g. application/pdf...). There are lot of samples here and on metalink.
    E.g. add a column mime_type varchar(30) to your blob table. Create a procedure similar to the following:
    PROCEDURE getblob
    (P_FILE IN VARCHAR2
    IS
    vblob blob;
    vmime_type myblobs.mime_type%type;
    length number;
    begin
         select document, mime_type into vblob,vmime_type from myblobs where docname = p_file;
         length := dbms_lob.getlength(vblob);
         if length = 0 or vblob is null then
         htp.p('Document not available yet.');
         else
         owa_util.mime_header(vmime_type);
         htp.p('Content-Length: ' || dbms_lob.getlength(vblob));
         owa_util.http_header_close;
         wpg_docload.download_file(vblob);                
         end if;
    exception
         when others then
         htp.p(sqlerrm);
    END;
    Create a DAD on your application server (refer to documentation on how to create a DAD).
    Display the blob from forms (e.g. on a when-button-pressed trigger):
    web.show_document('http://myserver:port/DAD/getblob?p_file=myfilename','_blank');
    For storing blobs in a directory on your db server take a look at the dbms_lob package.
    For storing blobs in a directory on your app server take a look at WebUtil available on OTN.
    HTH
    Gerald Krieger

  • Deleting a single element from a binary file

    I am working on a server application that must keep track of the messages that have been sent but not responded to.  After I send a message, I append it to an array cycling through an uninitialized shift register and I write it to the end of a binary file.  When I receive a response to a message, which was probably but not necessarily the first message sent, I delete that message from the array and the file.  This allows me to look up entries quickly but also to maintain a permanent record of what messages have been sent and not responded to.
    Basically, I need an intelligent way to make a file, or any other permanent storage medium, act effectively like a queue.  The problem with the current implementation is that when I delete one variable-sized entry from the file, I need to move all subsequent entries, which are usually all of the other entries in the file, forward in memory to take its place.  Is there a way to get around recopying the majority of the file or to implement this entire thing more intelligently?

    You can organize your datafile as a list. For example In this list any record consists of a fixed size data field and referencies (file position f.e.) to the next record and  to the previous record. You can then rewrite the record-have-to-be-deleted with new one, or you can "delete" this record modifiyng the referencies of the "previous" and the "next" records. When you will add a new record you can write one at this "free" place.
    The other way is to manage two files. The first one contains your data record by record. The second one contains the numbers of the records and the corresponding datafile positions or record counter. This second file can be very small and easy-to-manage. It can represent the only record's queue position in the datafile. You can rewrite your records, mark them as deleted without moving large portions of data.
    You can setup the datafile capacity in "number of records" term.
    Additionally it is possible to use the records with variable length but it will be much more dificult. 
    Best regards, Evgeny. 

  • Can I get a list of all binary files and what they do?

    I'm a newbie to Oracle. Needless to say I'm blindly muddling my way through the experiance of installations/setup and managing my first database. I realize that there is a three tier system and for my system all three of the tiers are on the same pc! In short I need help with what executables do what. I've tried going through Linux howto's, online docs, and even bought a book on the subject but the book seems to stroke the benifits of using Oracle instead of actually telling me how to use Oracle. I'm using Oracle8i 8.1.7 EE (enterprise edition) on Linux RH 7.0. I would like a link to a list or the actuall list of all the binary files in $OracleHOME/bin/ and what each of them do. Also important log files I should consult regularly would be most helpfull. Thanks.

    While you're at it, see if you can get a complete description of all the X$ tables.

  • Fulltext search of binary files outside of database in SQL 2012/Server 2012

    This may be more of a Windows Server 2012 question but I'm not sure.
    I have a system that holds large amounts of binary files (pdf, doc, etc.).  The files themselves are held outside the database in a folder and a SQL table holds the metadata.  I used the Indexing Service available through Windows Server 2008 to
    create a catalog called "EFCATALOG" to index the contents of the external folder, then created a linked server called MYIDXS which allowed me to query that external indexing catalog from within SQL with a query like this:
    EXEC sp_addlinkedserver MYIDXS, 'Internal App', 'MSIDXS', 'EFCATALOG'
    SELECT * FROM MYDOCS
    LEFT JOIN OPENQUERY(MYIDXS,'SELECT FILENAME FROM SCOPE() WHERE CONTAINS (''test'')') AS MYTBL
    ON MYDOC_FILE_NAME = MYTBL.[FILENAME]
    With Windows Server 2012, I'm missing the functionality to create the indexing service catalog.  I've added the Windows Search Service and see how I can configure folders for searching, but there is no naming functionality for this and I don't see how
    I can get the above query/structure to work in Windows Server 2012/SQL Server 2012 environment.  In fact, there isn't much at all online regarding the search service or the relationship back to the older versions in 2008 and before.
    Is there any way to continue this structure in 2012?  I would like to avoid recoding my application to work with a different structure.  I'm afraid that changing everything to work with the FILETABLE/FILESTREAM functionality added in SQL 2012
    will be necessary which is fine long term, but not convenient right now.
    Thanks in advance for any suggestions/help.

    Thank you Fanny Liu, based on your link the syntax has changed dramatically. I need to query SYSTEMINDEX now and the structure is very different.    It still seems that this new syntax requires creating a linked server of a different type. 
    I've tried:
    EXEC sp_addlinkedserver @server = 'TEST', @provider = 'Search.CollatorDSO.1', @datasrc = 'SYSTEMINDEX', @srvproduct = '', @provstr='Application=Windows'
    SELECT FileName FROM OPENQUERY("TEST", 'SELECT Filename FROM SYSTEMINDEX')
    Msg 7302, Level 16, State 1, Line 1
    Cannot create an instance of OLE DB provider "Search.CollatorDSO.1" for linked server "TEST".
    I've also tried using just "Search.CollatorDSO"as the provider since that is the provider name listed in management studio but basically the same error comes back.
    So I have 2 questions:
    1) Is it possible for my original process to work in Windows Server 2012 in any way (meaning that the OPENQUERY example I provided can remain relatively unchanged)?
    2) If change is necessary using this new SYSTEMINDEX and linked server combination, why is my linked server definition failing?  I'm using SQL Server 2012....Microsoft SQL Server 2012 - 11.0.2100.60 (X64)
     Feb 10 2012 19:39:15
     Copyright (c) Microsoft Corporation
     Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    Thank you.

Maybe you are looking for

  • How to design a GUI Python app properly?

    Hi guys. As motivation to actually learn Python, I want to carry out a fairly simple application that's been brewing in my head for months; a "game manager" that a gamer can use to keep track of the games he owns, the games he's beaten, and any speci

  • Deploying persistence.xml in ejb-jar componts

    Hi, If you are deploying ejb-jar components which are packaged independently and are remote components but they all access the same database, do you put the persistence.xml in the META-INF of each component (ejb-jar). If not, where would it go? I can

  • Mac mini (MB463LL/A) giving static sound

    Hi, I have this mac mini - MB463LL/A - and it has worked perfectly well without any issues all this well. But of late it started giving a static sound (don't know how to explain it, but it sounds like a sound from radio transmission or FM). It's cont

  • Claim compensation for Apple's product and service

    My iphone 4S can't power up, I send it to depot detection, It takes me nearly one month, from Jan 27th until now. I can't use phone for one month, and my data on the phone is gone. I bought the iphone only for 4 months. Can I claim compensation?

  • Transferring characteristics to APO from ECC

    Hi, We need transferring characteristic to APO from ECC. Only one characteristic. We're enter name of characteristic to field "Additional characteristics", but in created IM chosen, all existing characteristics. What we need to do to transfer only on