| | |
Update.......
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2009
Posts: 5
Reputation:
Solved Threads: 0
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.
This has to be done using ASP.NET using C#.
Plz give me some coding for that.
0
#2 Nov 4th, 2009
Write sql in the following way:
Will give you the incremented number Now pad FMS & 0 if required by using length of your max func return value.
ASP.NET Syntax (Toggle Plain Text)
SELECT MAX(CONVERT(INT,RIGHT(user_id,3)))+1 from master
MARK AS SOLVED if its help you.
REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
![]() |
Similar Threads
- Update Errors, help for a sec please? (Windows NT / 2000 / XP)
- update sql server data database in c# (C#)
- Update query with syntax error (PHP)
- How can you update Datepart day (MS SQL)
- Problem with Windows Update and WinXP (Web Browsers)
- News Story: PS3 firmware update on its way, admits PlayStation bigwig (Mac Rumors and Reports)
- Error 624: The system could not update the phone book file (Windows NT / 2000 / XP)
- can't update window because of active x (Windows NT / 2000 / XP)
- Auto update columns? (Database Design)
Other Threads in the ASP.NET Forum
- Previous Thread: Print?
- Next Thread: Help with insert statement
Views: 230 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 activexcontrol advice ajax asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox child class click compatible confirmationcodegeneration content contenttype countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdown dropdownmenu dynamic edit feedback flash flv folder form forms google grid gridview homeedition hosting identity iframe iis index javascript jquery list maps menu mono mssql multistepregistration nameisnotdeclared object objects order problem profile ratings refer rotatepage save search security serializesmo.table session silverlight smartcard sql suse textbox tracking typeof unauthorized update validation vb vb.net video view virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml





