Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok, very frustrating problem...I am adding a new row to a database, using SQLCommandBuilder to construct the SQL statement for me, but as it does so, its ignoring one of the fields! please help... here the code...

 

objNewRow("Username") = UN

objNewRow("Password") = PWD ' <----- IGNORING THIS FIELD

objNewRow("FName") = FName

objNewRow("LName") = LName

objDataTable.Rows.Add(objNewRow)

 

Dim objInsertCommand As New SqlClient.SqlCommandBuilder(objAdapter)

objAdapter.InsertCommand = objInsertCommand.GetInsertCommand

 

objAdapter.Update(objDataSet)

 

I have read objAdapter.InsertCommand.CommandText, and there is no password field. Anyone know a way to help?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...