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
 General SQL Server Forums
 New to SQL Server Programming
 Help Me please

Author  Topic 

pupz09
Starting Member

3 Posts

Posted - 2012-04-11 : 10:14:22
how can I save this kind of data in the sql 2012-8-0001 in the Studid table, where the table is in integer, and if a new student willl enroll it will increase to 2012-8-0002
help me please

raffypa

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-04-11 : 10:32:19
no chance!


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-04-12 : 00:33:33
you cant have it as integer if it has to hold value like this.You may be better off making it varchar and make it computed column to follow custom sequence

http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -