Visual Studio syntax highlighting - sql

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.

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.

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.

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.

Related

Can the SSMS editor be re-used in your own application, or is there an alternative?

I would like to have IntelliSence or code completion, and syntax highlighting for SQL queries in my own .NET application.
Is it possible to use the SQL Server Management Studio's editor similar to the way you can use the SMO APIs?
Are there open source control(s) that can be used?
I have found code completion / syntax highlighting controls, but SQL is a funny beast because of the column / table aliases.
No. It is not possible to use SQL Server Management Studio's editor in your own application.
ScintillaNET is an open-source alternative that supports MS Flavoured TSQL (and Postgre SQL) highlighting out of the box.

Visual Studio 2010's SQL Schema & Data Compare - Can it be accesed from code?

The other day I tried out VS2010's SQL compare tools and thought they were awesome.
I am wondering if there is any way to harness these tools in code written in VS 2010.
Here is a MSDN forum thread about this. The answer points to this post which outlines how to use this via DTE. It is targeted at 2008 but I would think it is still applicable.

is there a SQL Prompt like plugin for VS 2008

I like to use the SQL Tools in VS but I would like to have some intellisense for SQL, with sql manager I can get the Redgate SQL prompt but I would like to stay in VS, any Ideas?
Edit:
is there anything other then Redgate SQL prompt? that dose error checking like the way R# or dev express?
Red-Gate SQL Prompt (at least more recent versions, I believe 3.x and up) also works inside Visual Studio. I don't think you need another extra tool, really.
See the Red-Gate SQL Prompt feature page
It says clearly:
Integrates with SSMS, SSMS Express, Query Analyzer and Visual Studio
Marc
With Red Gate SQL Prompt you also will stay in VS and this product supports now just VS 2008.
SQL Prompt web page
If you don't like it I can propose you to try SQL Assist or SQL Complete. I use this tool and as for me it's really reliable one.
Apart from tools mentioned above there is a pretty neat tool from ApexSQL called “Complete”. I think this article can explain further http://blog.apexsql.com/ssms-intellisense-add-in-and-ssms-intellisense/
And the tool itself
Yes, SQL Prompt 3.x and 4.x beta for sure work with Visual Studio 2005/2008
You can download the 4.x beta to play with, and visit their forum if you have any question/problem. Red Gate people are very nice and helpful
http://www.red-gate.com/MessageBoard/viewforum.php?f=98

Using LINQ with express version of visual studio

Is it possible to use LINQ in the express version of visual studio? I am planning on refactoring my project to use LINQ, but I am the only person in my group that has a copy of visual studio pro. Will that cause any problems if someone using the express version has to modified my code?
Edit
I realize that the graphical tools are not available in the express version, so my question does not pertain to those. I am more interested in the actual code, which I assume will work
Yes, it will work.
From the Visual C# Express 2008 page:
Build applications using LINQ (Language Integrated Query) which adds data querying capabilities for SQL Server, XML, and objects to Visual C#
I found the same information on the VB Express 2008 page
http://www.microsoft.com/express/vb/Default.aspx
Build applications using LINQ (Language Integrated Query) which adds data querying capabilities for SQL Server, XML, and objects to Visual Basic

Is there any trick that allows to use Management Studio's (ver. 2008) IntelliSense feature with earlier versions of SQL Server?

New version of Management Studio (i.e. the one that ships with SQL Server 2008) finally has a Transact-SQL IntelliSense feature. However, out-of-the-box it only works with SQL Server 2008 instances.
Is there some workaround for this?
There's no known trick 'in the wild' for getting around this, other than using CTP-6 of SQL Server 2008 (in favour of the RTM).
the reasons for removing backward compatability (and a lot more discussion besides) are provided at the relevant feedback in microsoft connect.
edit: sorry i don't know where this ctp is available, if at all
Has anyone tried either patching SSMS not to check the version (perhaps try looking at the binary differences between CTP 6 and RTM?), or patching SS 2005 to pretend to be 2008?
Unclean, I know, but I don't see any other way.