Log in

View Full Version : [HELP] Stored procedures broken after fixing "lin2worl(suspect)"


Reaver13
28.06.2007, 07:54
Hi people, can someone help me with my problem?
After power failure my lin2world got "suspect" status =(
But after some search i have it back to work(thx hr ^^), everything in tables seems to be ok, BUT

when i start CacheD i got
06/28/2007 12:33:xx.xx4, Error sql: EXEC lin_DeleteNotOwnedItem (0)
06/28/2007 12:33:xx.xx4, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_DeleteNotOwnedItem'.
06/28/2007 12:33:xx.xx4, Error sql: EXEC lin_LoadAllAllianceId (0)
06/28/2007 12:33:xx.xx4, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_LoadAllAllianceId'.
06/28/2007 12:33:xx.xx4, Error sql: EXEC lin_LoadNewbieData (0)
06/28/2007 12:33:xx.xx4, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_LoadNewbieData'.
06/28/2007 12:33:xx.xx0, Error sql: EXEC lin_LoadSSQSystemInfo (0)
06/28/2007 12:33:xx.xx0, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_LoadSSQSystemInfo'.
06/28/2007 12:33:xx.xx0, Error sql: EXEC lin_CreateSSQRound 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 (0)
06/28/2007 12:33:xx.xx0, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_CreateSSQRound'.
06/28/2007 12:33:xx.xx0, [.\SevenSignQuestDB.cpp][359]Cannot create ssq round, Round[0]
06/28/2007 12:33:xx.xx5, Error sql: EXEC lin_LoadTimeAttackRecord 0 (0)
06/28/2007 12:33:xx.xx5, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_LoadTimeAttackRecord'.
06/28/2007 12:33:xx.xx5, Error sql: EXEC lin_CreateTimeAttackRecord 1, 0, 0, 0, 0, 0, 0, 0, N'', N'', 0, 0 (0)
06/28/2007 12:33:xx.xx5, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_CreateTimeAttackRecord'.
06/28/2007 12:33:xx.xx5, [?????????][207]Cannot create time attack info. room_no=[1], record_type=[0]
...
06/28/2007 12:37:xx.xx0, Error sql: EXEC lin_CreateTimeAttackRecord 5, 2, 0, 0, 0, 0, 0, 0, N'', N'', 0, 0 (0)
06/28/2007 12:37:xx.xx0, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_CreateTimeAttackRecord'.
06/28/2007 12:37:xx.xx0, [?????????][207]Cannot create time attack info. room_no=[5], record_type=[2]


all of those procedures exist in my database, i tried to recreate them, but nothig work =(

plz, can someone tell me how to fix it, or where is my mistake?

Reaver13
28.06.2007, 11:22
can anyone help me?
2 days of downtime isnt good =(((

~Marquis~
28.06.2007, 11:33
Don't you have any recent backup of your db? Because restoring a damaged db will result in an headache.

Reaver13
28.06.2007, 11:45
no, i havent backups =(

hr
28.06.2007, 12:56
make new clean DB with right structure and copy data there from your damaged DB, than detach your damaged DB and reattach new DB instead of damaged.

Osito2Dancer
28.06.2007, 23:41
or Recreate ODBCs.

Reaver13
29.06.2007, 09:02
thx people, i will try it now

Reaver13
30.06.2007, 09:36
so, thx to Osito2Dancer and hr, my CacheD starts smooth but,
all chars are without items and skills!

can somebody tell me where i can search for items?

hr
30.06.2007, 10:54
may be your forgot to use "IDENTITY_INSERT" option while transfering data from one table into another? try to check that char_ids are the same for both user_data tables and the same for item_ids in user_item. if they are different - start everything once again from clean db, but turn IDENTITY_INSERT on for each table you copy.