Hi, what is a best way to get server address and database name of current connection from C/SIDE (database on SQL)?
I found that way:
//svr Record Server
//db Record Database
srv.FINDFIRST;
WHILE NOT srv."My Server" DO
srv.NEXT;
dbs.FINDFIRST;
WHILE NOT dbs."My Database" DO
dbs.NEXT;
Message(srv."Server Name");
Message(dbs."Database Name");
The problem is, that this method spend several second.
Anyone know better way to do this?
Answers
Or CONTEXTURL system variable.
or
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Sorry for my Old School Menu :oops:
http://www.BiloBeauty.com
http://www.autismspeaks.org
3 Hot chicks - anybody got a better logo? 8)
www.CosmeticSolutions.com
http://www.amazon.com/b/105-1417815-454 ... 54EXMVZHXW
http://www.BiloBeauty.com
http://www.autismspeaks.org
... i'm ever distracted =P~ (jammi)