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 2011
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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |