Solved

I need a solution for SQL Server Database object version control. I need recommendations that work with studio manage

Posted on 2014-07-21
13
197 Views
Last Modified: 2014-07-29
We are having trouble managing the database objects like store procedures.

I need suggestions for hosted version control

Thanks,
Rich
0
Comment
Question by:Rich-Alaska
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +4
13 Comments
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40211720
0
 

Author Comment

by:Rich-Alaska
ID: 40212319
Have you used the red-gate or know anyone. I've seen this one and Apex
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40212352
I did not use version-control product, but I do use another product from red-gate - "sql compare", and in the past I used SQLEdit from Apex. Red-gate product has always been solid, and I'm still using it, while Apex has been a disaster that had more bugs than useful functionality. So, to the degree that past experience is an indication of future results, if I needed this product, I would certainly try red-gate first.
0
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 
LVL 35

Expert Comment

by:David Todd
ID: 40212710
Hi,

If all build scripts are in a version control, and there is the discipline to add the appropriate comment into the script that has a version number and change comment, then it becomes fairly easy.

HTH
  David
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 40213109
>>"and there is the discipline"
no tool by itself solves the problem; configuration management requires discipline.
0
 

Author Comment

by:Rich-Alaska
ID: 40213124
Really ?

I'm looking for someone with previous hands-on experience with a product for actual feedback
0
 
LVL 27

Accepted Solution

by:
Zberteoc earned 500 total points
ID: 40213607
0
 
LVL 28

Expert Comment

by:Ryan McCauley
ID: 40227399
I know there's already an accepted answer and you're looking for something that integrates with Visual Studio, but here's some detail on the custom solution we deployed to track code changes:

http://www.experts-exchange.com/Database/MS-SQL-Server/SQL-Server-2005/A_6237-Lightweight-SQL-source-control-using-a-single-stored-procedure.html

While it doesn't allow you to track object changes to a version deployment specifically, it does track all changes (including those made on the fly in SSMS, not through a deployment), and it's a good failsafe to have in place. If you're having issues with a stored procedure returning expected results, it's just a query away to see if it's changed recently or compare it to the previous version, even if it was edited outside your code development tool.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 40227674
Ryan,

Thank you for sharing that.  It looks very promising and I will definitely look at it more in depth.  

Some questions though:
1. Have you considered updating the code to use OBJECT_DEFINITION instead of the deprecated syscomments?
2. What about broadening it to VIEWs and Functions?

Again thank you.
0
 
LVL 28

Expert Comment

by:Ryan McCauley
ID: 40227829
@ACPerkins: It currently handles everything with a line in syscomments, which includes stored procedures, functions, views, and defaults. I've considered extended it to cover tables as well, but haven't ever sat down to hammer out the code.

As for OBJECT_DEFINITION, I've also considered the switch but just never executed it - it was actually written originally for SQL 2000 and had a cursor in it (since NVARCHAR(MAX) wasn't an option), which has since been replaced. I'll actually take a look at making both of those changes - it's probably due for an update :)
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 40228103
It currently handles everything with a line in syscomments, which includes stored procedures, functions, views, and defaults.
That is good to know, for some reason I thought it just handled Stored Procedures.
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 40228111
@Anthony & Ryan

this dialog would be more useful on the article wouldn't it? It does look like something many folks could benefit from.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 40228207
Fair enough.  Please delete all off-topic comments.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
efficient backup report for SQL Server 13 79
Any benefit to adding a Clustered index here? 4 37
What does "Between" mean? 6 45
TDE for SQL Web Edition 1 39
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question