-
Hello all,i want to know how can i delete some item from all members already registered,from port service,invetory,or equiped?
Eg:i want to remove 1 pet from all member,how can i do that?withou deleting on each one of them possibly a query or something ...
Nobody?
Last edited by cypher; 09-08-10 at 03:20 PM.
Reason: dbl post.
-
-
Account Upgraded | Title Enabled!
Re: Delete Item
Excuse me for digging up a thread this old. But I find this quite interesting.
You may have noticed that all the items are stored in some weird, binary way (which insults the concept of relational databases, but meh).
Anyway, what you could try is the following (should be realisable in TSQL):
- Loop though all the the "equipment" and "warehouse" fields which contains item data;
- Decode them (you might find this thread helpful);
- (Invoke a transaction);
- Delete the item;
- Write it back;
- (End the transaction);
Other stuff you might find helpful:
T-SQL Programming Part 1 - Defining Variables, and IF...ELSE logic
T-SQL Programming Part 2 - Building a T-SQL Loop
Transaction Fundamentals
-