Re: Access & OleDb - generating schema changes, problem with identity/counter fields.

From: Thomas Tomiczek [MVP] (t.tomiczek_at_thona-consulting.com)
Date: 11/05/04


Date: Fri, 5 Nov 2004 11:32:29 +0100

Your tools have the tremenouds problem of:

* Being unable to work against an abstract schema.
* Being unable to work agaisnt other databases.

making them totally unsuitable for the task at hand.

The new database exists as schema (a graph of schema objects), and the tool
has to work against all databases we care for.

-- 
Regards
Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
(CTO PowerNodes Ltd.)
---
Still waiting for ObjectSpaces? Try the EntityBroker today - more versatile, 
more powerfull.
And something in use NOW. for the projects you have to deliver - NOW.
"Özden Irmak" <ozdenirmak(at)isnet(dot)net(dot)tr> wrote in message 
news:eqTK8adwEHA.1308@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> Although the limitation for the Integer->AutoNumber still applies to them, 
> I would suggest our tools to compare and synchronize structure and data 
> changes in MSAccess :
>
> http://www.kliksoft.com/
> Klik! CompareLib and Klik! DataCompareLib
>
> Regards,
>
> Özden Irmak
> Klik! Software
>
> "Thomas Tomiczek [MVP]" <t.tomiczek@thona-consulting.com> wrote in message 
> news:eZYMGTLwEHA.2732@TK2MSFTNGP12.phx.gbl...
>> Hello,
>>
>> I am trying to auto sync db schemata (in access, among other databases). 
>> Means, there is a C# application that generates SQL for generating schema 
>> changes in the access database.
>>
>> I am stuck with two problems:
>>
>> ONE: how can I turn an int field into a counter/identity field? The 
>> following DDL statement:
>>
>> ALTER TABLE [ShpCountry]
>> ALTER COLUMN [OID] COUNTER CONSTRAINT PK_OID PRIMARY KEY
>>
>> Produces the following error: OleDbException, Invalid field data type. 
>> (SQL State 3259).
>>
>> It does work creating a field of this type. adly we DO have some 
>> databases out where counter-fields were (erronously) generated as numeric 
>> fields, so I need to get this changes.
>>
>> TWO: how do I allow writing manual values into a counter field in SQL? We 
>> need to load "start data" into the database. I WOULD be ok with turning 
>> them back into a non-counter-field (i.e. numeric) to load the data, but 
>> then we end up again on problem ONE - turning them back INTO a counter.
>>
>> Anyone an idea how to handle this? I have all other stuff under control 
>> (index creation, drops, everything), just the "numeric to counter" gets 
>> on my nerves for weeks now.
>>
>> -- 
>> Regards
>>
>> Thomas Tomiczek
>> THONA Software & Consulting Ltd.
>> (Microsoft MVP C#/.NET)
>> (CTO PowerNodes Ltd.)
>> ---
>>
>> Still waiting for ObjectSpaces? Try the EntityBroker today - more 
>> versatile, more powerfull.
>> And something in use NOW. for the projects you have to deliver - NOW.
>>
>>
>>
>
> 


Relevant Pages

  • Re: CD inventory database
    ... can post the schema if anyone's interested (it's going to end up ... The online CD databases are wholly ... CDs. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Viewing object owner in SQL 2005 - ownership chaining
    ... preferred it if SQL 2005 supported EXECUTE AS for views). ... I'm beginning to understand that OWNER lives somewhere between the ... the owner of the schema the object was created it. ... In many databases, dbo owns everything. ...
    (microsoft.public.sqlserver.security)
  • Re: Access & OleDb - generating schema changes, problem with identity/counter fields.
    ... Being unable to work agaisnt other databases. ... The new database exists as schema, ... CompareLib and Klik! ... >> (SQL State 3259). ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Variable list of values in column
    ... so I'm learning all of this as I design and develop the ... You don't know what First Normal Form is. ... five people in the hospital with a bad DB schema. ... months against the main databases. ...
    (microsoft.public.sqlserver.programming)
  • Re: Need help on how to organize users and objects
    ... development databases, and the crucial thing is not the SQL Server ... the owner by default. ... In 2005, if a user creates an sp, which schema ...
    (microsoft.public.sqlserver.security)