Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL Server 2000 SP3

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-07-15 : 07:48:56
Vimal writes "We are trying to create a windows installer package for SQL Server 2000 with SP3.

It is working fine with one issue.
Whenever I run a Query "Select @@servername"in Query Analyzer i get the hostname of the packaging server, but not the current server hostname on which I have installed the package.

Where actually this information is getting stored.

Thanks,
Vimal"

Kristen
Test

22859 Posts

Posted - 2005-07-15 : 08:05:47
Dunno if any of these will help

SELECT ' Server Name', @@SERVERNAME
SELECT ' DBName', db_Name()
SELECT ' HostName', host_name()
GO
SELECT [Server Property] = 'MachineName', [Value] = SERVERPROPERTY('MachineName')
UNION SELECT 'InstanceName', SERVERPROPERTY( 'InstanceName' )
UNION SELECT 'ProductVersion', SERVERPROPERTY( 'ProductVersion' )
UNION SELECT 'ProductLevel', SERVERPROPERTY( 'ProductLevel' )
UNION SELECT 'Edition', SERVERPROPERTY( 'Edition' )
UNION SELECT 'EngineEdition', CASE SERVERPROPERTY( 'EngineEdition')
WHEN 1 THEN 'Personal or Desktop'
WHEN 2 THEN 'Standard'
WHEN 3 THEN 'Enterprise'
else '[' + convert(varchar(30), SERVERPROPERTY( 'EngineEdition')) + ']'
END
UNION SELECT 'LicenseType', SERVERPROPERTY( 'LicenseType' )
UNION SELECT 'NumLicenses', SERVERPROPERTY( 'NumLicenses' )
UNION SELECT 'Collation', SERVERPROPERTY( 'Collation' )
UNION SELECT 'IsClustered', SERVERPROPERTY( 'IsClustered' )
UNION SELECT 'IsFullTextInstalled', SERVERPROPERTY( 'IsFullTextInstalled' )
UNION SELECT 'IsIntegratedSecurityOnly', SERVERPROPERTY( 'IsIntegratedSecurityOnly' )
UNION SELECT 'IsSingleUser', SERVERPROPERTY( 'IsSingleUser' )
UNION SELECT 'IsSyncWithBackup', SERVERPROPERTY( 'IsSyncWithBackup' )
UNION SELECT 'ProcessID', SERVERPROPERTY( 'ProcessID' )
UNION SELECT 'ServerName', SERVERPROPERTY( 'ServerName' )
GO

Kristen
Go to Top of Page
   

- Advertisement -