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

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.

Related

How to add an XSD to SQL database project in Visual Studio 2015?

I have the following problem: I have little programming skills and this is the first time I've opened Visual Studio. My goal is to directly import an XSD schema into a preexisting SQL database or a new one. I already have the defined XSD, don't need to do it from scratch. I've researched the problem and found that is somehow possible but the workaround seems to be efficient only in previous versions of the Visual Studio.
Proposed answers: this stackoverflow question or the
walk through proposed by Microsoft. Another option is this tutorial/extensive explanation, but since I have no programming background and the last part of the tutorial was never published, it is not enough.
Do you have any ideas how to do that or if the aforementioned walk through works somehow?(I am stuck at the referencing step). Do you know any other ways to get past this in VS 2015?
Thanks!

how to use phpmyadmin database in visual studio 2010?

I have my database in phpmyadmin.
Now I have to use that database in SQL server database.
But I cannot import .SQL file into visual studio 2010.
So please give me a solution so that I can use that database and perform CRUD operation also.
Okay so im trying to help you dude. but first, you must understand that phpmyadmin is just an RDMS environment for accessing, configuring, managing, administering, and developing all components of the RDMS. So what does it mean? you can still work on visual studio probably c# or vb (i guess) so you can perform a CRUD operation. How? these are the things you need to do:
know how to connect your prepared .net language (c# or vb) - you might need to look at Connector/NET mysql. you can google, its free.
familiarized on the said library.
find some tutorial on how to do crud operation. maybe this article is great for you. Good Luck

outlook addin: how to I develop my own one?

I am afraid this is an untypical "unspecific" question...
I have a lot of code in Outlook, and this should also be used by other users. Up to now I am exporting the modules and forms from my Outlook, and import them on the other machines. But this of course is quite a hassle on every change.
So I thought about turning them into an adding - easy to do for example for Excel...
I have done some Research now and the following questions are left:
is it right that the only software really useful is Visual Studio?
i did download the Trial Version of Visual Studio, and digged into it... but it seems I can not copy/paste the existing code, but there are a lot of changes necessary in the code - is that right? Is there a Kind of "translation" for the most common things?
Thanks for your answers,
Max
Not sure if by trial version you mean Visual Studio Express which you can find here:
http://www.microsoft.com/visualstudio/eng/downloads#d-2013-express
In any case this should allow you to copy/paste your code. Also if you are a student/academic you can download the full version for free (https://www.dreamspark.com).
If you don't want to use VS, you could try SharpDevelop and NetOffice as an alternative.
I wrote a series on my blog about how to create an add-in for Outlook. There are quite specific instructions on how to get started, pitfalls I encountered along the way and tips/tricks to help you.
Here is where the series starts: http://www.midniteblog.com/?p=6. You can see all the links for the series here: http://www.midniteblog.com/?s=outlook.
Hope this is helpful for you!
P.S. You definitely want to use Visual Studio for a project like this because of the nature of Microsoft product integration.

Where does this SSMS context menu option to script data come from?

The image below shows the context menu I'm asking about. I've had it in SSMS 2008 R2 for so long I thought it was a feature of SSMS. Today I'm working with two other developers and it turns out they do not have this nice little feature, in fact they've never seen it. So now we are wondering where it came from. Is it an add-in? Is it turned on by some obscure feature?
That is a feature not supported by Microsoft. It is an Addin for SSMS (SQL Server Management Studio).

Visual Studio syntax highlighting

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.