![]() |
|
|
#14 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 306
|
and when an user log on what is happening ? IT USE STORED PROCEDURES!
Code:
set @sql = ' insert into req_charmove ( old_char_name, old_char_id, account_name, account_id, old_world_id, new_world_id, new_char_name ) select R1.char_name, char_id, account_name, account_id, ' + @world_id + ' , 100, R1.char_name + ''-' + @world_id + ''' from ( select * from ' + ' OPENROWSET ( ''SQLOLEDB'', ''' + @conn_str + ''', '' select char_id, char_name, account_id, account_name from lin2world.dbo.user_data (nolock) '' ) ) as R1 ' + ' left join ( select * from req_char (nolock) where server_id = ' + @world_id + ' ) as R2 ' + ' on R1.char_name = R2.char_name ' + ' where server_id is not null ' exec ( @sql ) Quote:
nvm ... have fun .... |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|