Click here to Skip to main content
16,012,759 members
Home / Discussions / Database
   

Database

 
QuestionT-SQL Stored Pro Help [modified] Pin
Hulicat17-May-07 13:58
Hulicat17-May-07 13:58 
GeneralRe: T-SQL Stored Pro Help Pin
andyharman17-May-07 22:19
professionalandyharman17-May-07 22:19 
GeneralRe: T-SQL Stored Pro Help Pin
Hulicat18-May-07 3:21
Hulicat18-May-07 3:21 
QuestionStored Procedure Question Pin
Brent Lamborn17-May-07 11:06
Brent Lamborn17-May-07 11:06 
AnswerRe: Stored Procedure Question Pin
gauthee17-May-07 19:40
gauthee17-May-07 19:40 
GeneralRe: Stored Procedure Question Pin
Brent Lamborn18-May-07 3:14
Brent Lamborn18-May-07 3:14 
GeneralRe: Stored Procedure Question Pin
Brent Lamborn18-May-07 3:17
Brent Lamborn18-May-07 3:17 
QuestionAdding a new record to a DataSet Pin
Quecumber25617-May-07 10:21
Quecumber25617-May-07 10:21 
Hi Everyone:
I have solved the problem of how to bind a DataSet to the BindingNavigator control thanks to those who guided me in the right direction.

I now have another problem that is causing me ulcers.

When I populate the DataSet with data I retrieved from some table. I have no trouble using the move next, move previous, move first and move last buttons on the BindingNavigator control. I can navigate from record to record with no problem.

When I try to add a new record into the dataset using the routine written below; two problems occur. 1 – The auto increment ID number goes from 5(the last record ID in the Dataset) to 7. What happened to 6? 2 – After I add the new record’s data; when I page back through the dataset’s records the new record I just added has the record ID of 7. When I move to the previous record 6 (the one that was skipped) I see the data for the first record in the dataset. Records 5 to 2 seem to be correct, but record 1 is empty.

Logic dictates when I add a new record to the dataset it is added at the end of the dataset. This doesn’t seem to be happening. What I plan on doing is after I update the Dataset I will use the DataAdapter to write the changes back to the SQL Sever database, but the dataset looks incorrect, so I won’t commit an update until I’m sure the dataset’s information is correct.

A corollary to this problem is when I try to add records to an empty dataset. I get the DBNull error.

Does anyone know how to add a new record to: 1) an existing dataset, or 2) an empty one?

Thanks,


Quecumber256
AnswerRe: Missing Code Pin
Quecumber25617-May-07 10:24
Quecumber25617-May-07 10:24 
GeneralRe: Missing Code Pin
gauthee17-May-07 20:11
gauthee17-May-07 20:11 
GeneralRe: Missing Code Pin
Quecumber25618-May-07 3:05
Quecumber25618-May-07 3:05 
QuestionHow to convert varchar to int on the view Pin
teddddddddddd17-May-07 9:35
teddddddddddd17-May-07 9:35 
AnswerRe: How to convert varchar to int on the view Pin
Hulicat17-May-07 14:31
Hulicat17-May-07 14:31 
Questionduplicate keys Pin
seemamltn17-May-07 9:23
seemamltn17-May-07 9:23 
AnswerRe: duplicate keys Pin
gauthee17-May-07 19:48
gauthee17-May-07 19:48 
QuestionCompound primary keys in access? Pin
Dan Neely17-May-07 4:20
Dan Neely17-May-07 4:20 
AnswerRe: Compound primary keys in access? Pin
andyharman17-May-07 5:06
professionalandyharman17-May-07 5:06 
Questiondelete query for deleting duplicate rows efficiently Pin
VaibhavTiparadi17-May-07 3:40
VaibhavTiparadi17-May-07 3:40 
AnswerRe: delete query for deleting duplicate rows efficiently Pin
andyharman17-May-07 5:13
professionalandyharman17-May-07 5:13 
AnswerRe: delete query for deleting duplicate rows efficiently Pin
Arun.Immanuel17-May-07 6:13
Arun.Immanuel17-May-07 6:13 
QuestionMax Rows in MS-Access 2000 Pin
.NET- India 17-May-07 1:48
.NET- India 17-May-07 1:48 
AnswerRe: Max Rows in MS-Access 2000 Pin
Dave Kreskowiak17-May-07 6:50
mveDave Kreskowiak17-May-07 6:50 
Questionhow to cast nvarchar in to date type in sql Pin
rkherath16-May-07 23:10
rkherath16-May-07 23:10 
AnswerRe: how to cast nvarchar in to date type in sql Pin
WoutL16-May-07 23:42
WoutL16-May-07 23:42 
GeneralRe: how to cast nvarchar in to date type in sql Pin
rkherath17-May-07 0:10
rkherath17-May-07 0:10 

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.