Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

openrowset and jet.oledb

 
   Database Help (Home) -> Programming RSS
Next:  Date help  
Author Message
Nick Thompson

External


Since: Jun 23, 2006
Posts: 2



(Msg. 1) Posted: Thu Feb 08, 2007 11:34 am
Post subject: openrowset and jet.oledb
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Please help,
since the introduction of SQL2005 the default mode for opening access mdb
databases with Openrowset appears to be in exclusive open mode

I wish to open the database in share mode so the other (non net) ADO threads
can open the database at the same time

I only wish to open the database in read only mode

and so to use the mode param

I have tried the following
SELECT COUNT(*)
FROM
OPENROWSET ( 'Microsoft.Jet.OLEDB.4.0',
'"Database = h:\alarmlogfiles\new folder (3)\alarms 04 feb
2007.mdb; Mode = Share Deny None;"'
, 'SELECT [ID],
[System],
[Group],
[Message],
[Acknowledged],
[AckReq],
[Duplicates],
[Group Name],
[Importance],
[Ms],
[Alarm Date],
[LastDupe],
[Viewers],
[Row_Date],
[Colours],
[Status] From [Alarms 08 Feb 2007] Where 1 = 0' )
but get the following error from sql2005 & sql 2000

Server: Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider
"Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)"
returned message "Could not find installable ISAM.".

please help
best wishes nick

 >> Stay informed about: openrowset and jet.oledb 
Back to top
Login to vote
Peter Yang MSFT

External


Since: Oct 16, 2003
Posts: 32



(Msg. 2) Posted: Mon Feb 12, 2007 10:30 am
Post subject: RE: openrowset and jet.oledb [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Nick,

Sorry for the late response and it seems there is sync issue in our
internal application for your account. I'v reported this issue to the
related team.

Per your question, I was able to reproduce the issue on my side. It seems
that we are not able to use provider or connection string in the
"datasource" parameter. It also doesn't work if I use provider string
directly:

SELECT CustomerID, CompanyName from
OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Data Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data
Source=C:\northwind.mdb;Passord=""',
'select * from customers')

I'v forward your feedback to the product team. In the meantime, I also
encourage you submit via the link below

http://lab.msdn.microsoft.com/productfeedback/default.aspx

Please let's know if you have any further feedback.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support


=====================================================


This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================

 >> Stay informed about: openrowset and jet.oledb 
Back to top
Login to vote
Nick Thompson

External


Since: Jun 23, 2006
Posts: 2



(Msg. 3) Posted: Mon Feb 12, 2007 10:30 am
Post subject: RE: openrowset and jet.oledb [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks soo much Peter, I was begining to arrive at the same conclusion
I will submit the fault to the link you suggest

To allow simultaneous reading & writing tables

I have decided to reinvestigate writing data to my table through sql server
by creating a linked server, instead of writing using inproccess ADO (Via
unmanaged C++), please let me know if you have any usefull articles about
this.

Many thanks Nick.


"Peter Yang [MSFT]" wrote:

> Hello Nick,
>
> Sorry for the late response and it seems there is sync issue in our
> internal application for your account. I'v reported this issue to the
> related team.
>
> Per your question, I was able to reproduce the issue on my side. It seems
> that we are not able to use provider or connection string in the
> "datasource" parameter. It also doesn't work if I use provider string
> directly:
>
> SELECT CustomerID, CompanyName from
> OPENROWSET('Microsoft.Jet.OLEDB.4.0',
> 'Data Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data
> Source=C:\northwind.mdb;Passord=""',
> 'select * from customers')
>
> I'v forward your feedback to the product team. In the meantime, I also
> encourage you submit via the link below
>
> http://lab.msdn.microsoft.com/productfeedback/default.aspx
>
> Please let's know if you have any further feedback.
>
> Best Regards,
>
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Partner Support
>
>
> =====================================================
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> ======================================================
>
>
>
 >> Stay informed about: openrowset and jet.oledb 
Back to top
Login to vote
Peter Yang MSFT

External


Since: Oct 16, 2003
Posts: 32



(Msg. 4) Posted: Wed Feb 14, 2007 6:03 am
Post subject: RE: openrowset and jet.oledb [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Nick,

You may want to refer to the following articles for more informaiton on
ADO/OLEDB access:

Data Access (How Do I in Visual C++)
http://msdn2.microsoft.com/en-us/library/ms235423(VS.80).aspx

191754 How to open a secured Access database in ADO through OLE DB
http://support.microsoft.com/default.aspx?scid=kb;EN-US;191754

Hope this is helpful.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support


=====================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
 >> Stay informed about: openrowset and jet.oledb 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
OPENROWSET issue - I have an issue with openrowset: I'm trying to access data through the EXOLEDB provider with OPENROWSET, but I get a cannot create new session on OLEDB provider error IDBCreateSession::CreateSession 0x80040e19. (authentication definately suceeds..

openrowset or opendatasource - HI all, Which is beter to use to open an excel worksheet Openrowset or opendatasource Thanks Robert

bulk insert and openrowset - i'm having the strangest problem right now and can't seem to figure out what's going on- here's the deal: i'm trying to use the openrowset command, in combination with the bulk insert command to load data from a text file into sql server. the text..

Syntax problem with openrowset - I'm trying to write a update trigger in SQL Server 2000. As a test, I'm trying to do a simple update call through OpenRowSet but what I seem to be seeing is that OpenRowSet doesn't like local variables as query strings, or concatenation operations..

Server64-bit OPENROWSET csv - Hi there, We just moved SQL Server 2005 to run with Server 64-bit this weekend after that the stored-procedure to insert data from csv file is not working any more. This stored procedure was working fine in the server 32-bit. Here is the coding INSER...
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]