LawData_PsakDin_Search.Search==>Set_Find_Res("","","","","","","","","","","","","","","856975184","","","","0","","","","","","","","*&*","*&*","","","",""," "," ","","","","","","","","99999","","","","","","","","","","","","","","0","1","","")
LawData_PsakDin_Search(Result)==> <-->SearchMofaim=<-->strMilaCol=<-->swSearchTxt=False<-->sFind_Res=Find_Res_<-->sql_WWWW=<-->sqlTblWrite=insert into Find_Res_ with (rowlock) (Type, C,Screen,SessionId,Shura) select top 10005 1, q2.C,'1',856975184,q2.shura from ( select top 10005 p.c,min(P2.Shura) as shura,p.fromdate from PsakDin p (nolock) left join Thum on Thum.C=p.Thum left join PsakDin_Type on PsakDin_Type.C=p.PsakDin_Type left join Ezor on Ezor.C=p.Ezor left join Tik_Type on Tik_Type.C=p.Tik_Type left join Arkaa_Type on Arkaa_Type.C=p.Arkaa_Type inner join (select -2 as Shura) as P2 on 1=1 where ( ( p.Zad1 LIKE '%%' and p.Zad1 LIKE '%%') or ( p.Zad2 LIKE '%%' and p.Zad2 LIKE '%%')) group by p.C,p.fromDate order by p.fromdate desc) q2 <-->strMilaCol_Mof=<-->strMilaCol_NColor=<-->
SQL ==== select count(*) as cn from Find_Res_ (nolock) where isnull(Type,0)=1 and SessionId=856975184 13............11:45:06