.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 22nd, 2002, 11:19 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
manully generate ID for sql server.

<i><b>Originally posted by : simon (scht80@hotmail.com)</b></i><br />hiye all...<br />I'm very new to vb.net and asp.net please pardon my stupidity...<br />does anyone know how to manually generate the ID column for sql server2000 using VB.net?<br /><br />for example if the table has no data, the Id would be set to 1 and if there is already some data, i would like to add 1 to it.<br /><br />Can anyone help me in here?<br />thanks in advance people..<br /><br /><br /><br /><br />

Reply With Quote
  #2  
Old April 24th, 2002, 04:08 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Doug Hagerman (DougH@Usbs-Panels.com)</b></i><br />Sometimes instead of generating the Id through code its better to let Sql Server do it.<br /><br />When you are in design mode for creating a table, click on your "Record_Id" column and then look down at the bottom left of the screen. You will see an (Identity) Property. Change its value to yet. Made sure your field value is like numeric (that way you don't have to worry about its size).<br /><br />In most cases this will take care of your needs. Its a lot easier than Sequences in Oracle.<br /><br />...<br />Doug<br /><br /><br /><br />------------<br />simon at 4/22/2002 9:19:50 PM<br /><br />hiye all...<br />I'm very new to vb.net and asp.net please pardon my stupidity...<br />does anyone know how to manually generate the ID column for sql server2000 using VB.net?<br /><br />for example if the table has no data, the Id would be set to 1 and if there is already some data, i would like to add 1 to it.<br /><br />Can anyone help me in here?<br />thanks in advance people..<br /><br /><br /><br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > manully generate ID for sql server.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway