Can "OpenDatasource" work with the in Memory data

Last post 05-14-2008, 3:28 AM by WBrewer. 1 replies.
Sort Posts: Previous Next
  •  05-13-2008, 9:44 AM Post number 52768

    • ramesh_nrk is not online. Last active: 07-04-2008, 2:49 PM ramesh_nrk
    • Top 50 Contributor
    • Joined on 12-19-2006
    • Hyderabad,Bangalore
    • Level 2: Deep Blue

    Can "OpenDatasource" work with the in Memory data

    Hi,

    I am using the following query retrieve the data from a flat text file. The text is tab delimited.
    The same content is also available in a table.

    Now I am writing content in to a file in local disk and accessing , instead of doing this can I directly use the output of another query which gives me the same content what is there in the local file.

    SELECT * FROM
    OpenDataSource('Microsoft.Jet.OLEDB.4.0', 'Data Source="D:\TestingFile";Extended properties=Text')...RespnsePract#txt


    Is there any other way to achieve the above

    Thanks
  •  05-14-2008, 3:28 AM Post number 52843 in reply to post number 52768

    • WBrewer is not online. Last active: 07-29-2008, 3:27 AM WBrewer
    • Top 25 Contributor
    • Joined on 07-01-2006
    • London UK
    • Level 2: Deep Blue

    Re: Can "OpenDatasource" work with the in Memory data

    you can easily use OpenDataSource to get a query from the same instance of SQL Server that you are executing the OpenDataSource from, but I can't think why you'd want to, as there is no information that you couldn't get from a direct Select statement..
View as RSS news feed in XML