convert 'time' to am\pm sql server 2014

Hi Guys
i am trying to convert the Time data type to show Am\PM, i found some solutions on the net Ex.
CONVERT(VARCHAR(5), TripTime, 108) + ' ' + RIGHT(CONVERT(VARCHAR(30), TripTime, 9),2) 

Open in new window

 But this returns the Time on 24 hour format and adding a trailing AM\Pm (21:00 PM)

Any help would be appreciated
LVL 1
Joseph KrauszCEOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Lionel MMSmall Business IT ConsultantCommented:
I'm sorry I can't help but I do suggest you add some topics to your questions, may I suggest either and/or  Windows Batch, VB Script, scripting languages so you can get your question to users that are experts in this. And since this is a SQL scripting question you may want to add the SQL topic area
0
Joseph KrauszCEOAuthor Commented:
as i am new to SQL server i were just about to make my research and by the end i have changed 'Time' to 'Date\Time' and MY problem solved (Explanation: MS Access looks at the 'Time' data type as it would've be a 'String' that's why it's hard to deal with it, so not using the 'Time' Data type is obviously the only solution)
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
Joseph KrauszCEOAuthor Commented:
as explained
0
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
Windows Server 2012

From novice to tech pro — start learning today.