"Ovchinnikov Vasily" ...
> О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 1.5 О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ 3.0?
0. О©╫О©╫О©╫О©╫О©╫О©╫ fb3:
AuthServer = Srp, Win_Sspi, Legacy_Auth
#AuthClient = Srp, Win_Sspi, Legacy_Auth
О©╫.О©╫. AuthServer О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ Legacy_Auth О©╫О©╫О©╫О©╫О©╫О©╫, AuthClient - О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫
1. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ fb3: firebird -a -m
2. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ fb15 О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫: fbserver -a -i -p 3150
3. О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 1.5 (О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 1.5) О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 3.0
D:\FB15\bin>isql localhost:F:\tpcr\db\FB30-EXT.TPCR.1.FDB -user sysdba -pass masterkey
Database: localhost:F:\tpcr\db\FB30-EXT.TPCR.1.FDB, User: sysdba
SQL> show version;
ISQL Version: WI-V1.5.2.4731 Firebird 1.5
Firebird/x86/Windows NT (access method), version "WI-T3.0.0.30422 Firebird 3.0 Extents"
Firebird/x86/Windows NT (remote server), version "WI-T3.0.0.30422 Firebird 3.0 Extents/tcp (w2k3-x64)/P10"
Firebird/x86/Windows NT (remote interface), version "WI-V1.5.2.4731 Firebird 1.5/tcp (w2k3-x64)/P10"
on disk structure version 12.0
О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ (remote interface) О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ 1.5, О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ (remote server) О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 3.0
4. О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 3.0 (О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 3.0) О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 1.5:
F:\test>isql localhost/3150:D:\FB15\examples\EMPLOYEE.FDB
Database: localhost/3150:D:\FB15\examples\EMPLOYEE.FDB
SQL> show version;
ISQL Version: WI-T3.0.0.30422 Firebird 3.0
Server version:
Firebird/Windows/Intel/i386 (access method), version "WI-V1.5.2.4731 Firebird 1.5"
Firebird/Windows/Intel/i386 (remote server), version "WI-V1.5.2.4731 Firebird 1.5/tcp (w2k3-x64)/P10"
Firebird/Windows/Intel/i386 (remote interface), version "WI-T3.0.0.30422 Firebird 3.0/tcp (w2k3-x64)/P10"
on disk structure version 10.1
О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ 3.0, О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 1.5
5. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ execute statement О©╫ 3.0
execute block returns (c int)
as
declare sql varchar(255) = 'select current_connection from rdb$database';
begin
-- О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 3.0 -> 3.0
execute statement sql
on external 'localhost:F:\tpcr\db\FB30-EXT.TPCR.1.FDB'
as user 'sysdba' password 'masterkey'
into :c;
suspend;
-- О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 3.0 -> 1.5
execute statement sql
on external 'localhost/3150:D:\FB15\examples\EMPLOYEE.FDB'
as user 'sysdba' password 'masterkey'
into :c;
suspend;
end
О©╫сё О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 2 О©╫О©╫О©╫О©╫О©╫.
--
О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫
PS О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ 3 О©╫О©╫ О©╫О©╫О©╫О©╫дёО©╫:
D:\FB15\bin>isql localhost:F:\tpcr\db\FB30-EXT.TPCR.1.FDB -user sysdba -pass masterkey
Statement failed, SQLCODE = -902
Your user name and password are not defined. Ask your database administrator to set up a Firebird login.