Error When Adding Items

07/14/2013 23:59 TRTeta#1
I get an error when im trying to add an items to the SQL. How can I fix this ? Please help.

[Only registered and activated users can see links. Click Here To Register...]
07/15/2013 00:37 Modamer9#2
read the error what he said "Can not insert duplicate key"

it mean you can not insert tow some ID in DB.item.
07/15/2013 01:04 ThunderNikk#3
Check the ID values in the errors in your database dbo_ItemResource

You either already have the items or you have items in your database the use the same item IDs.
07/15/2013 01:21 TRTeta#4
what should I do
07/15/2013 02:34 ThunderNikk#5
You should look at the item IDs in the error.

Find out what items they are in you dbo.ItemResource table and see if they are the same items.

If they are then you don't need to run the script to add the items cause they are...already in there.

If the item IDs are in there for some other items then you're in a pickle.
07/15/2013 09:03 TealSky#6
You should: not try to insert items that already exist into the database.

So unless you feel like spending a REALLY long time thumbing through 30k+ items, I'd open the script your trying to use (or scroll to the top of the query window) and add TRUNCATE TABLE dbo.ItemResource BEFORE the first INSERT [[WARNING!!! THIS WILL DELETE ALL DATA IN YOUR dbo.ItemResource]]
07/15/2013 10:26 TRTeta#7
fixed :D