A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Windows Service Pack 2
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

XP SP2 IE ADO Problem



 
 
Thread Tools Display Modes
  #1  
Old December 6th 04, 05:15 PM
Bhaskar Prasad Thamma
external usenet poster
 
Posts: n/a
Default XP SP2 IE ADO Problem

Hi

I am writing a HTML file ,using Vbscript i am accessing Excel sheet data
and Dbase file data using ADO and displaying them in HTML Table format.

It worked fine on windows 2000 Pro with a warning message saying "This
program is using a Data source accross domains". so, I enabled this feature
in IE properties --Security-Access Data source accross Domain to ENABLED.

Then It works fine in Windows 2000 Pro.


I am not able to run the same file in Windows XP sp2.

The problem running the file in XP sp2 OS.

1. Warning messages:"ADO security warning: This website is using your
identity to access a datasource. If you trust this website click ok to
continue otherwise cancel". And after this the application hangs.
2. Error message: "Unexpected error from External Datbase Driver 15877".

Sample Code
-----------

sub window_onload()

Set cn = CreateObject("adodb.connection")
set rsExcel = CreateObject("adodb.Recordset")
Dim Filstr
FilStr="v:\gold\template\Goals.xls"

ConStr ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Filstr &";Extended
Properties='Excel 8.0;HDR=Yes;IMEX=1'"


cn.Open ConStr
cn.CursorLocation=3

sqlq="Select * from [Sheet2$]"
rsExcel.Open sqlq,cn,2,3
--------------------------------------


Please help!!!


Ads
  #2  
Old December 8th 04, 01:32 PM
Mark L. Ferguson
external usenet poster
 
Posts: n/a
Default XP SP2 IE ADO Problem

To disable the SP2 warning for running activeX on a local computer page, go
to : IE, Tools menu, Options, Advanced Tab, -- scroll down to the Security
area, check the box for, "Allow active content to run in files on My
Computer"

--

Mark L. Ferguson (NOT an MS-MVP)
marfers notes for windows xp
http://www.geocities.com/marfer_mvp/chatNotes.htm
..
"Bhaskar Prasad Thamma" wrote in message
...
Hi

I am writing a HTML file ,using Vbscript i am accessing Excel sheet data
and Dbase file data using ADO and displaying them in HTML Table format.

It worked fine on windows 2000 Pro with a warning message saying "This
program is using a Data source accross domains". so, I enabled this
feature
in IE properties --Security-Access Data source accross Domain to
ENABLED.

Then It works fine in Windows 2000 Pro.


I am not able to run the same file in Windows XP sp2.

The problem running the file in XP sp2 OS.

1. Warning messages:"ADO security warning: This website is using your
identity to access a datasource. If you trust this website click ok to
continue otherwise cancel". And after this the application hangs.
2. Error message: "Unexpected error from External Datbase Driver 15877".

Sample Code
-----------

sub window_onload()

Set cn = CreateObject("adodb.connection")
set rsExcel = CreateObject("adodb.Recordset")
Dim Filstr
FilStr="v:\gold\template\Goals.xls"

ConStr ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Filstr
&";Extended
Properties='Excel 8.0;HDR=Yes;IMEX=1'"


cn.Open ConStr
cn.CursorLocation=3

sqlq="Select * from [Sheet2$]"
rsExcel.Open sqlq,cn,2,3
--------------------------------------


Please help!!!




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print problem after SP2 update Phil Windows Service Pack 2 1 November 14th 04 02:06 AM
sp2 and networking problem lcnlit Windows Service Pack 2 2 November 13th 04 04:31 AM
XP SP2 Automatic Service Problem Joseph Windows XP Help and Support 0 September 15th 04 09:39 PM
SP2 installed: Problems.. Uninstall=New Problem (SpoolerSubsystemApp) Rudy Windows Service Pack 2 2 September 13th 04 06:25 AM
shut down problem after sp2 snowball Performance and Maintainance of XP 0 August 30th 04 09:40 PM






All times are GMT +1. The time now is 10:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.