BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Access Violations

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Rhea Grason
Guest





PostPosted: Fri Apr 13, 2007 9:46 pm    Post subject: Access Violations Reply with quote



I have had to switch databases from Sybase SQLAnywhere to SQL SErver 2005. I am using Delphi 5 with ODBC and BDE to connect to SQL Server. I use cached updates in a few places and am getting access violations I never had with Sybase. I close all my queries when a screen is closed and now I get access violations for closing different queries depending on whether or not updates have been made to the cached updated query. Any idea why this is happening? Thanks.
Back to top
Kevin Frevert
Guest





PostPosted: Fri Apr 13, 2007 10:37 pm    Post subject: Re: Access Violations Reply with quote



Rhea,

What is the error? When does the error occur (clicking a button, applying
updates, etc)?

krf

"Rhea Grason" <Rhea.Grason (AT) beaverplastics (DOT) com> wrote in message
news:461fb41a$1 (AT) newsgroups (DOT) borland.com...
Quote:
I have had to switch databases from Sybase SQLAnywhere to SQL SErver 2005.
I am using Delphi 5 with ODBC and BDE to connect to SQL Server. I use
cached updates in a few places and am getting access violations I never had
with Sybase. I close all my queries when a screen is closed and now I get
access violations for closing different queries depending on whether or not
updates have been made to the cached updated query. Any idea why this is
happening? Thanks.
Back to top
SebastianK
Guest





PostPosted: Fri Apr 20, 2007 8:11 am    Post subject: Re: Access Violations Reply with quote



Quote:
Rhea,

What is the error? When does the error occur (clicking a button, applying
updates, etc)?

krf

"Rhea Grason" <Rhea.Grason (AT) beaverplastics (DOT) com> wrote in message
news:461fb41a$1 (AT) newsgroups (DOT) borland.com...
I have had to switch databases from Sybase SQLAnywhere to SQL SErver 2005.
I am using Delphi 5 with ODBC and BDE to connect to SQL Server. I use
cached updates in a few places and am getting access violations I never had
with Sybase. I close all my queries when a screen is closed and now I get
access violations for closing different queries depending on whether or not
updates have been made to the cached updated query. Any idea why this is
happening? Thanks.




I got the same problem. The error message is an Access error in memory
adresses but no info where the error occurs. I could the error trace back
to an TQuery object but no idea whats wrong with it. The CPU Windows
(Delphi Debugger) show everytime the same position of the error. I'm not
very with ASM but it occurs some lines after a call command for a lock at
idodbc32. So maybe it seems to be an error in the odbc driver of MSSQL. I
have the native one installed to but though I get the same error here so
that the native driver also a kind of odbc. Hope someone know more and
maybe an answer.

greets

Sebastian



--- posted by geoForum on http://delphi.newswhat.com
Back to top
Del Murray
Guest





PostPosted: Fri Apr 20, 2007 3:53 pm    Post subject: Re: Access Violations Reply with quote

IIRC .. Sql Server 7 and above dont fit well with BDE. WHy not switch to ADO
and use OLD DB lib for SQL server and it will work fine..
Back to top
SebastianK
Guest





PostPosted: Fri Apr 20, 2007 7:46 pm    Post subject: Re: Access Violations Reply with quote

Quote:
IIRC .. Sql Server 7 and above dont fit well with BDE. WHy not switch to ADO
and use OLD DB lib for SQL server and it will work fine..




Not a bad idea, but i have a very old big app here and that would not be
worth to change to ADO cause the BDE etc is wired too deep and it runs
also on Oracle which the app came working from. I port the datamodel to
MSSQl and that took about 4 weeks. But the change to ADO would be a killer
argument against it. :(



--- posted by geoForum on http://delphi.newswhat.com
Back to top
Rhea Grason
Guest





PostPosted: Wed Apr 25, 2007 12:41 am    Post subject: Re: Access Violations Reply with quote

I will switch to ADO eventually but not enough time right now.

Quote:
Del Murray<Del.Murray (AT) CreditHawk (DOT) Net> 04/20/2007 4:53 AM
IIRC .. Sql Server 7 and above dont fit well with BDE. WHy not switch to ADO

and use OLD DB lib for SQL server and it will work fine..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.