| View previous topic :: View next topic |
| Author |
Message |
Rhea Grason Guest
|
Posted: Fri Apr 13, 2007 9:46 pm Post subject: Access Violations |
|
|
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
|
Posted: Fri Apr 13, 2007 10:37 pm Post subject: Re: Access Violations |
|
|
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
|
Posted: Fri Apr 20, 2007 8:11 am Post subject: Re: Access Violations |
|
|
| 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
|
Posted: Fri Apr 20, 2007 3:53 pm Post subject: Re: Access Violations |
|
|
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
|
Posted: Fri Apr 20, 2007 7:46 pm Post subject: Re: Access Violations |
|
|
| 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
|
Posted: Wed Apr 25, 2007 12:41 am Post subject: Re: Access Violations |
|
|
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 |
|
 |
|