delphi How to get a valid SQL server name in the LAN 170

Updated on technology 2024-02-09
14 answers
  1. Anonymous users2024-02-05

    function getsqlserverlist(strings:tstrings):boolean;

    The function is implemented as follows:

    function : tstrings): boolean;

    var Get a valid sql server name in the local area network sqlserver: variant;

    serverlist: variant;

    i,sercount:integer;

    beginresult:=false;

    try sqlserver := createoleobject('');

    serverlist := ;

    sercount:= ;

    if sercount>0 then result:=true;

    for i:=1 to sercount doif <>''then ;

    sqlserver := null;

    serverlist := null;

    except

    result:=false;

    end; end;

    Description: sqldmo is a one-person dcom service, only in the machine where sql is installed, just like word, sqldmo has very little information in this regard, it can complete all the functions of all sqlservr In the program unit part, you must add comctrls, comobj unit to access.

    The specific applications are as follows:

    Initialize the list box.

    if getsqlserverlist( thenbegin

    end;

  2. Anonymous users2024-02-04

    If you don't know the IP address, you need to enumerate a similar port 1433 and connect.

  3. Anonymous users2024-02-03

    Connections within the specified network segment are sequentially saved through the IP address of the connection test.

  4. Anonymous users2024-02-02

    Do you want to extract a list of database names or a list of table names?

  5. Anonymous users2024-02-01

    Ladies and gentlemen, Hello, there is a problem that makes me very angry now, I set up a project in the NT server of the Chong Brigade, and the rotation of the item can only be visited by user A. I use user B to go ashore on the client, but I already know the username and password of user B, and I use delphi to make a Fadu example, so that the Fadu example can access the files in the order that can only be visited by user A.

    The big shrimp can be judged to be able to send carbon in the snow, and he can't be grateful!!

  6. Anonymous users2024-01-31

    Ladies and gentlemen, I made a mistake just now, I should know the username and password of user A.

  7. Anonymous users2024-01-30

    There is no mistake in your operation, thoughOnly SQLSer Enterprise EditionIn other words, SQLSserver is divided into Personal Edition, Development Edition, Standard Edition, and Enterprise Edition, and only the Enterprise Edition supports remote access among these editions!

    And SQL Server Enterprise Edition can only be installed toServer Edition Windows!

  8. Anonymous users2024-01-29

    sql2000 to install SP4 patch, sql2000 installation file may have this patch, if you don't have one on the Internet.

    XP doesn't seem to be able to install the enterprise version, only the personal version.

  9. Anonymous users2024-01-28

    Computers other than development machines need to install some runtime libraries for SQL Server!

  10. Anonymous users2024-01-27

    That's what I want to ask.

    Take the IP of the machine can be checked.,It's hard to find out the "current network connection".,The great god answers!!

  11. Anonymous users2024-01-26

    Use try except end

    Try to connect, if it is successful, then the server is OK.

  12. Anonymous users2024-01-25

    Try to connect OK.

    You can also check whether port 1433 is open.

  13. Anonymous users2024-01-24

    In the properties of the Obejct Inspector of the database control, the connected point is true, and you can test that the connection is unsuccessful!

  14. Anonymous users2024-01-23

    ;showmessage('The connection is successful');

    except

    showmessage('The connection failed');

    end;

Related questions
8 answers2024-02-09

Step 1: Right-click the folder you want to share. Sharing and security points are OK There are still a few questions to be made. Step 2: >>>More

25 answers2024-02-09

Enable DHCP in the router settings. Dynamic Host Setup Protocol (DHCP) is a local area network protocol that works using the UDP protocol and has two main purposes: to automatically assign IP addresses to users on the internal network or network service provider, and to provide internal network administrators as a means of managing all computers. >>>More

7 answers2024-02-09

1.Set sharing: Select the directory you want to share, right-click - Share & Security - check 'Shared Folder', add everyone in Security and enable guest users. >>>More

15 answers2024-02-09

I used to have many similar experiences when renting a house in Beijing, most of them used P2P attack software to cause ARP spoofing, such as: network judges, P2P terminators; The solution is to run cmd first, first use ipconfig to check your IP and physical address, and then use the arp command to bind this method is indeed available, but I generally want to be convenient ** gadget, quite effective, no matter how they deceive it is useless, but the premise is to run the software before the other party has no conflict, the software name is anti arp sniffer; Or you can install a firewall Skynet to see whose IP goes directly to him; The technology is updated relatively quickly, and there may be newer defense methods now, please check the landlord on the Internet, good luck!

22 answers2024-02-09

Open AntiARP

Sniffer, check whether the gateway address is automatically obtained in the [Manage] column on the right, if not, manually enter the gateway address, and then click [Fetch MAC]. After the MAC address is obtained, click [Auto Protection]! As shown in Fig >>>More