SQL Server Name

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
RKLawton
Posts: 7
Joined: Tue Oct 10, 2017 12:44 pm

SQL Server Name

Post by RKLawton » Fri May 07, 2004 10:06 am

Is there a way to print the server name from where the report is getting the data from?____Tried the following expressions:__a) SQLEXP( "host_name()" )__b) SQLEXP( "SERVERPROPERTY( ^SERVERNAME^ )" )__*R&R will not even preview the report having the above calculated field expression on the report.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: SQL Server Name

Post by kfleming » Mon May 10, 2004 5:10 pm

I tried a calc using SQLEXP("host_name()")and got no error but no value. Yet when I use Query Analyzer, the same expression does bring back the name of the server.____It is as if it is bringing back a zero length result...__I am not sure that there is any alternative available that would get you what you want.____Kathleen__R&R Support__

Post Reply