Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to quiz server name?
Message
From
16/10/1999 12:55:05
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00277255
Message ID:
00277260
Views:
27
Thanks Michael,

lnResult = SQLEXEC(x, "SELECT @@SERVERNAME", "c_servername")

Missing the first quote on result cursor name.

It works in MS SQL Server 7.0. I'll test it for 4.2.

Thanks again for the fast response.

Paul de Niverville


>You can reference the @@SERVERNAME global function.
>
>
>hConn = SQLSTRINGCONNECT()
>lnResult = SQLEXEC(hConn, "SELECT @@SERVERNAME", c_servername")
>SQLDISCONNECT(hConn)
>
>-Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform