Code: Select all
procedure GetDbsInfo(DbConn: TMSConnection);
var
OLEDBConnection: TOLEDBConnection;
begin
if dbConn.Connected then
begin
OLEDBConnection := _TMSConn(DbConn).FIConnection as TOLEDBConnection;
FDbms := OLEDBConnection.DBMSName + ': ' + OLEDBConnection.DBMSVer;
FDbProvider := OLEDBConnection.ProviderFriendlyName + ': ' + OLEDBConnection.ProviderVer;
end;
end;
FDBMs = "Microsoft SQL Server: 10.50.1600"
FDbPRovider = "Microsot SQL Server Native Cliente 10.0: 10.50.1617.0"
Now in sdac 7 native client is not necessary, morever since i use SQL Server only i could hardcode "MS SQL Server". SO if i am not wrong all i need is to retrieve the Sql server version, client side i could mention SDAC version.
Please suggest.