wish i knew how to do this
wish i knew how to do this
Very nice tweak. Thanks John.
Thanks John , very usefull release .
^^ very useful.
Useful release,Thanks :)
Msg 468, Level 16, State 9, Procedure WZ_DISCONNECT_MEMB, Line 10
Cannot resolve the collation conflict between "Chinese_PRC_CS_AS" and "Chinese_PRC_CI_AS" in the equal to operation.
Please help with this error
try this
Code:CREATE PROCEDURE WZ_DISCONNECT_MEMB @memb___id varchar(10) AS Begin set nocount on Declare @find_id varchar(10) Declare @ConnectStat tinyint Set @ConnectStat = 0 Set @find_id = 'NOT' select @find_id = S.memb___id from MEMB_STAT S INNER JOIN MEMB_INFO I ON S.memb___id = I.memb___id COLLATE DATABASE DEFAULT where I.memb___id = @memb___id if( @find_id <> 'NOT' ) begin update MEMB_STAT set ConnectStat = @ConnectStat, DisConnectTM = getdate(), TotalTime = TotalTime+(DATEDIFF(mi,ConnectTM,getdate())) where memb___id = @memb___id -- TIMEONLINE MOD by john_d end end GO
thx jhon !
this works on 97d?
it will since since Mu dev began the database structure has been almost the same.
dont work on 97d ...
try deleting all lines from WZ_DISCONNECT procedure and paste:
Code:CREATE PROCEDURE WZ_DISCONNECT_MEMB @memb___id varchar(10) AS Begin set nocount on Declare @find_id varchar(10) Declare @ConnectStat tinyint Set @ConnectStat = 0 Set @find_id = 'NOT' select @find_id = S.memb___id from MEMB_STAT S INNER JOIN MEMB_INFO I ON S.memb___id = I.memb___id COLLATE DATABASE_DEFAULT where I.memb___id = @memb___id if( @find_id <> 'NOT' ) begin update MEMB_STAT set ConnectStat = @ConnectStat, DisConnectTM = getdate(), TotalTime = TotalTime+(DATEDIFF(mi,ConnectTM,getdate())) where memb___id = @memb___id -- TIMEONLINE MOD by john_d end end GO
john can you give me the script referal systen
because in first post you write you use this script to referal system can you give me it? please
doesn't work with 97d db :S its totally diferent from the wz_disconnect_memb of the 97d... :S
Good Release 10/10