473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

SQL Server/ADO/XP problem "query cannot be executed"

This is a request for help fixing a SQL Server 2000/ADO problem on Windows
XP. I would appreciate any useful assistance.

PROBLEM: SQL Server access on my machine fails as follows:

1. All of my VB6 apps reference the following ADO typelib:
Microsoft ActiveX Data Objects 2.7 Library

Located at:
c:\Program Files\Common Files\System\ADO\msado27.tlb

When I open one of these projects in VB6, the reference to msado27.tlb is
shown as MISSING. If I remove the reference then open the references dialog
again, msado27.tlb is listed normally. When I check it and try to close the
references dialog, I take an "Error in loading DLL".

I can remove the reference to msado27.tlb and add a reference to msado15.dll
(Microsoft ActiveX Data Objects 2.8 Library).

When I run the app, I take a trappable error on the first ADO line my app
executes:

Dim lo_Connection As ADODB.Connection

Set lo_Connection = New ADODB.Connection

The error is:
Automation error
The specified procedure could not be found.

2. In Enterprise Manager, when I do "Open Table/Return All Rows" on any
table, I take the following error:
"The query cannot be executed because some files are either missing or not
registered. Run setup again to make sure the required files are
registered."
CURRENT CONFIGURATION
I develop software in VB6 that accesses SQL Server via a dsn-less
connections and disconnected recordsets. I am running SQL Server 2000
Standard locally, version installed from the MSDN install CD and updated by
service pack download.

SQL Server version: version 8.00.760 (SP3)

VB version: VB6 SP5

Component Checker 2.0 shows no problems, and reports:
The following product releases were matched: MDAC 2.8 RTM.

My OS is Windows XP Home. As far as I can tell, it is completely updated
with all hotfixes, including the following:
KB810218
KB820291
KB821253
KB822603
KB823182
KB824105
KB824141
KB826939
KB828035
KB829558
Q322011
Q327979
Q814995
Q815485
ATTEMPTS TO FIX
A. I have uninstalled and reinstalled SQL Server and client tools *numerous*
times with no change.

B. Queries in Query Analyzer execute just fine.

C. The last four lines out of sqlstp.log (located in c:\Windows) are as
follows:

12:40:04 StatsGenerate returned: 2
12:40:04 StatsGenerate (0x0,0x1,0xf000000,0x100,1033,303,0x0,0x1,0,0,0
12:40:04 StatsGenerate -1,George Copeland)
12:40:04 Installation Succeeded

D. The only services running during setup are those specified by Microsoft
KB article 192710. There are no relevant errors in the event log.

E. I tried reinstalling MDAC 2.7 SP1 Refresh and MDAC 2.8. No change.

F. Microsoft KB Article 315868
(http://support.microsoft.com/default...en-us%3B315868) says
the following:

If the reinstallation of the SQL Server 2000 Client Tools does not correct
the problem, then re-register the following DLLs by using Regsvr32.exe, and
then restart the computer:
C:\Program files\Common Files\System\ADO\Msado15.dll
C:\Program files\Common Files\System\Ole Db\Oledb32.dll
C:\Program files\Common Files\System\Ole Db\Sqloledb.dll
C:\WINNT\System32\Atl.dll

Attempting to register the first three dlls fails with
"LoadLibrary("C:\Program files\Common Files\System\ADO\Msado15.dll")
failed - The specified procedure could not be found.". In any case, this
does nothing to fix the problem. And since these link libraries are not
registerable, this KB article is just a little, shall I say, unhelpful.
Please note that the MS newsgroups are FULL of requests for help on this
EXACT problem. All attempts to help have failed--NOBODY has figured out the
fix. Most people trying to help are treating it as an installation issue,
because that is what the error message says. However, I suspect instead
that a Windows XP hotfix has CLOBBERED ADO.

BTW, this is a BIG issue for me. My development machine is hosed, and until
I get this fixed, I AM COMPLETELY DOWN.

Jul 20 '05 #1
5 9513
"Rand Boyd [MSFT]" <rb***@onlinemicrosoft.com> wrote in message
news:xp**************@cpmsftngxa10.phx.gbl...
I suspect something is wrong with the MDAC installation. Unfortunately,
once a version of MDAC is installed you cannot reinstall it without taking
other steps.

Look at the following article and use the resolution from it to see if you
can get MDAC 2.8 to reinstall.

The article references MDAC 2.6 and 2.7 but I believe it will apply to MDAC 2.8 as well.

http://support.microsoft.com/?kbid=286442
PRB: MDAC 2.6/2.7 Roll Back Installation or Get Error on Install


Thanks a million, that fixed the problem!

Some notes about the KB article:

1. My dasetup.log did not show an install failure as the article said it
should.
2. Renaming Odbcconf.dll did not fix the problem.
3. Even though the article warned against it, I downloaded and ran the
Unmgrt.exe tool then reinstalled MDAC 2.8 according to the instructions.
4. After the install, Windows required a reboot. On shutdown, there were
several programs that crashed. Nothing in the event logs.
5. After the reboot, queries in Enterprise Manager and native ADO worked
just fine.

Great job!
Jul 20 '05 #2
"Rand Boyd [MSFT]" <rb***@onlinemicrosoft.com> wrote in message
news:xp**************@cpmsftngxa10.phx.gbl...
I suspect something is wrong with the MDAC installation. Unfortunately,
once a version of MDAC is installed you cannot reinstall it without taking
other steps.

Look at the following article and use the resolution from it to see if you
can get MDAC 2.8 to reinstall.

The article references MDAC 2.6 and 2.7 but I believe it will apply to MDAC 2.8 as well.

http://support.microsoft.com/?kbid=286442
PRB: MDAC 2.6/2.7 Roll Back Installation or Get Error on Install


Thanks a million, that fixed the problem!

Some notes about the KB article:

1. My dasetup.log did not show an install failure as the article said it
should.
2. Renaming Odbcconf.dll did not fix the problem.
3. Even though the article warned against it, I downloaded and ran the
Unmgrt.exe tool then reinstalled MDAC 2.8 according to the instructions.
4. After the install, Windows required a reboot. On shutdown, there were
several programs that crashed. Nothing in the event logs.
5. After the reboot, queries in Enterprise Manager and native ADO worked
just fine.

Great job!
Jul 20 '05 #3
"George Copeland" <tm****@DELETETHISmail.com> wrote in message news:<Nk*****************@newssvr24.news.prodigy.c om>...
"Rand Boyd [MSFT]" <rb***@onlinemicrosoft.com> wrote in message
news:xp**************@cpmsftngxa10.phx.gbl...
I suspect something is wrong with the MDAC installation. Unfortunately,
once a version of MDAC is installed you cannot reinstall it without taking
other steps.

Look at the following article and use the resolution from it to see if you
can get MDAC 2.8 to reinstall.

The article references MDAC 2.6 and 2.7 but I believe it will apply to

MDAC
2.8 as well.

http://support.microsoft.com/?kbid=286442
PRB: MDAC 2.6/2.7 Roll Back Installation or Get Error on Install


Thanks a million, that fixed the problem!

Some notes about the KB article:

1. My dasetup.log did not show an install failure as the article said it
should.
2. Renaming Odbcconf.dll did not fix the problem.
3. Even though the article warned against it, I downloaded and ran the
Unmgrt.exe tool then reinstalled MDAC 2.8 according to the instructions.
4. After the install, Windows required a reboot. On shutdown, there were
several programs that crashed. Nothing in the event logs.
5. After the reboot, queries in Enterprise Manager and native ADO worked
just fine.

Great job!

Hi,

In the article is written :
Put the Unmigrt.cmd and Unmigrt.rsp files in a folder on the computer
that has the problem.
What does it mean??
what is the folder on the computer that has the problem??
doe it the Microsoft SQL Server folder??
When I try to run the Unmgrt.exe I get the message can find
mdacxpak.inf file
Do you get this error?

Thanks
Efrat
Jul 20 '05 #4
Efrat (sh******@bgumail.bgu.ac.il) writes:
In the article is written :
Put the Unmigrt.cmd and Unmigrt.rsp files in a folder on the computer
that has the problem.
What does it mean??
what is the folder on the computer that has the problem??
It means any folder. For instance C:\TEMP\MDAC.
When I try to run the Unmgrt.exe I get the message can find
mdacxpak.inf file
Do you get this error?


I have not tried running these programs myself, but as I read the KB
article, you should also put mdac_typ.exe into the same folder.
(mdac_typ.exe is the installation file for MDAC.) Did you do this?
--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #5
"Efrat" <sh******@bgumail.bgu.ac.il> wrote in message
news:bc**************************@posting.google.c om...
Put the Unmigrt.cmd and Unmigrt.rsp files in a folder on the computer
that has the problem.
What does it mean??
I don't know any other way to say it than what it says in the instructions.
You unzip the download on the computer that is throwing the ADO errors.
what is the folder on the computer that has the problem??
Wherever you unzip the download.
doe it the Microsoft SQL Server folder??
It is not a SQL Server problem, it is an MDAC problem, an ADO problem, a
data access over the network problem.
When I try to run the Unmgrt.exe I get the message can find
mdacxpak.inf file
Do you get this error?


Unbgrt.exe is a self-executing zip. Run it and take all the defaults.
Jul 20 '05 #6

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

Similar topics

3
by: Phil Powell | last post by:
$sql = 'INSERT INTO fs_usermetadata (' . substr(trim($cols), 0, strrpos(trim($cols), ',')) . ') VALUES (' . substr(trim($values), 0, strrpos(trim($values), ',')) . ')'; if (!mysql_query($sql))...
0
by: Jim the Bad | last post by:
Hi, I wonder if anyone can help me with this. Bog standard SuSE 8.2 Linux install. I have installed mySQL (off the SuSE 8.2 distro CDs). I can connect locally, e.g: bealzebub> mysql -u root...
8
by: Matt | last post by:
Hi all, Thank you for taking the time. I have a database with 45 tables on it. 44 tables are linked to a main table through a one to one relationship. My question is, is there no way i can...
5
by: Dave Smithz | last post by:
Hi there, Been working on an evolving DB program for a while now. Suddenly I have come across a situation where I need to update a table based on a group by query. For example, I have a table...
0
by: Ram | last post by:
When I try to create a new project in VC#.net, this error message is coming. "Automation server cannot create objcet" can anybody help me?
1
by: mlumsden | last post by:
OK So here's my essential Dilemma. I have set up my Table to import from 3 excel files and 1 other table. The Excel files may or may not be updated at the time of each refresh of my Table...
8
geolemon
by: geolemon | last post by:
I'm trying to perform an update, and I can't avoid this error - I've tried this query what must be 5 different very fundamentally different ways now. Arg. I used to be a DBA in large DB2 and SQL...
14
by: sarabonn | last post by:
hallo Iam trying to insert a row into a access database using visual c# and iam getting an error " cannot open the action query". here is my code private void button1_Click(object sender,...
1
by: alex21 | last post by:
Ok i am trying to use a Linq query to access a dictionary. public static Dictionary<string, Client> Clients = new Dictionary<string, Client>();Using this Linq query: IEnumerable<Staff> loginquery...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...

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.