How to know the SQL service pack and CU installed

Dear All,

I have SQL 2012 installed in my environment, i need to know what's the service pack installed and the cumulative update installed as well, is there any commands or a way to know that?

please help
RhalaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JestersGrindCommented:
Execute
SELECT @@Version

Open in new window

And compare that to the versions at the website.
http://sqlserverbuilds.blogspot.com/
0
Anthony PerkinsCommented:
I would use:
SELECT SERVERPROPERTY('ProductLevel'), SERVERPROPERTY('ProductVersion')
0
Tony303Commented:
Combination of both above.

SELECT
LEFT (@@Version,25) AS SQLServerType,
SERVERPROPERTY('Edition') AS Edition,
SERVERPROPERTY('ProductVersion') AS ProductVersion,
SERVERPROPERTY('ProductLevel') AS ProductLevel;
GO

You'll still have to cross reference the Product Version on http://sqlserverbuilds.blogspot.com/  to get the exact CU level.

T
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

RhalaAuthor Commented:
I would ask where i have to run these commands??
0
Tony303Commented:
In the SQL Server Management Studio
0
RhalaAuthor Commented:
dear Tony303,

Could you please provide more info, where exactly i can run it after i open the SQL server management Studio??
0
Anthony PerkinsCommented:
1. Run SQL Server Management.
2.  Connect to the appropriate server by entering the name and your user credentials using either SQL Server Authentication (User name and Password) or Windows Authentication.
3. Start a new query window by either
          A. Clicking on the "New Query" icon or
          B. Selecting the File |New | Query with Current Connection menu or
          C. Entering Ctrl+ N
4. Copy and paste the SELECT statement into the Query window.
5. Run it by:
        A. Clicking on the Execute" icon or
        B. Selecting the Query | Execute menu
        C. Entering F5
6. Inspect the results in the Results window.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.