473,322 Members | 1,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Identity column issue-SQL3526n

Hi all
Db2 8.1.3 Windows

I have to load a table with an identity column with GENERATED ALWAYS
option.
I have to load the data in the identity column as it is.
I created the table and tried this command

db2 load from tab110.ixf of ixf modified by generatedoverride insert
into wsaces.tabname for exception wsaces.tabname_excp

But I am getting this error.

SQL3526N The modifier clause "GENERATEDOVERRIDE" is inconsistent with
the
current load command. Reason code: "3".

Using any other modifiers will result in losing of the data for identity
column which we don’t want
Please advise.

Praveen

Jan 24 '06 #1
7 6895
db2 => ? sql3526
SQL3526N The modifier clause "<clause>" is inconsistent with the
current load command. Reason code: "<reason-code>".

Explanation:

The load file type mode (modifier) indicated, is incompatible
with your load/import/export command. This is because of one of
the following reasons:
<snip>
3. Generated or identity related file type modifiers have been
specified but the target table contains no such columns.
<snip>

Seems self-explanatory. Is this not the case?

B.

Jan 24 '06 #2
klh
You need to define the column as GENERATED BY DEFAULT in order to
override it on a load or import.

klh

Jan 24 '06 #3
klh
You need to define the column as GENERATED BY DEFAULT in order to
override it on a load or import.

klh

Jan 24 '06 #4
>> have to load a table with an identity column with GENERATED ALWAYS option. <<

Unless this is a working table that will never be part of a real
working schema, why are using an identity column at all? Don't you
have a relational key? If not, then this is the least of your
problems.

Jan 25 '06 #5
For a GENERATED ALWAYS AS IDENTITY column, you need IDENTITYOVERRIDE,
not GENERATEDOVERRIDE. I always get that wrong the first time. :-)

/T

Jan 25 '06 #6
LOAD can override GENERATED ALWAYS.

/T

Jan 25 '06 #7
Good catch. :)

B.

Jan 26 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gunnar Vøyenli | last post by:
Hi (SQL Server 2000) I have an existing table (t) with a column that is NOT an identity column (t.ID), but it has manually inserted "row numbers". I want to make this column become an identity...
4
by: UDBDBA | last post by:
Hi: we have column with GENERATED ALWAYS AS DEFAULT. So, we can insert into this column manually and also let db2 generate a value for this column. Given a scenario, how can i find the NEXTVAL...
3
by: mal_k100 | last post by:
Hi All, 1. Created table in SQL Server 2K with Primary key as int Identity 2. Link to table in MS Access 2K 3. Using form in MSAccess to update the linked table I want SQL server to...
2
by: WhiteEagl | last post by:
Hello, I would need some help with this identity column problem in SQLServer. I have a database with two tables. The Parent table has an Identity column. Parent (ParentID IDENTITY, Name)...
2
by: sea# | last post by:
I implemented article "Inserting relational data using DataSet and DataAdapter" from this link: http://www.codeproject.com/cs/database/relationaladonet.asp In my code. It has a perfect...
2
by: .Net Newbie | last post by:
Hello, I am somewhat new to .Net and currently working on an intranet site using C# going against SQL Server 2k. I am accepting personal information on a single webform and trying to insert the...
1
by: smauldin | last post by:
Creating a table with an identity column works fine create table test(a integer, id integer generated always as identity ) When I attempt to add an identity column it fails. create table...
5
by: Veeru71 | last post by:
Given a table with an identity column (GENERATED BY DEFAULT AS IDENTITY), is there any way to get the last generated value by DB2 for the identity column? I can't use identity_val_local() as...
7
ak1dnar
by: ak1dnar | last post by:
Hi this is my first visit to the MSSQL forum with a question. Let me explain the scenario, I have a table say clients table with the structure like id,foo,etc.. and lots of records on it. But...
2
by: BobLewiston | last post by:
Most databases have multiple users. For these databases it is a good idea to auto-increment the identity column. I understand that the identity column is not incremented until the newly-created...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.