Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete field in Table

Status
Not open for further replies.

sohrab100

Programmer
Jan 18, 2002
56
HK
Will there be any affect if i delete some fields in a table?
Will there be any affect to the index files if the fields deleted is not related to index files? sohrab100
 
sohrab100

It's hard to determine the implications of deleting a field without knowing the application. I think you can determine the impact yourself. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Sohrab,
Well, your question has a lot of unknowns. The one thing that is relatively safe to say, if your indexes do not use the fields in any way, shape or form (and be very careful here, just because a field is not specifically indexed on, does not mean it's not part of another index expression...) If it is not, then, no, it will not have an impact on any index itself.
On the other side of the coin, I'd be very careful to fully understand what you are getting into. Even deleting a field that is "Blank" might cause the application that it is associated with (assuming there is one), not to work, because it's looking to display that field in a form. My advise is, if you really want to get rid of it, and test it, make a copy of the original table first. In fact, I'd say, copy the whole application, and data onto another machine that can not be confused for the main application. Delete the field there, and run your application. Test all areas, see if it blows up. If it does, then you know you can't delete that field. In the mean time, you've affected no one's life adversly! :-)
It's what testing environments are all about. You can play, and break things there, and not have to worry about it at the end of the day. So, go, chop away. (But move it, and back it up first.)


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
If you have to ask on here. I would leave it alone. Unless it is a very large field and you have many records and your table is getting close to a few Gig, may be best to jsut leave it alone. Decide what it really is going to buy you. and as above stated, don't try it on live data, use a backup and test it out, every possible way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top