[SQL SERVER 2005] équivalent Lock table
	
	
		Bonjour,
je suis en train de migrer mes applis sous informix vers SQL server 2005.
Mon problème c'est que je ne trouve pas d'équivalence lock table sous SQL SERVER 
Voilà mon code qui fonctionnait trés bien sous informix :
	Code:
	
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 
 | try
    with (Query_General) do
    begin
      close;
      sql.clear;
      sql.add('LOCK TABLE imlim IN SHARE MODE');
      if not (prepared) then
      begin
        prepare;
      end;
      execsql;
    end;
  except
    on E:Exception do
    begin
      AfficheSedIncident('CLO01 -> ', E.Message, 0, 0);
    end;
  end; | 
 Valoji.
Vista pro
SQL SERVER 2005
Delphi 2007