Re: OPENDATASOURCE problem

From: Steve Kass (skass_at_drew.edu)
Date: 07/21/04


Date: Wed, 21 Jul 2004 10:50:19 -0400

Mihaela,

  See http://support.microsoft.com/default.aspx?scid=kb;en-us;327489

Steve Kass
Drew University

Mihaela M. wrote:

>Hello.
>
>I have the following sql sequence in my ASP file:
>
>conn.Execute "INSERT INTO
>OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0','Driver={Microsoft Text Driver
>(*.txt; *.csv)};Dbq=c:\myfolder\;Extensions=asc,csv,tab,txt')...myfile.csv
>SELECT Autoid FROM tbl_CLASSES"
>
>where "conn" is a connection to a SQL Server database.
>tbl_CLASSES is an SQL Server table.
>I want to select all records from tbl_CLASSES table and to insert them in
>"myfile.csv" file
>
>But it returns me an error:
>Microsoft OLE DB Provider for SQL Server error '80040e14'
>
>Ad hoc access to OLE DB provider 'Microsoft.Jet.OLEDB.4.0' has been denied.
>You must access this provider through a linked server.
>
>It should work without linked server, because OPENDATASOURCE "Provides ad
>hoc connection information as part of a four-part object name without using
>a linked server name."
>(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts
>_oa-oz_78z8.asp)
>
>Could anyone help me? I have no idea where I do wrong.
>
>Thanks!
>
>
>
>



Relevant Pages

  • RE: 0x80004005 - you need permission to view its data
    ... When creating the Access linked server, make sure the data source using UNC ... the SQL server(Both SQL authentication and Windows Authentication work). ... 262177 How to enable Kerberos event logging ...
    (microsoft.public.sqlserver.security)
  • Re: VFPOLEDB as a link server in SQL Server 2000
    ... In SQL 2K EM, there are five fields to complete to create a linked server: ... The linked server name, the provider that is installed on the server (chosen ... source", and the "provider string". ...
    (microsoft.public.data.oledb)
  • Linked Servers - Real Post
    ... I am running SQL 2k on Win 2k. ... a front end for our SQL database. ... added the linked server I want, and SQL queries it fine, ... leaving the "local server login to remote server login" ...
    (microsoft.public.sqlserver.programming)
  • Re: SQL Triggers and VFP Table Connection
    ... Here's how to setup a linked server to a VFP database (and can then access ... @srvproduct = 'Microsoft OLE DB Provider for Visual FoxPro', ... > Provider Name: MS OLE DB Provider for ODBC Drivers ...
    (microsoft.public.sqlserver.server)
  • Linked Server - Issue
    ... I have to access a Linked Server S2 (SQL 2000). ... In S1 I have setup a linked server using sp_addlinkedserver pointing to S2. ... Both MyAccount and SpecialAccount has access permissions to S2. ... Reason Not associated with a Trusted SQL ...
    (microsoft.public.sqlserver.programming)