I am working on project (VS2010 .NET) and have two SQL Server databases, Dev and Prod.
I make all database structure changes in the Dev database and after testing I apply the same changes to the Prod database.
Maybe someone could suggest schema comparison tool which could help me to compare structure and apply changes.
RedGate makes excellent tools for the purpose.
I know of two really good tools:
Red-Gate SQL Compare
ApexSQL Diff
You can also get SSDT (free) here - more about SSDT on my blog.
although you are working in 2010, if you can get hold of VS 2012
go to SQL (menu item) -> Schema Compare. Click on Select Source on the left, and select the dev database. Select the production database on the right.
Then click on the generate script icon (next to the Update icon, it looks more or less like a music icon). That will generate the update script. You may also untick any of the changes that you do not want to include in the script. And it is ... 'free' if you happen to own Visual Studio 2012
Related
I'am staring using Oracle Developer Tools for Visual Studio Code but miss something versus what i did in past with sql server tools:
Let's say i have a table whit this name
T_PREFIX_TABLENAME
I'am used to type part of TABLENAME and find it: simply typiyng "TABL" make intellisense working and finding corrispondent result with a like operation, with ODT this does not work and i have to type the initial part of the table name to find it, let's say "T_PREFIX_TABL" to find same results
Since all table have a long common prefix (databas is not mine so cannot change this) i have to write large part of text making intellisense quite unuseful.
I try even Oracle Developer Tools for Visual Studio 2019 with visual studio 2019 professional but in this case intellisense simple does nothing.
I try other way: drag & drop table or comlumn from server explorer to query windows but in visual studio 2019 an entire select query in created while in vs code nothing appens.
Is there a way to have intellisense smart like the sql server tools one's?
Thanks
I believe this issue with autocomplete incorrectly doing a "begins with" search, was a bug introduced in Oracle Developer Tools for VS Code version 19.3.3. It has since been fixed in 19.3.4.
I searched many times, but there was no answer from MSFT or any other communities for this issue.
I have the Community edition 2019. Tabular model explorer is greyed out in the View->Toolbar->Other windows. I have no luck with VS 2017 EE as well, the same problem there too.
I could able to use the Import Datasource button on the Model menu and pull the source tables for building, however, Tabular model explorer and the data source folders are missing or not being able to use from a project perspective. Since the tabular model explorer is missing, I couldn't able to use the data transform window for each table and thus literally making a stop on development.
This is really annoying.
Here is VS 2019 system info
Microsoft Visual Studio Community 2019
Version 16.5.3
VisualStudio.16.Release/16.5.3+30002.166
Microsoft .NET Framework
Version 4.7.03062
Installed Version: Community
SQL Server Analysis Services 15.0.19049.0
Microsoft SQL Server Analysis Services Designer
Version 15.0.19049.0
SQL Server Data Tools 16.0.62003.05170
Microsoft SQL Server Data Tools
SQL Server Integration Services 15.0.2000.93
Microsoft SQL Server Integration Services Designer
Version 15.0.2000.93
SQL Server Reporting Services 15.0.19049.0
Microsoft SQL Server Reporting Services Designers
Version 15.0.19049.0
[Update 04/10/2020- Attached screenshot of the greyed out window menu]
[SSAS Tabular Explorer Window greyed out]1
In your screenshot, Model.bim does not appear to be open. You have to open it for Tabular Model Explorer to show up. Double click Model.bim in Solution Explorer.
Other issues that I don't believe apply to you, but may to others:
The Compatibility Level of the model must be at least 1400. Check by selecting Model.bim in Solution Explorer and then look in the Properties Window.
You also must have the Analysis Services extension installed. Search on "SSDT" for current installation steps.
If you left click on the Model.bim File in solution explorer and look at the properties window you should see Compatibility Level is 1103 or less. You will need to upgrade to a newer compatibility level to use Tabular Model Explorer. What version is your SSAS Server? You can upgrade to that level or lower.
You are probably using compatibility level 1400, in which you have to click on the Design button instead - see this Microsoft reply.
You need to install the Analysis services tabular projects extension from the Marketplace. Post that you should be able to see the tabular model explorer
I have 1400 compatibility level and still the tabular explorer didn't show up, it was greyed, it's some kind of bug, you can solve it by simply double clicking again on the model and opening it.
I added a new table in the sql server db and used visual studio sql compare to compare it to the existing db project. When i select the newly added table in the comparison results and say update, it does not show up in tfs pending changes.
Updates to procs show up in pending changes.
Any suggestions?
Run the compare again and it should go green.
it'll confirm that it was committed. Then check the project to see if the file is listed and has an addition graphic + in tfs
According to my experience i did rebuild the solution and compared again then it showing correct
I've downloaded the RTM version of SQL CE (Compact Edition) and installed it. I've installed the SQL Server Compact Toolbox. I understand that SQL CE4 support within Visual Studio won't happen until SP1 drops.
The problem is, while I have tools to edit the CE Database, I can't find a way to actually create a SQL CE4 database. I figure I must be missing something obvious, but 20 minutes of searching hasn't turned up anything. How do I create a SQL CE4 database?
Thanks,
Erick
Edit: I would rather avoid installing and running WebMatrix.
The SQL Server Compact Toolbox also allows you to create a database file (via the Add Connection dialog)
There's probably a better solution, but you could try out WebMatrix. With it I created an Orchard site, but after creating the site you can create new databases by clicking the 'New Database' button.
Really easy. Don't think this is the best option though...
Although there are GUI tools in VS2010 for entering data, writing queries etc against a SQL CE4 db, there doesn't appear to be a way to visualise the database in a digram.
So my Questions are
A) Have i missed something in VS2010 tools for sql Server CE4
b) Can i use SMSS to Diagram SQL CE4 databases. I've tried it but it wouldn't allow open the db. Is there a plugin available?
Thank you.
Microsoft does not supply a diagramming tool for SQL Server Compact 4, you could try my VS 2010 add-in http://sqlcetoolbox.codeplex.com (Create Database Graph) or the Data Port Console from http://www.primeworks-mobile.com
Actually, there IS a diagramming tool for SQL CE right into VS, but it's hard to find.
I only tried this in VS 2012 Preview, but it might work in older versions - please speak up in the comments.
Here's how to get to it:
In 'server explorer' create a normal connection to the SQL CE database. (No diagramming options are visible...)
Then right-click a table -> "Show table data"... Wait for it...
Hit Ctrl-1.
TA-DA!!
Alternatively, Right-click in the window with the tabular data and choose "Pane" from the context menu. (I know, 'Pane' !?)
Finally, from the 'Pane' submenu click the obvious choice - "Diagram".
There you have it.
SDF Viewer is now able to create database diagrams for SQLCE databases