How To retrieve servername and servertype?

Administrator
Member, Moderator, Administrator Posts: 2,506
How To retrieve servername and servertype?
http://www.mibuso.com/howtoinfo.asp?FileID=2
Discuss this How To here.
http://www.mibuso.com/howtoinfo.asp?FileID=2
Discuss this How To here.
0
Comments
-
not clear enough, please try to simplify it so i can understand0
-
In a introduction stage I was need to understand, what base I Use. To clean understand this, I use another form of this function, and plase it's result to main form (330).
On modification of your variant:GetServerName() : Text[30] ltxtTemp := CONTEXTURL; i := STRPOS(ltxtTemp,'servername='); IF i > 0 THEN BEGIN ltxtTemp := COPYSTR(ltxtTemp,i + 11,999); i := STRPOS(ltxtTemp,'&'); EXIT(COPYSTR(ltxtTemp,1,i - 1)); END ELSE BEGIN i := STRPOS(ltxtTemp,'database='); IF i > 0 THEN BEGIN ltxtTemp := COPYSTR(ltxtTemp,i + 9,999); i := STRPOS(ltxtTemp,'&'); EXIT(COPYSTR(ltxtTemp,1,i - 1)); END ELSE EXIT(''); END;
0 -
How to get server date from client machine0
-
Thankyou, I'd forgotten about this trick.
BTW: if slaha is still around ...CREATE VIEW [dbo].[Server Time] AS SELECT '' AS [Key], CURRENT_TIMESTAMP AS ServerTime
OBJECT Table 50000 Server Time { OBJECT-PROPERTIES { Date=23/02/09; Time=21:14:28; Modified=Yes; Version List=; } PROPERTIES { DataPerCompany=No; LinkedObject=Yes; } FIELDS { { 1 ; ;Key ;Code10 } { 2 ; ;ServerTime ;DateTime } } KEYS { { ;Key } } CODE { BEGIN END. } }
Just do a GET on the table.Robert de Bath
TVision Technology Ltd0 -
You should make a tips/tricks topic for this one!rdebath wrote:Thankyou, I'd forgotten about this trick.
BTW: if slaha is still around ...CREATE VIEW [dbo].[Server Time] AS SELECT '' AS [Key], CURRENT_TIMESTAMP AS ServerTime
OBJECT Table 50000 Server Time { OBJECT-PROPERTIES { Date=23/02/09; Time=21:14:28; Modified=Yes; Version List=; } PROPERTIES { DataPerCompany=No; LinkedObject=Yes; } FIELDS { { 1 ; ;Key ;Code10 } { 2 ; ;ServerTime ;DateTime } } KEYS { { ;Key } } CODE { BEGIN END. } }
Just do a GET on the table.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions