Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Checking
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

Assume in the database we have a table named "X".
I have Created or added a new column to the table "X".
Now I want to insert a check point to ensure the Newely created column is added to the table.

Could some one let me know your comments.
Is it possible?????
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Two ways,

1) check for the column --- select xyz from table if column exist it will show you the data else it will raise an error. Use err object to raise and capture the error ( if it occurs)

2) Other method can be to download the table before and after inserting the column in excel and use getparametercount to get the no of columns each time. If diff is 1 then the column is inserted.

I would prefer the 1st method. 2nd, In my opinion is not efficient.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP consuming more time while checking for the objects skadam 4 4,071 10-04-2011, 02:57 PM
Last Post: skadam
  Checking text msg dynamically... Shandru 1 2,325 10-06-2010, 12:08 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)