Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2006, 11:25 PM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Insert Row in Database

Hi All

I have one table mast_diagnosis in sqlserver.Code is primary key in table.
Values are stored in Code like 1,2,3.....in sequence.

But MY problem is that I want to insert one row between 2 and 3 from frontend.How can i do that?

is it possible?Pls reply me if u know ans.

Thanks
monika

 
Old November 18th, 2006, 05:17 AM
Authorized User
 
Join Date: Aug 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if datatype of code is int then its not possible
if datatype of code is like float you can do that

by using identity, identity seed, identity increment of columns

if you r doing this through coding
u can add as u want






Similar Threads
Thread Thread Starter Forum Replies Last Post
insert new row in datagrid sumith ASP.NET 1.0 and 1.1 Professional 1 February 15th, 2007 01:53 PM
Insert row into MS-ACCESS database ITladybug ADO.NET 1 January 28th, 2006 07:57 AM
Dynamically Insert Row fs22 Javascript How-To 1 July 9th, 2005 04:47 AM
insert row to database heathonbass C# 2 December 19th, 2004 01:02 AM
stringgrid-insert row nas Visual C++ 0 December 10th, 2004 01:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.