![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I use SQL Server Enterprise Manager for MS SQL Express and i want to change the column properites for [int] type of column, but I cann't change it. More in details... I'd like to set autoincremntal option and in order to change that I am trying to change Identity specification from no to yes, without success. It is primary key too, Name AricleID, int type, Primary set of binding --> ((0)) Full text specification --> No Identity specification --> No --> I want to change this |
#3
| |||
| |||
|
|
Identity specification |
#4
| |||
| |||
|
|
I want to use Identity specification because I'd like to get autoincremental values started from 1 to n |
#5
| |||
| |||
|
|
Mike (ablyplus (AT) yahoo (DOT) com) writes: I want to use Identity specification because I'd like to get autoincremental values started from 1 to n For the existing data? Why? Assuming that the id is an artificial key, the values are of no importance, and 5 is as good as 98987. |
#6
| |||
| |||
|
|
For me is important to be 1,2,3,4,5,6 ... because it is important for the business logic of application, now, I have some random values instead. Please, help me, what is the best way to do that. |
#7
| |||
| |||
|
|
For me is important to be 1,2,3,4,5,6 ... because it is important for the business logic of application, now, I have some random values instead. |
#8
| |||
| |||
|
|
For me is important to be 1,2,3,4,5,6 ... because it is important for the business logic of application, now, I have some random values instead. |
|
Please, help me, what is the best way to do that. |
#9
| |||
| |||
|
|
For me is important to be 1,2,3,4,5,6 ... because it is important for the business logic of application, now, I have some random values instead. |
#10
| ||||
| ||||
|
|
1) NULL-able 2) More than one column can have the same data type 3) Has to take CHECK() constraints 4) Appropriate computations can done on it (numeric, string or temporal) IDENTITY has none of the properties of a data type because it is not a data type at all. |
|
It is an exposed physical locator attached to a table, not a property of a column. |
|
It is derived from the physical storage used on one machine, like pointer chains in the old navigational DBs or row_ids or hash tables. |
|
I think that you missed the concept of IDENTITY and the Relational Model. A data type in SQL has to: 1) NULL-able 2) More than one column can have the same data type 3) Has to take CHECK() constraints 4) Appropriate computations can done on it (numeric, string or temporal) IDENTITY has none of the properties of a data type because it is not a data type at all. It is an exposed physical locator attached to a table, not a property of a column. It is derived from the physical storage used on one machine, like pointer chains in the old navigational DBs or row_ids or hash tables. For me is important to be 1,2,3,4,5,6 ... because it is important for the business logic of application, now, I have some random values instead. What does this mean in your Logical data model? Since it has to reference something in the reality of that data model to be a valid RDBMS, how do you validate and verify it? I would guess that you do none of these basic things, but are mimicking a sequential tape file application which depends on counting records in procedural code. Do you have cursors, too? The whole idea of SQL is to use sets and declarative code. This is probably just the tip of the iceberg and all you will have is more and more kludges piled on each other. The thing will run for awhile, but it will choke from lack of data integrity or the inability to scale up or to port to another platform. Fix the design, then fix the application. |
![]() |
| Thread Tools | |
| Display Modes | |
| |