Key problems in distributed database Delphi

xiaoxiao2021-03-06  13

First, DCOM configuration (XP as server)

1. Run the DCMCNFG program on the NT server for DCOM configuration.

2. Enter the overall default property page of the DCOM, enabling "Enable distributed COM on this computer" to hook, change the default identity level to "None".

3. Enter the overall default security mechanism page of DCOM, confirm that the default access permissions and default start permissions are not Everyone, if you don't get out, the application server does not start normally. (Can consider increasing Guests)

4. In the regular page, double-click your application server to open your application server DCOM property settings.

5. Change the identity verification level in the regular page to "None".

6. Select "Run Applications on this computer" on this computer.

7. In the security page settings, select "Use Custom Access Permissions", edit each permission, join the Everyone to the user list.

8. In the identity page, select "Interactive User".

9. The Guest user of NT cannot be disabled.

10. Use a FREEDOM user (in computer management), so that it is affiliated to Administrator.

Note: The key is, in the control panel - the properties of the Administrators user in the user and password - add Power Users that is affiliated to the plum, other users do this, Guest users are absolutely not disabled

XP Configuration: Under XP, the same, but don't do what you pay attention to, you only need to join the default access permission and default start permission in the DCOM configuration, you will join Everyone You can

Third, the setting of the ODBC data source

Note: (1) User Data Source DSN:

Set up the user data source, select Use Windows System authentication, connect the local SQL Server agent, and the default database BIMS.

(2) System DSN

The client can be used only after setting the data source to the system DSN.

Fourth, other settings

1, copy midas.dll to / windows (winnt) / system32 /

2, copy stdvcl40.dll to / windows (winnt) / system32 /

3, use the Tregsvr.exe under the Delphi installation directory to register the above two files

Format: Tregsvr -t /windows/system32/midas.dll

4, possible, run server.exe on the client, the key is that the registration information can consider the registry change.

转载请注明原文地址:https://www.9cbs.com/read-49199.html

New Post(0)