SQL Server Articles, SQL Server Tips, SQL Server Tutorials, SQL Server Tuning, SQL Server DBA, SQL Server Basics, Training, etc - MyTechMantra.com

SERVERPROPERTY Function T-SQL Enhancement in SQL Server 2016

Previous Page.. Begin Tutorial.. Next Page..

SERVERPROPERTY is an inbuilt function which gives you information about the server instance. Learn How To Get SQL Server Info Using SERVERPROPERTY Function in SQL Server.

This is Part 10 of 10 Part T-SQL Enhancements in SQL Server 2016 for Developers and DBAs. Click here to read it from the beginning….

Starting SQL Server 2016, this function is enhancement to include new properties such as InstanceDefaultDataPath, InstanceDefaultLogPath, ProductBuild, ProductBuildType, ProductMajorVersion, ProductMinorVersion, ProductUpdateLevel, and ProductUpdateReference.

Below mentioned are SQL Server SERVERPROPERTY() Use Cases

	SERVERPROPERTY('ProductVersion') 		AS ProductVersion,
	SERVERPROPERTY('ProductLevel') 		AS ProductLevel,
	SERVERPROPERTY('Edition') 			AS Edition,
	SERVERPROPERTY('EngineEdition') 		AS EngineEdition,
	SERVERPROPERTY('InstanceDefaultDataPath') 	AS InstanceDefaultDataPath,
	SERVERPROPERTY('InstanceDefaultLogPath') 	AS InstanceDefaultLogPath,
	SERVERPROPERTY('ProductBuild') 		AS ProductBuild,
	SERVERPROPERTY('ProductBuildType') 	AS ProductBuildType,
	SERVERPROPERTY('ProductMajorVersion') 	AS ProductMajorVersion,
	SERVERPROPERTY('ProductMinorVersion' 	AS ProductMinorVersion,
	SERVERPROPERTY('ProductUpdateLevel') 	AS ProductUpdateLevel,
	SERVERPROPERTY('ProductUpdateReference') 	AS ProductUpdateReference

For More information, see, SERVERPROPERTY Function in SQL Server.

Click the Next Page button to continue reading about Tutorial: Different Database Backup Options in SQL Server and click on the Previous Page button to revisit the previous topic .

Previous Page.. Begin Tutorial.. Next Page..

Ashish Mehta

Ashish Kumar Mehta is a database manager, trainer and technical author. He has more than a decade of IT experience in database administration, performance tuning, database development and technical training on Microsoft SQL Server from SQL Server 2000 to SQL Server 2014. Ashish has authored more than 325 technical articles on SQL Server across leading SQL Server technology portals. Over the last few years, he has also developed and delivered many successful projects in database infrastructure; data warehouse and business intelligence; database migration; and upgrade projects for companies such as Hewlett-Packard, Microsoft, Cognizant and Centrica PLC, UK. He holds an engineering degree in computer science and industry standard certifications from Microsoft including MCITP Database Administrator 2005/2008, MCDBA SQL Server 2000 and MCTS .NET Framework 2.0 Web Applications.

Newsletter Signup! Join 15,000+ Professionals

Be Social! Like & Follow Us

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.