-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: kalpu0
Message 2 in Discussion

Hi,
I want SQL SERVER 2000 material...If you have then can you share with me?

 
On 9/21/07, Star_Venkat <[EMAIL PROTECTED]> wrote:
-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------

From: Star_Venkat
Message 1 in Discussion

Know about Identity:
Identity is the property set for the columns in sql server table. It enables 
the table to automatically populate the values (or) increment the values in the 
table providing if the user doesn't provide any input. The syntax for identity 
is seed value and the increment value.

create table sampe(id int identity(1,1))
insert into sampe default values
select * from sampe
To retrieve the Seed value and Increment value we have to used the method 
named, IDENT_SEED AND IDENT_INCR. Below is the query to retrieve those datas 
from the database.

SELECT IDENT_SEED(TABLE_NAME) AS Seed, IDENT_INCR(TABLE_NAME) AS Increment
, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
Regards,
Venkatesan Prabu. J


-----------------------------------------------------------


To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw


Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help


For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.

mailto:[EMAIL PROTECTED]




-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to