G
Guest
Hi there
I am using SQL Server 2000
When I insert new data into a table by using the Enterprise Manager the application I built doesn't know the data has changed because it filled a DataTable when starting
Now, when I also insert new data by using this custom application and afterwards use DataAdapater.Update, I don't get a DBConcurrencyException, but a SQLException instead with the SQL error number 2627 ('constraint violation')
Does anyone know why
Is it possible to get a DBConcurrencyError when inserting data or only when updating data
Here is the code
public void Synchronize(
tr
dAdapter.Update(data);// data is my datatabl
catch(DBConcurrencyException ex
CorrectDBError(ex);// Never reach this region..
catch(SqlException ex
if (ex.Errors[0].Number == 2627)// Error I reciev
{..
catch(Exception ex
{..
Thanks for all hints.
I am using SQL Server 2000
When I insert new data into a table by using the Enterprise Manager the application I built doesn't know the data has changed because it filled a DataTable when starting
Now, when I also insert new data by using this custom application and afterwards use DataAdapater.Update, I don't get a DBConcurrencyException, but a SQLException instead with the SQL error number 2627 ('constraint violation')
Does anyone know why
Is it possible to get a DBConcurrencyError when inserting data or only when updating data
Here is the code
public void Synchronize(
tr
dAdapter.Update(data);// data is my datatabl
catch(DBConcurrencyException ex
CorrectDBError(ex);// Never reach this region..
catch(SqlException ex
if (ex.Errors[0].Number == 2627)// Error I reciev
{..
catch(Exception ex
{..
Thanks for all hints.