473,394 Members | 1,718 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,394 software developers and data experts.

Run time error 3669. Execution cancelled

Hi All

I found an error ( run time error 3669. Execution
cancelled) when ran the following query via VB6 SP5.

select crc,month,sum(v) as v
from ( select crc,v,
case when fadate between '1/1/2003'
and '1/31/2003' then 1
else 2 end as month
from x
where year = '2003' and acc = '99020020') as t
group by crc,month

When the same query was run directly under query analyser
on the server, I did not find any problem. It produced
120 rows. The execution time was arround 100 seconds.
The table x contain 5 million rows.

Then I tried to reduce the number of rows in the table x
to be one thousand rows by modifying the query :

select crc,month,sum(v) as v
from ( select top 1000 crc,v,
case when fadate between '1/1/2003'
and '1/31/2003' then 1
else 2 end as month
from x
where year = '2003' and acc = '99020020') as t
group by crc,month

The new query version above could be run normally via VB.

Note :

The libray I use is Microsoft DAO 3.6
The connecion setting :
DBEngine.DefaultType = dbUseODBC
x = "ODBC;DRIVER=SQL server; UID=xx; PWD=aa;
SERVER=SRV2003; DATABASE=abc"
Set cn = OpenConnection("", dbDriverNoPrompt, False, x)

The record set setting when the error appeared :
Set rs = cn.OpenRecordset(sql, dbOpenDynaset)
Where sql contains query above.

Please help me

Thanks in advance

Anita Hery


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #1
0 4225

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

Similar topics

0
by: Francesc Guim Bernat | last post by:
Dear colleagues, i'm getting in troubles using one XML library with Visual Studio .NET and Xerces with Xalan. (Xercer 2.4 and Xalan 1.7) When i execute the code i get the next run time error: ...
1
by: Francesc Guim Bernat | last post by:
Dear colleagues, i'm getting in troubles using one XML library with Visual Studio .NET and Xerces with Xalan. When i execute the code i get the next run time error: "Run-Time Check Failure #2...
2
by: Christina Grabe via AccessMonster.com | last post by:
Here's the code: Private db As Database, rs As Recordset Set rs = db.OpenRecordset("Table") rs.AddNew 'User puts in some stuff in form and hits okay rs.Update This stuff works perfectly...
3
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object...
12
DUNXALEARE
by: DUNXALEARE | last post by:
please help me huhuhu im writing a visual basic program and use ms access as data base. i use adodc to add,save,edit,search or delete records on access. for me thats the easiest way. my program...
5
by: AMBLY | last post by:
Hi everyone! Could someone help me with this, please? I run Access2000 on XP Have created a Report. Have placed a button on a form to email the report Works fine - email is generated, ready...
0
by: imnewtoaccess | last post by:
Hi, I am new to DB2. From the command center when I run this query I get the error given below the query : Select a.tk_serial_external, a.tk_serial_internal, b.ush_revenue, c.ush_revenue,...
1
by: DrLargePants | last post by:
If I have something like below, and I catch an error in DoWork, how do I then get e.Error in RunWorkerCompleted to populate ? Private Sub bg_DoWork(ByVal sender As Object, ByVal e As...
1
by: jestin | last post by:
hi friends set rsschedcheck = Server.CreateObject("ADODB.Recordset") sqlschedcheck = "SELECT ACPADMIN.Tbl_RequestInfo.ReqServicetypeid, ACPADMIN.Tbl_RequestInfo.ReqArea,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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.