I have a table in my sqlserver 2000 that has a field IDNO. i want this
field to be my primary key. however i don't want this field to use the
autoincrement feature. when i access this table from vb.net and try to
add a record this field is autoincrementing. how can i disable the
autoincrement of this field yet serves this as my primary key?
thanks in advance 8 2004
go to design, select your id make shure that there is a key symbol next to
it (if not right click and set primary key)
this makes it the primary key the identity is something else -->
autoincrementing set it to false and there you go :)
hope it helps
eric
"jaYPee" <hi******@yahoo.com> wrote in message
news:8v********************************@4ax.com... I have a table in my sqlserver 2000 that has a field IDNO. i want this field to be my primary key. however i don't want this field to use the autoincrement feature. when i access this table from vb.net and try to add a record this field is autoincrementing. how can i disable the autoincrement of this field yet serves this as my primary key?
thanks in advance
go to design, select your id make shure that there is a key symbol next to
it (if not right click and set primary key)
this makes it the primary key the identity is something else -->
autoincrementing set it to false and there you go :)
hope it helps
eric
"jaYPee" <hi******@yahoo.com> wrote in message
news:8v********************************@4ax.com... I have a table in my sqlserver 2000 that has a field IDNO. i want this field to be my primary key. however i don't want this field to use the autoincrement feature. when i access this table from vb.net and try to add a record this field is autoincrementing. how can i disable the autoincrement of this field yet serves this as my primary key?
thanks in advance
Thank you for the reply. however i can't find an autoincrementing
properties under column properties in order to set it to false.
under column properties of IDNO field i have i only see this
properties:
Description
Default Value
Precision
Scale
Identity
Identity Seed
Identity Increment
Is RowGuid
Formula
Collation
i presume before and until now that i have to set the identity to "no"
but still in my vb.net app when i add record the IDNO field still
increment to the last value + 1.
don't know where can i set the autoincrement to "false"
thanks again
On Tue, 6 Apr 2004 09:41:21 +0200, "EricJ"
<er********@ThiSbitconsult.be.RE> wrote: go to design, select your id make shure that there is a key symbol next to it (if not right click and set primary key) this makes it the primary key the identity is something else --> autoincrementing set it to false and there you go :)
hope it helps
eric
"jaYPee" <hi******@yahoo.com> wrote in message news:8v********************************@4ax.com.. . I have a table in my sqlserver 2000 that has a field IDNO. i want this field to be my primary key. however i don't want this field to use the autoincrement feature. when i access this table from vb.net and try to add a record this field is autoincrementing. how can i disable the autoincrement of this field yet serves this as my primary key?
thanks in advance
these are the ones you are after Identity Identity Seed Identity Increment
yust set the identity to false the rest will follow :)
eric
"jaYPee" <hi******@yahoo.com> wrote in message
news:ao********************************@4ax.com... Thank you for the reply. however i can't find an autoincrementing properties under column properties in order to set it to false.
under column properties of IDNO field i have i only see this properties:
Description Default Value Precision Scale Identity Identity Seed Identity Increment Is RowGuid Formula Collation
i presume before and until now that i have to set the identity to "no" but still in my vb.net app when i add record the IDNO field still increment to the last value + 1.
don't know where can i set the autoincrement to "false"
thanks again
On Tue, 6 Apr 2004 09:41:21 +0200, "EricJ" <er********@ThiSbitconsult.be.RE> wrote:
go to design, select your id make shure that there is a key symbol next
toit (if not right click and set primary key) this makes it the primary key the identity is something else --> autoincrementing set it to false and there you go :)
hope it helps
eric
"jaYPee" <hi******@yahoo.com> wrote in message news:8v********************************@4ax.com.. . I have a table in my sqlserver 2000 that has a field IDNO. i want this field to be my primary key. however i don't want this field to use the autoincrement feature. when i access this table from vb.net and try to add a record this field is autoincrementing. how can i disable the autoincrement of this field yet serves this as my primary key?
thanks in advance
Thank you for the reply. however i can't find an autoincrementing
properties under column properties in order to set it to false.
under column properties of IDNO field i have i only see this
properties:
Description
Default Value
Precision
Scale
Identity
Identity Seed
Identity Increment
Is RowGuid
Formula
Collation
i presume before and until now that i have to set the identity to "no"
but still in my vb.net app when i add record the IDNO field still
increment to the last value + 1.
don't know where can i set the autoincrement to "false"
thanks again
On Tue, 6 Apr 2004 09:41:21 +0200, "EricJ"
<er********@ThiSbitconsult.be.RE> wrote: go to design, select your id make shure that there is a key symbol next to it (if not right click and set primary key) this makes it the primary key the identity is something else --> autoincrementing set it to false and there you go :)
hope it helps
eric
"jaYPee" <hi******@yahoo.com> wrote in message news:8v********************************@4ax.com.. . I have a table in my sqlserver 2000 that has a field IDNO. i want this field to be my primary key. however i don't want this field to use the autoincrement feature. when i access this table from vb.net and try to add a record this field is autoincrementing. how can i disable the autoincrement of this field yet serves this as my primary key?
thanks in advance
these are the ones you are after Identity Identity Seed Identity Increment
yust set the identity to false the rest will follow :)
eric
"jaYPee" <hi******@yahoo.com> wrote in message
news:ao********************************@4ax.com... Thank you for the reply. however i can't find an autoincrementing properties under column properties in order to set it to false.
under column properties of IDNO field i have i only see this properties:
Description Default Value Precision Scale Identity Identity Seed Identity Increment Is RowGuid Formula Collation
i presume before and until now that i have to set the identity to "no" but still in my vb.net app when i add record the IDNO field still increment to the last value + 1.
don't know where can i set the autoincrement to "false"
thanks again
On Tue, 6 Apr 2004 09:41:21 +0200, "EricJ" <er********@ThiSbitconsult.be.RE> wrote:
go to design, select your id make shure that there is a key symbol next
toit (if not right click and set primary key) this makes it the primary key the identity is something else --> autoincrementing set it to false and there you go :)
hope it helps
eric
"jaYPee" <hi******@yahoo.com> wrote in message news:8v********************************@4ax.com.. . I have a table in my sqlserver 2000 that has a field IDNO. i want this field to be my primary key. however i don't want this field to use the autoincrement feature. when i access this table from vb.net and try to add a record this field is autoincrementing. how can i disable the autoincrement of this field yet serves this as my primary key?
thanks in advance
>> I have a table in my SQL Server 2000 that has a field [sic] IDNO. I
want this field [sic] to be my primary key. <<
You need to read a book on SQL and RDBMS. Rows are not records; fields
are not columns; tables are not files; there is no sequential access
or ordering in an RDBMS, so "first", "next" and "last" are totally
meaningless.
What does this table model in the real world? Look at the real world
and ask what the key is. It cannot ever be the internal state of the
hardware in which your model resides. You are still thinking that
there are rcord numbers, like a sequential file system in an RDBMS --
you even use the terminology of a sequential file system.
This is totally wrong. There is no "Magic, Universal
one-size-fits-all" way to get a key. Building a data model is work.
>> I have a table in my SQL Server 2000 that has a field [sic] IDNO. I
want this field [sic] to be my primary key. <<
You need to read a book on SQL and RDBMS. Rows are not records; fields
are not columns; tables are not files; there is no sequential access
or ordering in an RDBMS, so "first", "next" and "last" are totally
meaningless.
What does this table model in the real world? Look at the real world
and ask what the key is. It cannot ever be the internal state of the
hardware in which your model resides. You are still thinking that
there are rcord numbers, like a sequential file system in an RDBMS --
you even use the terminology of a sequential file system.
This is totally wrong. There is no "Magic, Universal
one-size-fits-all" way to get a key. Building a data model is work. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jn |
last post by:
This is a newbie question, but why can't I have an index value of 0 in my
primary key column?
I want agentid to be 0 for the record "UNASSIGNED," but every time I update
the table it gets set to...
|
by: jaYPee |
last post by:
I have a table in my sqlserver 2000 that has a field IDNO. i want this
field to be my primary key. however i don't want this field to use the
autoincrement feature. when i access this table from...
|
by: Geoff Jones |
last post by:
Hi
Can anybody help me with the following problem? I have a datasource i.e.
some data, which I'm accessing via some VB. This I have done; with the help
of you guys. However, the original data,...
|
by: Agnes |
last post by:
For example, Invoice and InvoiceCharges
Invoice No should be the primary key in Invoice Table,
However, for the Invoice Charges, what primary key I should design ?
I put 'recid' in the...
|
by: Hugh O |
last post by:
Hi,
I am not sure if this type of question should be raised in this Newsgroup.
If not please direct me.
I am new to using RDO.Net data access but I thought I understood it. The 6
lines of...
|
by: Sally Sally |
last post by:
Hi all,
I am wandering about the pros and cons of creating a separate serial field
for a primary key when I already have a single unique field. This existing
unique field will have to be a...
|
by: Emma Middlebrook |
last post by:
Hi there,
I have created an XmlSchema to represent the tables in my database and
I have specified a primary key for each of the tables.
However, to be able to execute the following code:
...
|
by: Steven C. |
last post by:
Hello:
I'm getting an error, "primary key not defined" when trying to use the
FIND method on the DataTable Rows collection.
I have a typed dataset called 'MortgagesDS' that I created with the...
|
by: TheServant |
last post by:
Hey guys,
Another thread has inspired me to change the way I run things. At the moment I have a member table etc... The primary key is set as an autoincrement number, however I have obviously made...
|
by: rizwan6feb |
last post by:
I have a DataTable with thousands of records, i want to show these records on per page basis ( i.e a DataGridView showing first 20 records and next button to show next 20 records ...)
To achieve...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
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....
|
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...
| |