17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A: System Functions<br />

646<br />

Property Name Values Returned<br />

IsIntegrated<br />

SecurityOnly<br />

To determine if the server is in integrated security mode:<br />

1 — Integrated security<br />

0 — Not integrated security<br />

NULL — Invalid input or error<br />

IsSingleUser To determine if the server is a single-user installation:<br />

1 — Single user<br />

0 — Not single user<br />

NULL — Invalid input or error<br />

IsSync<br />

WithBackup<br />

To determine if the database is either a published database or a distribution<br />

database, and can be restored without disrupting the current transactional<br />

replication:<br />

1 — True<br />

0 — False<br />

LicenseType What type of license is installed for this instance of <strong>SQL</strong> <strong>Server</strong>:<br />

PER_SEAT — Per-seat mode<br />

PER_PROCESSOR — Per-processor mode<br />

DISABLED — Licensing is disabled<br />

MachineName Returns the Windows NT computer name on which the server instance is<br />

running.<br />

For a clustered instance (an instance of <strong>SQL</strong> <strong>Server</strong> running on a virtual<br />

server on <strong>Microsoft</strong> Cluster <strong>Server</strong>), it returns the name of the virtual server.<br />

NumLicenses Number of client licenses registered for this instance of <strong>SQL</strong> <strong>Server</strong>, if in<br />

per-seat mode.<br />

Number of processors licensed for this instance of <strong>SQL</strong> <strong>Server</strong>, if in perprocessor<br />

mode.<br />

ProcessID Process ID of the <strong>SQL</strong> <strong>Server</strong> service. (The ProcessID is useful in identifying<br />

which sqlservr.exe belongs to this instance.)<br />

ProductVersion Very much like Visual Basic projects, in that the version details of the<br />

instance of <strong>SQL</strong> <strong>Server</strong> are returned, in the form of ‘major.minor.build‘.<br />

ProductLevel Returns the value of the version of the <strong>SQL</strong> <strong>Server</strong> instance currently running.<br />

Returns:<br />

‘RTM’ — Shipping version<br />

‘SPn’ — Service pack version<br />

‘Bn’ — Beta version<br />

<strong>Server</strong>Name Both the Windows NT server and instance information associated with a<br />

specified instance of <strong>SQL</strong> <strong>Server</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!