Hello:
I use SQL Server Desktop Edition in a PocketPC client, and i have a similar
code in the server, but in the server i use DBF (make with Visual FoxPro, i
believe) by OleDb connector. I execute the command directly, i create the SQL
sentence in a string, load it in the Command and then call to
executeNonQuery method.
Thanks for your help.
Bye.
"Sahil Malik [MVP]" wrote:
> What database are you using?
>
> Are you executing the DbCommand (SqlCommand/OracleCommand etc.) Directly or
> are you using a DataAdapter?
>
> - Sahil Malik [MVP]
> ADO.NET 2.0 book -
> http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
> -------------------------------------------------------------------------------------------
>
> "Javier" <(E-Mail Removed)> wrote in message
> news:FE8303C3-C7C7-4C50-BCBE-(E-Mail Removed)...
> > Hello:
> > I have an application with a data base. i insert information by the
> > application in the data base, and i have to control that the user doesn't
> > give a value for the primary key column that already exists.
> > I would want to know what happens in that case, when you try to insert a
> > new
> > row in the table with a value for the primary key that already exists, an
> > exception is raised? nothing happens? it happens an updated?
> > Thanks for the help.
> > Bye.
>
>
>