1c++  SQL Native Client

      
SQL Native Client: 
http://www.sqlbooks.ru/readarticle.aspx?part=02&file=sql200510

   SQL Native Client
http://www.sqlbooks.ru/readarticle.aspx?part=02&file=sql200511
  ,   .



  
  , SQL Native Client -     (API)   ,
    OLE DB,    ODBC. 
   SQL OLE DB   SQL ODBC       (DLL),
         
 Microsoft MDAC (   ). 
SQL Native Client         
     SQL Server 2005,  , 
    (),    (UDT), 
    XML.
 , SQL Native Client  OLE DB  ODBC   ,
    ,  SQL Server 2005. (    SQL Server 2008 )

  SQL Native Client  ODBC
            SQL Native Client 
   ODBC    .  177      
 ..        .      .

..  SQL Native Client     ( vista,v7 ) +
   Native Client      (   sql2005,2008     ).
        Native Client


  Native Client sql2008 c  MS ( http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en )
 . Sql Server Native Client 10.0   2007.100.1600.22  sqlncli10.dll
 DSN  (     SQL Native Client )
    DSN     sql  ( sql2000 )
 .            .


 ,      177  SQLNative Client



           1c.exe c
      - 1   - 
    ,     .
   .    (  )   .
           .
      ReconnectNative();
    
//        ConnectionString.Format("Driver={SQL Server};Server=%s;UID=%s;PWD=%s;",
          ConnectionString.Format("Driver={SQL Server Native Client 10.0};Server=%s;UID=%s;PWD=%s;",
 1cpp.dll 
        
        .
          Windows .   
     ReconnectNative();    1  SQL Native Client 10.0

 1       

 _1()
....................
_sql_native = 0;
 .("c:\1CPP_native.dll") > 0  
   _sql_native = 1;
   1 = "c:\1CPP_native.dll"; //       
;

1 = (1);
 1 = 0 
    ("  " + 1);
return 0;	

	__1 = 1;
;
 _sql_native = 1 
   =("ODBCDatabase");
   .ReconnectNative();
;
return 1;	


     1v7 25     sql 2000 sp3a 1cpp  2.0.3.3
    .
     ,
      .


  .      .
         .



 ,         
 sql native    odbc.
   .
  1     3 . .
 1.        .
           1   .
             
    .
test2        .
 test1      .

 
 test1  4751
 test1  4755
 test1  4741

 test2  16889
 test2  17129
 test2  17543

  + RPC
 test1  4746
 test1  4753
 test1  4763

 test2  16698
 test2  17028
 test2  17429

Native
 test1  4724
 test1  4740
 test1  4725

 test2  17185
 test2  17442
 test2  17822

Native + RPC
 test1  4709
 test1  4728
 test1  4696

 test2  16276
 test2  16496
 test2  16612


    
 
 test1  4631
 test1  4630
 test1  4623

  + RPC
 test1  4626
 test1  4619
 test1  4585

Native
 test1  4567
 test1  4583
 test1  4615

Native + RPC
 test1  4599
 test1  4553
 test1  4549

 
 test2  16355
 test2  16669
 test2  17162

  + RPC
 test2  16721
 test2  17008
 test2  17358

Native
 test2  15894
 test2  16224
 test2  16517

Native + RPC
 test2  15881
 test2  16194
 test2  16501
