Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 automatic filed

Author  Topic 

amy
Starting Member

30 Posts

Posted - 2002-06-11 : 09:42:03
Hi all,

Is there any way I can created the automatic number that based on my number? For example, instead of automatic number is 1, 2, 3, 4, etc, I want it to become like this:
for year 02: 01-02, 02-02, 03-02
for year 03: 03-02, 02-03, 03-03

Thanks


setbasedisthetruepath
Used SQL Salesman

992 Posts

Posted - 2002-06-11 : 09:54:02
You might be asking if SQL Server can generate column values based on formulas or expressions. 2K can w/ its support of computed columns. Check them out in BOL

setBasedIsTheTruepath
<O>
Go to Top of Page
   

- Advertisement -