Click here to Skip to main content
15,921,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Sir

1.When i am inserted data in my database how to find this transaction updated or not.


2.Second one question what the procedure to chance your primary key(identity key )in your database.Please give me steps one by one.

Please give me answer as soon as possible.

Thanks in advanced !!
Posted

Hi,

1. If you send an insert or update statement to the database engine and don't receive any error, then you can trust that you statement has been executed.

2. For create or change a primary key, read the following link. http://www.w3schools.com/sql/sql_primarykey.asp[^]

Good luck.
 
Share this answer
 
1. transaction would fail, nothing would be updated.
2. If you really would need to change the primary key, just delete and recreate.

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900