Click here to Skip to main content
15,912,329 members
Home / Discussions / Database
   

Database

 
GeneralRe: Unable to run the SQL Server critical update Pin
André Ziegler24-Mar-06 0:43
André Ziegler24-Mar-06 0:43 
GeneralRe: Unable to run the SQL Server critical update Pin
Suj_7824-Mar-06 2:11
Suj_7824-Mar-06 2:11 
GeneralRe: Unable to run the SQL Server critical update Pin
André Ziegler24-Mar-06 2:45
André Ziegler24-Mar-06 2:45 
QuestionUsing a switch in SQL Pin
MatthysDT22-Mar-06 22:46
MatthysDT22-Mar-06 22:46 
AnswerRe: Using a switch in SQL Pin
Colin Angus Mackay23-Mar-06 1:26
Colin Angus Mackay23-Mar-06 1:26 
QuestionImage in Datagrid Pin
naveenieus22-Mar-06 17:13
naveenieus22-Mar-06 17:13 
QuestionDoes anybody know open source db of countries, cities... Pin
e-laj22-Mar-06 14:47
e-laj22-Mar-06 14:47 
QuestionHow to: Reset value of autoincrement column, after delete the datarow? Pin
krzychub22-Mar-06 6:46
krzychub22-Mar-06 6:46 
Hi.

I use VS 2005 and ADO.NET 2.0.
The simplest example:
I have DataSet with one DataTable ('Person')
The 'Person' Table has 3 columns:
1.ID -> Autoincrement=True
2.LastName
3.FirstName
On my form I have DataGridView Control and BindingNavigator.
Using BindingNavigator's 'AddNewItem' button, I add new
DataRow to my 'Person' Table then
ID = 1 and i repeat this 3 times.
After that I use BindingNavigator's 'DeleteItem' to remove
last DataRow (ID = 3) from 'Person' Table.
Now, when I add NewItem once again I have new DataRow with
ID = 4.

How can I reset this value back to '3' in autoincrement column?

Somebody can help me, please?
Thanks.
QuestionRe: How to: Reset value of autoincrement column, after delete the datarow? Pin
Chris Meech22-Mar-06 7:16
Chris Meech22-Mar-06 7:16 
AnswerRe: How to: Reset value of autoincrement column, after delete the datarow? Pin
Steve Schaneville22-Mar-06 7:19
professionalSteve Schaneville22-Mar-06 7:19 
AnswerRe: How to: Reset value of autoincrement column, after delete the datarow? Pin
krzychub23-Mar-06 21:19
krzychub23-Mar-06 21:19 
Questionusing aggregates on NULL Pin
Rob Philpott22-Mar-06 4:48
Rob Philpott22-Mar-06 4:48 
AnswerRe: using aggregates on NULL Pin
Michael Potter22-Mar-06 4:54
Michael Potter22-Mar-06 4:54 
GeneralRe: using aggregates on NULL Pin
Rob Philpott22-Mar-06 6:14
Rob Philpott22-Mar-06 6:14 
GeneralRe: using aggregates on NULL Pin
Michael Potter22-Mar-06 8:29
Michael Potter22-Mar-06 8:29 
GeneralRe: using aggregates on NULL Pin
Rob Philpott22-Mar-06 8:59
Rob Philpott22-Mar-06 8:59 
AnswerRe: using aggregates on NULL Pin
albCode22-Mar-06 4:55
albCode22-Mar-06 4:55 
AnswerRe: using aggregates on NULL Pin
Steve Schaneville22-Mar-06 7:15
professionalSteve Schaneville22-Mar-06 7:15 
AnswerRe: using aggregates on NULL Pin
Chris Meech22-Mar-06 7:22
Chris Meech22-Mar-06 7:22 
JokeRe: using aggregates on NULL Pin
Jorge Novo23-Mar-06 13:09
Jorge Novo23-Mar-06 13:09 
QuestionBLOB size in oracle 8? Pin
chilituna22-Mar-06 1:56
chilituna22-Mar-06 1:56 
QuestionProcedure Pin
ArielR22-Mar-06 0:06
ArielR22-Mar-06 0:06 
AnswerRe: Procedure Pin
J4amieC22-Mar-06 0:12
J4amieC22-Mar-06 0:12 
AnswerRe: Procedure Pin
HimaBindu Vejella22-Mar-06 0:39
HimaBindu Vejella22-Mar-06 0:39 
GeneralRe: Procedure Pin
ArielR22-Mar-06 3:17
ArielR22-Mar-06 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.