excess parameters?

S

Strahimir Antoljak

Could anybody help me understand why VS.NET when
a table is dragged onto the form creates 'double' parameters
for data adapter's command objects, as for example shown
below for "Original_First_Name" and "Original_First_Name1"?
What would happen if I removed "Original_First_Name1"?
And why this is created at first place?

Thanks in advance,

Strah


Me.OleDbDeleteCommand1.Connection = Me.OleDbConnection1

Me.OleDbDeleteCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("Original_SSN",
System.Data.OleDb.OleDbType.VarWChar, 50,
System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte),
"SSN", System.Data.DataRowVersion.Original, Nothing))

Me.OleDbDeleteCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("Original_First_Name",
System.Data.OleDb.OleDbType.VarWChar, 50,
System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte),
"First_Name", System.Data.DataRowVersion.Original, Nothing))

Me.OleDbDeleteCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("Original_First_Name1",
System.Data.OleDb.OleDbType.VarWChar, 50,
System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte),
"First_Name", System.Data.DataRowVersion.Original, Nothing))
 
S

Strahimir Antoljak

David,

Thanks for your reply...

I am very surprised to get

an explanation from Sceppa

himself... Thanks again,

Strah
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top