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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 Can we auto generate columns in SQL SERVER 2000?
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

samsuree
Starting Member

2 Posts

Posted - 06/02/2006 :  01:38:00  Show Profile  Send samsuree a Yahoo! Message  Reply with Quote
Hi,
Can we able to auto generate columns in sql server 2000?
I have a tabe with two fields No and Name. I need to auto generate no for each name i am going to enter. Can any give me a solution for this? If so i will be thankful to u.

This is my mail id suresh@tracy.in

Do reply me as soon as possible.

khtan
In (Som, Ni, Yak)

Singapore
17689 Posts

Posted - 06/02/2006 :  01:47:31  Show Profile  Reply with Quote
use identity. Create the field No as identity. Something like
create table yourtable
(
    No   int identity(1,1),
    Name varchar(100)
)


Also, please post in the appropriate forumn. The Script Library is for workable script for sharing with others.


KH

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000