VISOCO Software  Home | Products | Services | Download | Order | Support | Forum | Resources | Search | About
  RSS feedRSS Feed  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  RegisterRegister   ProfileProfile    Log inLog in 
ID fields

 
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE
Author Message
skrzemin



Joined: 13 Feb 2004
Posts: 1

PostPosted: Fri Feb 13, 2004 4:44 pm    Post subject: ID fields Reply with quote

We are thinking about buying your software, but first we wanted to be sure it satisfies our needs. Unfortunatelly, we have one problem we cannot resolve - maybe you can help:

We have huge application in Delphi 7 connecting to Sybase 12.5 ASE by BDE. We want to change Delphi 5 to Delphi7 with smallest possible changes in the code. We decided to use TSimpleDataSet for TQuery while it gives similar functionality (is editable after small changes, we use Append and we don't have time to change it). When we use SimpleDataSet (on SQLConnection to Sybase provided by your driver) we have problem in Appends if table has a field type ID (auto-inc). In this case ID should be given by server but SimpleDataSet says that field 'ID' is required. If I give some data for 'ID' server says that that it should not be given this data (whatis expected). How should I resolve the problem of ID? Am I missing something or doing something wrong - maybe you know the answer?
Back to top
View user's profile Send private message
VISOCO Support
VISOCO Software Support


Joined: 16 Jul 2002
Posts: 96

PostPosted: Thu Feb 19, 2004 4:28 pm    Post subject: Reply with quote

Hi
How did you use the TSimpleDataSet? Please send us simple sample with using TSimpleDataSet.

We shall try to help you.

Thank you.

VISOCO support
support@visoco.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
VISOCO Support
VISOCO Software Support


Joined: 16 Jul 2002
Posts: 96

PostPosted: Mon Feb 23, 2004 11:16 am    Post subject: Reply with quote

Hello.

We propose you to use the combination of TSQLDataSet - TDataSetProvider -
TClientDataSet. Actually, TSimpleDataSet encapsulates them all, but the
separate use of components can give you more flexible control.

Open the Fields editor of TSQLDataSet then "Add all fields". Now check
ProviderFlags property of the identity field. Be sure pfInUpdate flag is not
set. In this case provider will not include identity field in INSERT/UPDATE
statements.

VISOCO Support
support@visoco.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE All times are GMT + 2 Hours
Page 1 of 1

 


©VISOCO Software. phpBB by phpBB Group