views:

753

answers:

4

Is it possible to get the same level of syntax highlighting in Visual Studio 2008, that SQL Server Management Studio has? This is regarding T-SQL.

For example SSMS has separate highlighting options for operands, system functions etc, while Visual Studio 2008 only seems to have one 'keyword' for T-SQL.

A: 

SSMS is a specialist tool to manage databases.

VS is a generalised tool for a variety of langauges and project (SSIS, BI, XML, HTML, c#, VB etc etc)

Why not use the correct tool for the job? At least: View query plans? See results in grid/table mode? ctrl+ shortcuts?

gbn
TFS is the main reason, is it possible to use SSMS with TFS? AFAIK there's not going to be a 2008 version of SSMS, those seems to have merged into VS 2008.
jandersson
I can't say.. not used TFS. And SQL 2008 has SSMS
gbn
+1  A: 

See this: related question

To get a better level of control you will have to write an addin and a parser, both of which are very tricky.

VS 2010 will have MEF and WPF which means that writing addins which change the visuals will be significantly simpler.

If you are looking for a simpler framework to write this kind of stuff in VS 2008 have a look at DXCore.

Sam Saffron
+1  A: 

Not sure if this is what you're looking for but someone did come up with an app that will take your VS color settings and convert them over to ones that will work in SQL Server Management Studio. You can find the post about it here.

Brian Surowiec
A: 

I use SQL 2008 and VS 2008 DB Pro edition. And what I often do is writing SQL in SSMS and copy & paste to VS.

Ken Yao