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 

Paradox to SQL Server

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





PostPosted: Wed Jun 28, 2006 10:42 pm    Post subject: Paradox to SQL Server Reply with quote



Hi all,

I am moving a lot of tables from Paradox to SQL Server. (SQL Express 2005).

I am accessing the database using BDE/SQL links (ADO is not an option at
this stage). Most of the queries work fine but every now and then I get an
error message from the BDE that the "Table is read only." This happens when
the RequestLive property is set to true. The Delphi help seems to say that
this is because the query is making a join and therefore cannot be editable.
However, the queries where I am getting this error, are definitely not
joins. The same query works fine when I use ADO instead of the BDO against
the same database.

Any clues?

thanks
Mike
Back to top
Bill Todd
Guest





PostPosted: Thu Jun 29, 2006 1:01 am    Post subject: Re: Paradox to SQL Server Reply with quote



Mike B wrote:

Quote:
Any clues?

If you are using the BDE SQL Links driver then you are using
Microsoft's DBLIB client library. The last version of SQL Server that
DBLIB was updated to support is version 6.5. Since you are using it
with SQL Server 9 there are undoubtedly things it does not support, for
example, all of the new field types added since 6.5. I don't know that
this is the problem but it is possible.

--
Bill Todd (TeamB)
Back to top
Oliver Townshend
Guest





PostPosted: Thu Jun 29, 2006 2:14 am    Post subject: Re: Paradox to SQL Server Reply with quote



Quote:
Any clues?

Could you show us one of the queries?

Oliver Townshend
Back to top
Mike B
Guest





PostPosted: Thu Jun 29, 2006 8:11 am    Post subject: Re: Paradox to SQL Server Reply with quote

Thanks Oliver and Bill for your replies.

Here's an example of a query that does not work when using SQL Links:

SELECT InvNum, TrnDate AS LastDate, Type
FROM DTtrans WHERE Type = 'I'

This works fine in Paradox using BDE and in SQL Server using ADO.

If I drop the AS syntax and refer to the column by its actual name, then it
works.

Unfortunately, AS is used extensively throughout the program, so I am hoping
to avoid having to do this.

thanks

Mike

"Oliver Townshend" <oliveratzipdotcomdotau> wrote in message
news:44a2f151$1 (AT) newsgroups (DOT) borland.com...
Quote:
Any clues?

Could you show us one of the queries?

Oliver Townshend
Back to top
Bill Todd
Guest





PostPosted: Thu Jun 29, 2006 7:29 pm    Post subject: Re: Paradox to SQL Server Reply with quote

Mike B wrote:

Quote:
SELECT InvNum, TrnDate AS LastDate, Type
FROM DTtrans WHERE Type = 'I'

This works fine in Paradox using BDE and in SQL Server using ADO.

If I drop the AS syntax and refer to the column by its actual name,
then it works.

There may not be a solution to this. When you set RequestLive to true
the BDE attempts to parse the SQL to determine if it will be able to
generate the INSERT, UPDATE & DELETE statements required to handle your
changes. IIRC it cannot do so when you use AS because it uses the
metadata of the query result wich will have a column name that does not
exist in the table. This problem does not exist with Paradox tables
because the changes are not made using SQL.

--
Bill Todd (TeamB)
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.