Hi there!
I am creating tables within my DB and was wondering if theres a way that i can assign a generated primary key which is not an autonumber such as 1,2,3.
I am using the following code and need to have some kind of auto character plus a number generated as a primary key for ComputerID. Any ideas?
CREATE TABLE Computers
(
ComputerID int IDENTITY NOT NULL PRIMARY KEY,
EngineerID varchar(10) NOT NULL
)
I am creating tables within my DB and was wondering if theres a way that i can assign a generated primary key which is not an autonumber such as 1,2,3.
I am using the following code and need to have some kind of auto character plus a number generated as a primary key for ComputerID. Any ideas?
CREATE TABLE Computers
(
ComputerID int IDENTITY NOT NULL PRIMARY KEY,
EngineerID varchar(10) NOT NULL
)