473,473 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

OPENROWSET to Access error

Hi ,

I have been trying to connect to access database from SQL Server 7.0.
This machine is having 7.0 as a default instance and 2000 as a named
instance.
Also the machine doesn't have access installed and Microsoft.Jet.4.0
is of version SP8 for Windows 2000
The access database is password protected.
I have tried all, OPENROWSET, OPENDATASOURCE, linked server, and ODBC.

These are some of the commands which I have tried but gives following
error.
*******************************************
SELECT a.*
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'F:\Geerimain\billing.mdb';'bhagath';'bhagath', Employee)
AS a

Server: Msg 7303, Level 16, State 2, Line 1
Could not initialize data source object of OLE DB provider
'Microsoft.Jet.OLEDB.4.0'.
[OLE/DB provider returned message: Cannot start your application. The
workgroup information file is missing or opened exclusively by another
user.]
**********************************************

SELECT * FROM OPENDATASOURCE ('Microsoft.Jet.OLEDB.4.0',
'DataSource="F:\Geerimain\billing.mdb";
User ID=bhagath;Password=bhagath;Jet
OLEDB:SystemDatabase="c:\WINNT\system32\System.mdw "')...Employee

Server: Msg 7303, Level 16, State 2, Line 1
Could not initialize data source object of OLE DB provider
'Microsoft.Jet.OLEDB.4.0'.
[OLE/DB provider returned message: Cannot start your application. The
workgroup information file is missing or opened exclusively by another
user.]

**********************************************
SELECT *
FROM OPENROWSET('MSDASQL',
'Driver={Microsoft Access Driver
(*.mdb)};Dbq=F:\Geerimain\billing.mdb;Uid=bhagath; pwd=bhagath','SELECT
*
FROM Employee')

Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified]

**********************************************

I have tried all possible combinations but most of the time I come up
with Error 7399.
In case if anyone has some other syntax and successful with that,
please let me know

Regards,
Mahesh
Jul 20 '05 #1
1 11690

"Mahesh Hardikar" <ha*******@yahoo.com> wrote in message
news:4a**************************@posting.google.c om...
Hi ,

I have been trying to connect to access database from SQL Server 7.0.
This machine is having 7.0 as a default instance and 2000 as a named
instance.
Also the machine doesn't have access installed and Microsoft.Jet.4.0
is of version SP8 for Windows 2000
The access database is password protected.
I have tried all, OPENROWSET, OPENDATASOURCE, linked server, and ODBC.

These are some of the commands which I have tried but gives following
error.
*******************************************
SELECT a.*
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'F:\Geerimain\billing.mdb';'bhagath';'bhagath', Employee)
AS a

Server: Msg 7303, Level 16, State 2, Line 1
Could not initialize data source object of OLE DB provider
'Microsoft.Jet.OLEDB.4.0'.
[OLE/DB provider returned message: Cannot start your application. The
workgroup information file is missing or opened exclusively by another
user.]
**********************************************

SELECT * FROM OPENDATASOURCE ('Microsoft.Jet.OLEDB.4.0',
'DataSource="F:\Geerimain\billing.mdb";
User ID=bhagath;Password=bhagath;Jet
OLEDB:SystemDatabase="c:\WINNT\system32\System.mdw "')...Employee

Server: Msg 7303, Level 16, State 2, Line 1
Could not initialize data source object of OLE DB provider
'Microsoft.Jet.OLEDB.4.0'.
[OLE/DB provider returned message: Cannot start your application. The
workgroup information file is missing or opened exclusively by another
user.]

**********************************************
SELECT *
FROM OPENROWSET('MSDASQL',
'Driver={Microsoft Access Driver
(*.mdb)};Dbq=F:\Geerimain\billing.mdb;Uid=bhagath; pwd=bhagath','SELECT
*
FROM Employee')

Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified]

**********************************************

I have tried all possible combinations but most of the time I come up
with Error 7399.
In case if anyone has some other syntax and successful with that,
please let me know

Regards,
Mahesh


This KB article looks like it might describe your issue:

http://support.microsoft.com/default...b;en-us;285833

Simon
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Pachydermitis | last post by:
Hi all, This should be easy, but it has me pulling my hair out. I have a SQL 7 server running on NT server 4 with all the patches and updates for both. I cannot seem to get the openrowset to run...
1
by: Rudi | last post by:
Hy Forum ! I tried to do somsthing like this: CREATE PROCEDURE dbo.maches AS select * from openrowset('Microsoft.Jet.OLEDB.4.0', 'C:\temp\Fehler.mdb'; 'Administrator'; ' ' , Fehlerliste) ...
0
by: Alias | last post by:
Hi Guys , We are trying to use openrowset function to connect from sqlserver 2000 to oracle 10g database . If we provide a correct oracle database name , it works fine but if we somehow provide a...
3
by: Bkr | last post by:
Hi Folks, I am trying to load data from a table in MS Access to SQL Server 2000 using T-SQL OPENROWSET. When I select data from the remote database (MS Access) using SQL Query analyzer, the...
1
by: billmiami2 | last post by:
I'm trying to pass through a SQL statement to an Oracle database using OPENROWSET. My problem is that I'm not sure of the exact syntax I need to use when the SQL statement itself contains single...
1
by: Shilpa | last post by:
Please let me know the advantages and disadvantages of XQuery vs OpenRowSet in SQL Server 2005. Which would be better? Regards, Shilpa
2
by: Gugale at Lincoln | last post by:
Hi, I am not able to execute following command from computers other than the SQL server itself. select * from openrowset(bulk N'\\ImageServer\Model\Cam_05.dwg', SINGLE_BLOB) as doc
2
by: tezza98 | last post by:
Help please, im trying to use open OPENROWSET to import a csv file into my database Here is the code im using --Read CSV using OpenRowSet select * from OpenRowset('MSDASQL',...
1
by: baburmm | last post by:
Hi , I have Installed both SQL 2000 & SQL 2005 in my server i have run a Query with open rowset Works in SQL 2005 but not Works in SQL 2000 My Query is Follows, SELECT * FROM...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.