SVN client for SQL Server Management Studio 2005 - sql

I have installed Tortoise SVN and AnkhSVN, but neither one shows up in my SQL Server Management Studio 2005 under the Source Code Control options.
I know they work because all my Visual Studio projects are working fine.
Do I have to do install a different SVN client to integrate to SQL Server Management Studio?

There's no SVN integration for SSMS from either TortoiseSVN or AnkhSVN. The only viable option is to use RedGate SQL Source Control. Or create a Database project in Visual Studio and keep all the scripts and structure in there, forcing all the developers modify those files first.
Personally, I use ScriptDB and run it on an hourly basis with svn auto-commit of changes made to the database so that I can keep track of what's changing.

I use Agent SVN which is a MS-SCCI plug-in and it works fine with SSMS.
http://www.zeusedit.com/agent/ssms/ms_ssms.html

Have you looked at Red Gate's SQL Server Managemnt Studio SVN client?
http://www.red-gate.com/products/SQL_Source_Control/

Related

Databases and Visual Studio 2013

I am collaborating on a project with several other people in Visual Studio 2013. We are using Tortoise SVN to share the project so that we are all working on the same files. I was in charge of constructing the database, which I did. But after making the database in the SQL Server Object Explorer under (localdb)\Projects(SQL Server 11.0.3000-THE-DRAGON-DEN\Dragonfett), I can not seem to find the database in the solution folder for the project.
How do I get the database into the project folder?
That is merely a link to a SQL Server database.
If you want the database in the solution folder then you will need some form of project. SQL Server Data Tools (SSDT http://msdn.microsoft.com/en-us/library/hh272686(v=vs.103).aspx) is what you are looking for. AFAIK this is installed with VS2012 and VS2013. For VS2010 you will need to install SSDT manually.
Select File->New->Project and in the templates look for SQL Server Database Project under the SQL Server Template group. SSDT has a great import facility which will let you import the contents of an existing database with no fuss. SSDT as a project can then be checked into and controlled by SVN.
Other that that, Installing, configuring and using SSDAT is beyond the scope of the question. I would suggest you do a bit of homework and read up on SSDT and how it works.

SQL Server Scripts 2012 Project into Team Foundation Server 2012

I have a SQL Server Scripts 2012 Project with multiple SQL queries and stored procedures.
We use Team Foundation Server 2012 to manage our source code for our Visual Studio Solutions.
How can I check in a SQL Server Scripts 2012 Project into TFS? If it is not possible how can I manage source control on this and allow multiple developers access to it?
You have a few options, here are two that I have used.
1: Download the TFS 2012 MSSCCI Provider:
This plugin allows you to access TFS from Microsoft SQL Server Management Studio. So you can easily add and check in\out those ssmssln and ssmsproj files from TFS.
64bit Download - 32bit Download
Once installed, in SSMS go to Tools-> Options -> Source Control to select the plugin.
If you don't see it then you probably need to install the other bit version.
After you have selected the plugin in the options window of SSMS, you will have a new menu option under "File" that will allow you to Add\Open\Change items in TFS from Sql Management Studio.
To add your Scripts solution using the MSSCCI plugin:
Open the project in SSMS, go to File -> Source Control -> Add Solution to Source Control
2. Add through VS using the "Add files to Source Control"
See here: To add a file that is not in a solution to version control
I'm not quite sure why it would be a challenge to add the sql server scripts to TFS just as any other file in your visual studio solution. I've done this in a lot of projects with great success.
What is a challenge with databases though is to find a good strategy to handle branches and database versioning. I recommend that you have a look at Entity Framework Code First Migrations which handles this very nicely. Another approach is to use Chuck Norris Round house which is a more script based solution:
RoundHouse
https://code.google.com/p/roundhouse/
Code First Migrations.
http://msdn.microsoft.com/en-us/data/jj591621.aspx
If you start from scratch I would recommend the Code First Migrations approach, but if you allready have a lot of .sql files the second can work very well.
The latest versions of MSSCCI still don't seem to work with SSMS 2012 - you'll need an older 32 bit version, here: http://visualstudiogallery.msdn.microsoft.com/en-us/bce06506-be38-47a1-9f29-d3937d3d88d6
Once this is installed you'll be able to see the "Team Foundation Server MSSCCI Provider" in the SSMS Source Control Plug-In selection.

Unable to find the profiler in SQL Server 2005

I am facing the problem of finding SQL Server Profiler in SQL Server 2005. Is there are any options to enable it or to reinstall it?
Two possibilities.
First, you're running Sql Server Express. That doesn't come with Profiler. In that case, you can use this tool, which is an open source version that is pretty good. I've used it a few times myself (not associated with the project, spamflaggers).
Else, you need to rerun the installer and add Profiler. If it didn't get installed, it has to be installed. That's the general state of things in the software world.
You can select SQL Server Profiler from the Tools menu in SQL Server Management Studio.
The file is located on my computer under:
"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\PROFILER90.EXE"
If its not there you may have to select the client tools from the SQL Server installer.
Simply navigate to add/remove programs, and click 'change' on the SQL Server 2005.
I had the same problem and it was because I had installed Management Studio Express before I installed the full version. You can't have more than one instance of Management Studio, therefore, it won't install the full version over the express version. I found that I had to remove the express SSMS and then install the full SSMS:-
Go to Control Panel/Programs and Features (in Windows 7)
At "Select an instance", choose "Remove Shared Features Only"
Choose "Management Tools - Basic"
You can then run the installer again and install the FULL SSMS. Dunno if this was the problem you were having, but hopefully someone finds it useful.

Where to download SQL Server Management Studio 2008 (not express version)?

Where can I download that? All I can find is the express version. I bought the SQL Server Developer 2008, but the Studio wasnt installed along with it...
Thanks
SSMS is ALWAYS part of any non-express edition including DEV edition (I mean you dont need to download it seperately).
When you install SQL Server Dev. (or any other non-express edition), during setup process you will come across a screen where you can select which components to install (e.g. SSIS, SSRS, SSAS, BIDS, BOL etc). In that step you will need to select SSMS to get it installed.
For some reason if you have skipped that step you can run setup again and just install SSMS only.
But I dont think there is any seperate download available for "normal" SSMS.
This is an annoyance because access to SQL Server from a workstation is necessary and the only way (as previous posters mentioned) is to use the full SQL Server licensed installation package.
You'll run the setup to install as though you're installing the full database. In some cases, setup will detect that you'll need to first install some dependencies. When you come to the Feature Selection, you can select the Management Tools only.
http://i.stack.imgur.com/ochff.gif
You can download eval version from this link -
http://www.microsoft.com/sqlserver/2008/en/us/trial-software.aspx
The express edition are the free versions.
The express version is the free version. If you want another version you need to buy it. My best guess is that it is included in one of those packages on in the microsoft store.
EDIT
According to a forum:
I`m not sure what you mean - you ask
for Management Studio and there is a
download link for SQL Server
Management Studio Express.
Or will you buy a SQL Server Standard,
Enterprise or Datacenter Edition -
then you have the "normal" SQL Server
Management Studio.

SQL Server Management Studio

Is it possible to install Management Studio by itself, and if so, is there a separate download/install exe for it?
Yes, use custom install and chose not to install the database engine.
Microsoft SQL Server 2005 Management Studio Express
and 2008 added:
Microsoft SQL Server 2008 Management Studio Express
I believe that there is one installation, but you can pick the management tools (and not install a server).
BTW - the 2008 installer takes forever and is way more complicated than the 2005 installer.
You can get Microsoft SQL Server 2008 R2 RTM - Management Studio Express here.
I believe that if you install SQL Server Management Express, you can't manage all the objects you can in the version you get from installing from the media. For example, you can't manage integration services or analysis services with management express.
The only way I've ever been able to install it is from the media; but like a previous post mentions, you don't have to install the database engine.
It's confusing for new DBAs that's for sure. I spent a significant amount of time trying to find a "SSMS.msi" on microsoft's website before I figured out it was on the media, and could be installed without installing the database engine; though you have to go to "install SQL Server Stand-alone" to get to it.
Fortunately, I'm still having a hard time trying to keep the server version and all the developers that need SSMS on the same version. If anyone knows of a way to make an .MSI (or download) one that contains all the correct versions of A.S./S.S.I.S/Database Engine I would love to hear it.
+1 for RQDQ. For 2008 I think you need 3.5 .Net Framework also. And yes it takes forever doing all kinds of validations.
you can download management studio by itself, but when you install Microsoft SQL Server 2008 R2, management studio is also installed