![]() |
|
|
#1 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
The warning message cache spams when a user without time data logs in:
Quote:
I wrote this in about 2 minutes and didnt bother to make it quick to run, because you only need to do it once. It takes about 5 minutes on SQL 2000 and 15 seconds on 2005. Code:
Declare @acc int Set @acc = 0 WHILE(@acc < 150000) BEGIN INSERT lin2world.dbo.time_data (account_id, last_logout, used_sec) VALUES (@acc, '1/1/2004 1:00:00 AM', '0') Set @acc = @acc + 1 END Edit: This should leave current time data which already exists in tact, SQL errors and continues when a duplicate row is detected in INSERT. |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|