Custom File Extension for Microsoft Access Text Driver (*.txt, *.csv)

I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.
I have updated the FileExtns registry to have my new extension.
When I issue the following it does not work.
select [NoName] 
from openrowset('MSDASQL'
           ,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
                DefaultDir=c:\filedir'
           ,'select * from "file.lst"')
If I make the file a .csv it works fine.  However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it. 
OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from
OLE DB provider "MSDASQL" for linked server "(null)".
In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row).  Is there  a way to use OPENROWSET without BULK to basically include all rows as data?
Any help is appreciated.

Hi,
According to your description, I did a test with your script, and got the same message as your post. Usually, by default, the Microsoft Access Text Driver (*.txt, *.csv) supports the four extensions file, such as *.asc, *.csv, *.tab, *.txt. To solve this issue,
I recommend you try to save the LST file in the above format, then use OPENROESET to get data from the supported extensions file in SQL Server.
In addition, the
OPENROWSET function is mainly used to retrieve remote data from an OLEDB data source, when you use OPENROWSET without BULK, provider_name is a necessary parameter in the script. However, the OPENROWSET (BULK...) is mainly called from a SELECT…FROM clause
within an INSERT statement, when importing bulk data from a data file into SQL Server table. Thus if you need to import bulk data, you should use the basic  syntax: INSERT ... SELECT * FROM OPENROWSET(BULK...), also there are some alternatives, such as
BULK INSERT
and
BCP .
Thanks
Lydia Zhang

Similar Messages

  • Microsoft Access Text Driver missing! and ...Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".

    In order to use OpenRowSet, I installded Microsoft Access Database Engine 2010. However, I could not find Microsoft Access Text Driver in Drivers of ODBC Data Source Administrator.  Could I get some help with that?
    Thank you very much!

    I am local admin and try to run the following script, but I got an error. Could anyone help me look at it?
    EXEC sp_configure 'show advanced options', 1
    go
    RECONFIGURE
    GO
    EXEC sp_configure 'ad hoc distributed queries', 1
    go
    RECONFIGURE
    GO
    SELECT * FROM OPENROWSET('MSDASQL',
    'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
    DefaultDir=D:\;','SELECT * FROM Test.csv')
    Configuration option 'show advanced options' changed from 1 to 1. Run the RECONFIGURE statement to install.
    Configuration option 'Ad Hoc Distributed Queries' changed from 1 to 1. Run the RECONFIGURE statement to install.
    OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".
    Msg 7303, Level 16, State 1, Line 1
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".

  • DW CS3 - custom file extension no longer working correctly

    Hi - for a particular job, I needed to use a custom file
    extension .htmx and it has been working fine.
    However, I went into DW CS3 today, and the file opens in the
    DW editor, but the code coloring and code hints etc seem to be
    broken.
    I've checked the Extensions.txt and MMDocumentTypes.xml
    files, and all seems present and correct - see
    this screencast to
    see the problem.
    Any ideas why it's not working? (I'm on Vista Business, but
    it has definitely been working and now isn't....)
    Mike

    Well, I managed to fix it by overwriting my
    MMDocumentTypes.xml file with a clean version from another machine.
    Weird.

  • Can Firefox CS5 recognize custom file extensions as PNGs?

    WHen you work with game skins you will have custom file extensions such as .scworld and .scskin that are really PNG files renamed. Does anyone know how to add these as recognizeable extensions in Firefox?

    no, i am still dealing with this problem on both macs,
    mac pro mid 2010 2,8 quad (24GB RAM) and my mbp 15" i7 (4GB RAM)
    where i installed Photoshop CS5.
    on both macs, photoshop always saves files with capital letter file extensions (xxx.TIF or xxx.PSD)
    thats very annoying, as i have to manually rename the file in the finder later.
    and thats for all files i create.
    i really wonder, could anyone from the adobe staff please comment if it is a bug
    or anything else?
    thanks!

  • LiveCycle Rights Management ES Extension for Microsoft Office(other locale)

    After I've downloaded Rights Management ES Extension and installed it, I open Office Word, it said the language found in my locale is not supported, my company is using Chinese Version Office 2007, is there any workaround solution for it?
    I have encountered a problem in my company...... my comapny has around 1 million documents need to apply policy, and many of those have another documents embedded in the parent document. When I use LC PDF Generator to convert, those embedded file(s) would become an icon image and the content is lost. So I want to apply the policy directly on the document, but seems that doesn't support Chinese Office.
    Thanks and regards,
    Bearyung

    Currently, the Rights Management ES Extensions for Microsoft Office plugin is only supported on English, French, Geman and Japanese versions of Office.
    http://help.adobe.com/en_US/livecycle/8.2/lcrmext_releasenotes.htm#DocumentationSet
    Steve

  • Exception java.sql.SQLException: [Microsoft][ODBC Microsoft Access 97 Drive

    Hi,
    I am writing a simple program wihich will display the list of table for a given database. Currently I am using JDBC-ODBC bridge for accessing MS Acccess data base. When I call getTables method of DatabaseMetaData. Following Exception was thrown. Any clue what could be the reason for this?
    Exception java.sql.SQLException: [Microsoft][ODBC Microsoft Access 97 Driver]Driver not capable
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access 97 Driver]Driver not capable
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
    at sun.jdbc.odbc.JdbcOdbc.SQLTables(JdbcOdbc.java:4917)
    at sun.jdbc.odbc.JdbcOdbcDatabaseMetaData.getTables(JdbcOdbcDatabaseMetaData.java:2395)
    at test.databaseMetaData.main(databaseMetaData.java:36)
    This exception occured in the following block:
         String[] strTables = {"TABLES"};
    rs = dbmd.getTables( null, "DBIS", "A%", strTables);
    Thanks in advance
    Cheers,
    Krishna

    Hi Krishna,
    First, do you have a correct ODBC setup on the platform your working on -- data source, etc.
    Second, please enclose the Java code for your connection, etc..
    Good luck!
    Francis

  • Opening BATCH file through custom file extension

    I have a situation where I've created my own filetype (.gme) to open my main java file. Each filetype has a corresponding ID which tells the application what instance of it to load. I want the file type to open a batch file which will in turn open the application. Is there code that I can give a custom file extension to open a batch file?

    Check the permissions of that batch file.
    It should be executable for the PI user (<sid>adm in Unix)
    Regards
    Stefan

  • How to debug a Diagnostic Data Adapter (custom data collector) for Microsoft Test Manager

    Hello,
    I have created a custom Diagnostic Data Adapter aka. custom data collector for Microsoft Test Manager (MTM) and installed it, all according to the guidelines under  Creating
    a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine.
    I would like to debug my data collector. On which machine should I perform the debugging and to which process should I attach from Visual Studio? Are there any restrictions regarding the user who is running the debug session?
    How can I do that?
    Thank you ,
    Ana

    It seems that I found the solution, but I would like someone still to verify if it is the right one.
    Steps:
    Turn on "Microsoft Symbol Server" under In Tools-->Options-->Debugging
    Restart manually "Visual Studio Lab Agent Service" on the machine where the collector is installed (this actionautomatically restarts the  Visual Studio Test Agent ("C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\QTAgentService.exe")) 
    Load code for your collector in Visual Studio 
    Attach the Visual Studio debugger to the processes QTAgentService.exe and QTDCAgent32.exe
    Start test in MTM on client machine using test setting which trigger the data collector (diagnostic data adapter)
    and finally hit a brake point in your code...
    Thank you,
    Ana

  • File extension for: cl_gui_frontend_services= file_open_dialog

    Hello,
    I would like to set the file extension for cl_gui_frontend_services=>file_open_dialog such that my default extension in the file open dialogue is the .csv (comma-separated value) file. May I know how can I do that?
    Thanks!
    Regards,
    Anyi

    Hello,
    Thanks for the quick reply.
    Howeer, I tried to use the extension of CSV and the file dialogue opened up with .RTF (which is the default extension) instead.
    Any comment on that?
    Thanks!
    Anyi
    > HI,
    >
    > Here is the code
    >
      DATA:  l_title TYPE string,
    >          l_dfext TYPE string,
    > l_dfinm TYPE string,
    >          l_file  TYPE string,
    > l_path  TYPE string,
    >          l_fpath TYPE string.
    > le = 'SAVE FILE PATH'.
    >   l_dfext = 'csv'.
    > l_dfinm = 'Error_Idoc'.
    >
    > CONCATENATE l_dfinm sy-datum sy-uzeit INTO l_dfinm
    >  SEPARATED BY '_'.
    >
    > CONCATENATE  l_dfinm l_dfext INTO l_dfinm SEPARATED
    >  BY '.'.
    >
    > CALL METHOD
    >  cl_gui_frontend_services=>file_save_dialog
    >    EXPORTING
    >    window_title      = l_title
    >    default_extension = l_dfext
    >    default_file_name = l_dfinm
    >     INITIAL_DIRECTORY = L_DIR
    > CHANGING
    >       filename          =  l_file
    > path              =  l_path
    >       fullpath          =  l_fpath
    > CEPTIONS
    >       cntl_error        = 1
    > error_no_gui      = 2
    >       OTHERS            = 3.
    > s,
    > Richa

  • Problem with adobe livecycle rights management es2 extension for microsoft office

    occurs several times an error message in Microsoft Office Excel that says it has experienced a problem with the complement of adobe livecycle rights management es2 extension for microsoft office if the message has appeared several times should disable the add and check for an update.
    will refer to this error? as it has sought to upgrade and there is no error and remains not only to excel but also for word.
    thanks in advance

    Currently, the Rights Management ES Extensions for Microsoft Office plugin is only supported on English, French, Geman and Japanese versions of Office.
    http://help.adobe.com/en_US/livecycle/8.2/lcrmext_releasenotes.htm#DocumentationSet
    Steve

  • Default WorkBook file extension for all users of BEx 7 in Offce 2007

    Hi Experts
    We recently started using office 2007 with BEx 7.
    However, many users still has Office 2003 installed.
    I am looking to set the default file extension for all users to be .XLS.
    I know that this option is available in Client level (Global Settings - Use XLS file format ) but I require that the checkbox will be automatically checked.
    Is there a way to do it?
    Thanks,
    Yaniv

    Hello Yaniv,
    Yes, you can maintan them globally.
    this can be done in registry under :   HKEY_CURRENT_USER\Software\SAP\BEx\Analyzer.
       UseXLSFileFormat
       Type: String Value
       Value true or false
    For more information refer to SAP Note 1254112
    Regards,
    Arvind

  • What is the best file extension for import?

    When converting a DVD to another file extension for FCP, what is the best file extension to use? When I was using Adobe products, I would convert the DVD with Stream Clip to an AVI or MPEG and bring it right in. I found these do not work well in FCP. I know I can play it in and make a capture, I was just trying to find what file extension I should use to bring it right into the browser. I receive some DVD's that are quite long and would rather convert them to another extension instead of playing it in to capture.

    In MPEG Streamclip, use the export settings that match your FCP Sequence settings. Typically that would be QuickTime DV/DVCPro (NOT .DV Stream).
    Here's a 2 part tutorial on MPEG Streamclip by Nick Holmes:
    http://discussions.apple.com/thread.jspa?threadID=2059475&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=2070861&tstart=0
    -DH

  • JDBC driver for Microsoft Access

    Hi, I have gone through the blogs and threads related to this topic. I found contradicting threads one saying we need to deploy Access JDBC driver and another saying no need to deploy JDBC driver for Access.
    Integrate PI7.0 with MS Access 2003 Database - Says need to install driver for Access
    Re: Problem when connecting to MS Access through JDBC Adapter. - Says no need to install driver for Access
    I am now confused if I need to ask my Basis team to deploy driver for this. If some one has executed this scenario successfully, could you please confirm whether a driver needs to be installed or not. Also if it is required to install a driver, could you please let me know from where I can download the driver.
    My PI version is 7.1 and Access version is MS Access 2007.  PI is deployed on Linux.
    Without asking for deploying driver I have configured scenario File->PI->Access and I am getting below error in my receiver JDBC communication channel.
    "Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Can not establish connection:: SAPClassNotFoundException: jdbc.odbc.JdbcOdbcDriver";
    Please suggest how to resolve this issue.
    Regards, Prasad

    Hi .
    The format for Access 2007 is accdb . Are you using this format or MDB?
    Anyway try this:
    Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\Test\TestDB.accdb;Uid=Admin;Pwd=;

  • How to create user dsn for microsoft access driver(*.mdb,.*accdb) in 64 bit

    hi,
    how to create user dsn for microsodt access driver(*.mdb,*.accdb) using command line in 64 bit.
    i have installed 64 bit drivers and when use following command
    C:\Windows\System32>odbccad.exe CONFIGDSN "Microsoft Access Driver (*.mdb,*.accdb)" "DSN=GLDatabase|Description=GL Data Source|DBQ=C:\DataBase\1.mdb"
    CONFIGDSN:'unable to create a datasource for the "Microsoft Access Driver (*.mdb,*.accdb)" component not found in the registry with the error code -2147467259
    but it works with C:\Windows\SysWow64

    yes i have installed Microsoft Access Database engine 2010 redistributale => AccessDatabaseEngine_x64.exe
    i can able to create user dsn using odbccad32.exe in system32 folder but using command line its not working
    C:\Windows\System32>
    odbccad.exe CONFIGDSN "Microsoft Access Driver (*.mdb,*.accdb)" "DSN=GLDatabase|Description=GL Data Source|DBQ=C:\DataBase\1.mdb"
    CONFIGDSN:'unable to create a datasource for the "Microsoft Access Driver (*.mdb,*.accdb)" component not found in the registry with the error code -2147467259

  • Syntax Highlighting for custom file extensions

    Hi everyone.
    I am currently working on a PHP project, and we are using
    *.thtml files for templates. The file isn't supported by
    Dreamweaver, as it's a fictional file extension. First I couldn't
    even open it with Dreamweaver, but after I added it in
    settings/file types, it worked.
    Now my question - how can I activate syntax highlighting for
    this filetype? It contains HTML and PHP, so it should work with the
    same highlighter as all the other file types do..
    Can someone help me out?
    Thanks.
    - Chris

    Got it
    http://alexle.net/archives/119

Maybe you are looking for

  • Create DBF (dBaseiV) file in Java mapping

    Hello. I have one scenario: Abap Xi -> SAP PI -> 3 Party(dbf file). First, i made java mapping using java library com.linuxense.javadbf, but problem - not matching versions DBF (dBaseIII). This version does not suit the customer. Then I tried to use

  • Byte array exception in web dynpro

    Hi all, I am developing a web dynpro application using a webservice model. The model expects a parameter in the form a byte array. But  unfortunately when I get the following exception when i lauch the web dypro application. Anyone of you, plz help m

  • Does anyone have an example of an InDesign screenshot on retina Mac?

    I would like to know what InDesign looks like on a retina Mac. Unfortunately I do not live anywhere near a retailer who sells Macs.

  • Aperture can't read RAW files since update???

    So I went to import the pictures from the holidays into Aperture yesterday and it wouldn't read the raw files. Aperture just keeps saying it's generating thumbnails. I shut it down, got on a plane and tried again today, same problem and even the phot

  • JPA: looking for pattern to prevent edit of ownerId and created properties

    My business and persistence tier architecture ideally should prevent editing of the ownerId, created, modified and version properties which are common to all my entities. The ownerId is perhaps obviously the identifier of the user or group in a multi