Update.......

Reply

Join Date: Nov 2009
Posts: 5
Reputation: mca.mdebnath is an unknown quantity at this point 
Solved Threads: 0
mca.mdebnath mca.mdebnath is offline Offline
Newbie Poster

Update.......

 
0
  #1
Nov 3rd, 2009
plz help me ,i have to update a table "temp" where a temp_id is dyanamically change by 1 everytime and there are another table "Master" which contains id(int) and user_id(varchar). User_id is like 'FMS00' and the temp_id is dynamicaly change using code ..... and store into 'id' also and the user_id is changed to FMS001 , FMS002 and so on...

This has to be done using ASP.NET using C#.

Plz give me some coding for that.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 229
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 36
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training
 
0
  #2
Nov 4th, 2009
Write sql in the following way:

  1. SELECT MAX(CONVERT(INT,RIGHT(user_id,3)))+1 from master
Will give you the incremented number Now pad FMS & 0 if required by using length of your max func return value.
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 5
Reputation: mca.mdebnath is an unknown quantity at this point 
Solved Threads: 0
mca.mdebnath mca.mdebnath is offline Offline
Newbie Poster
 
0
  #3
Nov 4th, 2009
Thanks a lot....................
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 234 | Replies: 2
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC