Viewing 7 posts - 1 through 7 (of 7 total)
well i wrote it like this right now
DELETE FROM [CHARACTER_01_DBF].[dbo].GUILD_MEMBER_TBL WHERE NOT EXISTS (SELECT (m_idPlayer) COLLATE DATABASE_DEFAULT FROM [LOGGING_01_DBF].[dbo].[LOG_LOGIN_TBL])
hopefully this will be better
and about the loop thing i dont...
February 27, 2013 at 5:15 pm
CapnHector (2/27/2013)
February 27, 2013 at 3:13 pm
homebrew01 (2/27/2013)
Small chunks so I...
February 27, 2013 at 2:48 pm
CapnHector (2/27/2013)
However how many rows are in the logging table and what indexes there are will affect this a lot. Also is End_Time...
February 27, 2013 at 2:46 pm
by sub query u mean WHERE End_Time > '20130123015613' right ?
this means it will delete all data that is below 2013/23/01/01:56:03
year day month hour minute second format
and that sub query...
February 27, 2013 at 2:38 pm
DELETE FROM [CHARACTER_01_DBF_OLD].[dbo].CHARACTER_TBL WHERE m_idPlayer NOT IN (SELECT DISTINCT(m_idPlayer) COLLATE DATABASE_DEFAULT FROM [LOGGING_01_DBF].[dbo].[LOG_LOGIN_TBL])
this query should delete all the m_idplayers that dont appear in the LOG_LOGIN_TBL right ?
February 27, 2013 at 2:31 pm
133.723 rows total and i wanna keep 77.646
i wanna delete the custom amount according to the query u see above but i tried to run a count for the remaining...
February 27, 2013 at 2:13 pm
Viewing 7 posts - 1 through 7 (of 7 total)