on ‎2011 Dec 13 2:11 AM
Hello again, Is there a way in SQL Anywhere to uniquely identify the machine that runs the database? Is it possible to get mac address somehow? Or does there exist some server property which is different in every physical machine (and does not change through machine's life cycle)? Or is it possible to get external IP address?
The goal is to generate an md5 hash (password) from a date (system end of life) and some other values and one of these values should be unique so that the password wouldn't work if copied to another instance of the system.
Thanks in advance.
Request clarification before answering.
Well, I'm trying to find an answer myself but nothing came to my head simpler than this yet:
call xp_cmdshell('getmac > tmp_mac.txt'); select cast (xp_read_file('tmp_mac.txt') as long varchar) into @s; // parse @s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.