Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How to make sure that the operation on database is successful?

This is a discussion on How to make sure that the operation on database is successful? within the SQL Server forums, part of the Databases category; Suppose there is Insert or Update or Delete operation is performed on a database table. How you make sure that the operation(Insert, Update or Delete) is successful?...

Go Back   Geeks Talk > Databases > SQL Server
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

SQL Server SQL Server is a Database Management System(DBMS) by Microsoft

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-03-2007
Junior Member
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
sivaprasademani is on a distinguished road
How to make sure that the operation on database is successful?

Suppose there is Insert or Update or Delete operation is performed on a database table. How you make sure that the operation(Insert, Update or Delete) is successful?
Reply With Quote
The Following 2 Users Say Thank You to sivaprasademani For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 03-19-2007
Junior Member
 
Join Date: Jan 2007
Location: egypt
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
amarkamaj is on a distinguished road
Re: How to make sure that the operation on database is successful?

using
code:
SELECT * FROM (name of table)

to see did its realy add things that you are alraday adds
Reply With Quote
  #3 (permalink)  
Old 04-04-2007
Contributing Member
 
Join Date: Apr 2007
Location: India
Posts: 61
Thanks: 2
Thanked 13 Times in 9 Posts
Haitalk is on a distinguished road
Re: How to make sure that the operation on database is successful?

If the transaction is not successful, you will get error message displayed like what you see in some web pages. In programming languages, like VB, if you execute sql statements through those language's built-in controls ie. ADODB, there are options to catch failed queries using properties/methods of those controls. Anyway a transaction will never be updated partially in SQL server, It will either updated fully or not at all.
Reply With Quote
Reply

  Geeks Talk > Databases > SQL Server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How many four digit numbers can you make mikalla5519 Brainteasers 2 03-01-2007 02:58 AM
Would like to make an entry into IT field... kanchhana Career Advice 0 02-12-2007 08:29 AM
can you make a simple some? psuresh1982 Brainteasers 14 12-25-2006 05:04 AM
We make them cry... Lokesh M Geeks Lounge 1 12-19-2006 07:56 AM
Make me understand about make program in UNIX Remasri Unix/Linux 1 08-06-2006 03:22 PM


All times are GMT -4. The time now is 05:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved