Mirroring and Availability Groups in SQL Server 2012 [closed] - replication

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've been looking at the new features of SQL Server 2012, and how it can help my current situation.
Currently we're on SQL Server 2008R2, and replicate two OLTP database servers to a single reporting server via transactional replication. We then use these replicated DBs for reporting.
I'm interested in whether SQL Server 2012 and the Availability Groups can replace this - So instead of transactional replication, I'd use the new availability groups and mirror the two OLTP servers to the replication server - Where the reporting will be able to access the read-only copies.
I'm unsure if this will work well, or even at all.
Does anyone have any good examples or experience with this?

Personally I think this will work a lot better than transactional replication, though I haven't done any formal comparisons of the two in a true migration scenario. I know that with the amount of troubles folks have with transactional replication, compared to even standard mirroring (and this is an upgrade of that), you are certainly bound to have fewer problems.
The biggest boon is that the secondary can be marked as read only - so you can run all the reporting off of it that you want, and it won't affect the mirroring at all. You just need beefier tempdb (since it essentially uses rcsi to do this).
Of course you do need to be aware that both sides of the AG need to be fully licensed in order to use the replica for read-only operations. And both sides need to be running on a version of Windows that supports FCIs (so Enterprise or better on Windows Server 2008 R2 or lower; Standard or better on Windows Server 2012 and higher) - the SQL instances in AGs don't need to be clustered, but they need to be sitting on top of that infrastructure in the OS.

Related

What is the most logical way to store multiple versions of a database in a SQL Server instance? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
We operate a website in AWS that uses Azure as the data source. Azure is populated by transactional replication from our customers. Once every 3 or 4 months a new version of the customer database is released. My company does not make this customer database. More often than not, the new version does not come with an update script and basically all the customer information is wiped and the new database version is a fresh create.
How do I maintain an uninterrupted history in the cloud through these updates? I see only two options: create a new database for each version, create a new schema for each version. The first will get expensive over time, the second feels hacky. If it's such a big deal should I just make my own update scripts?
To keep expense down, consider Elastic Pools for your Azure SQL DBs. Elastic pools have an allocation of eDTU's that can be shared between N databases as needed. As long as the sum total of DTU's used by all databases in the pool do not exceed the max DTU's for the pool, you're golden.
I assume that older versions of your database need to be accessible, but probably don't have much (or any) traffic. By hosting older versions in the same elastic pool, you can drastically reduce cost and still have them accessible if needed.
The other option would be to take backups of older versions, then restore them if ever needed.

Downgrade database from SQL Server 2012 to 2008 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to downgrade the database to SQL Server 2008 Enterprise edition. I know there is no direct option. I tried to backup on 2012 and then restore on 2008. Not working.Any Idea on how to completely transfer database ?
You cannot convert a SQL Server 2012 database file to a SQL Server 2008 database file. The downgrade is not possible. The compatibility of database files is available only from an old version to a newer one, not the opposite. Indeed, you can convert a SQL Server 2008 database file to SQL Server 2012 database file.
Use the integrated SQL Server tools:
Right click on the database.
Select Tasks and Generate Scripts.
Following the wizard, at the end of it in the Advanced Scripting Options clicking the "Advanced" button, select the SQL Server version for which you want to generate the scripts, using the option Script for Server Version. Moreover, you would be able to generate the scripts to export the schema of your objects and/or the data, selecting the option Types of data to script, as you can see in the screenshot below:
The time needed for the process to generate both (schema and data) will depend on the amount of data you want to export, of course. As #Arun suggested, have a look at the process in more detail here, using step by step instructions.

best database type to use with Trac [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am in need to install trac on a cloud server which runs centos.
What is the best database type to use? I would like to install trac with mysql but the trac website says:
"There are also a couple of #KnownIssues and supporting this database
has proven to be painful at times."
I am afraid to use SQLite as SQLite is not good for larger databases. Can some one give me an idea of the best database type for trac?
much appreciated
Any flavor has both, it's fans and opponents. It's rather undisputed, that MySQL has it's weaknesses, but PROs too.
Answering these questions to yourself may help:
Do you already use some flavor of RDBMS, that is supported by Trac? If YES, use that.
What is a large database to you?
< 10.000 tickets and wiki pages, rarely concurrent transactions: SQLite will handle this well, don't care for something else.
'more': You may profit from a full-fledged RDBMS, so use PostgreSQL.
Could I delegate database management? If YES, you'll find the seamless, well tested environment upgrade with automatic db backup, that is only provided for SQLite, less important.

can we use packages in ms sql server 2008 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
can we use packages in ms sql server 2008...i m new to sql server ...
if yes how it can be created and used....
The only thing somewhat similar would be a SQL-CLR assembly, e.g. C# code compiled into an assembly, hosted inside SQL.
There's no equivalent of a package for T-SQL stored functions and stored procedures in SQL Server.
What do you need that for, anyway? Granting permissions?
What you could investigate, too, are the schemas in SQL Server, which also help you grant or manage permissions - but it's quite a different beast from Oracle PL/SQL packages. Schemas manage collections of database objects (any of them - tables, views, stored procs and funcs).
Working with schemas in SQL Server 2005
Security enhancements in SQL Server 2005 - schemas
Marc
I assume you are talking about the Oracle concept of a package which groups related queries etc. If so as far as I know this concept doesn't exit in SQL Server. Also you will get some interference when trying to Google for this from DTS packages, which are a completely different concept.

What is the best free SQL GUI for Linux for various DBMS systems [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
As I make the full switch from Windows to Linux (CentOS 5) I'm in search of the best free GUI SQL Client tool for MSSQL, MySQL, Oracle, etc... any suggestions?
I've tried DBVisualizer (The best bet so far but still limited by the free version, not all functionality is there), MySQL GUI Tools (Good but only for MySQL, need other DB's as well) and Aqua Data Studio (Same as DBVis, it's good but a lot of the functionality is missing in the free version).
I can highly recommend Squirrel SQL.
Also see this similar question:
Developer tools to directly access databases
I'm sticking with DbVisualizer Free until something better comes along.
EDIT/UPDATE: been using https://dbeaver.io/ lately, really enjoying this
I use SQLite Database Browser for SQLite3 currently and it's pretty useful. Works across Windows/OS X/Linux and is lightweight and fast. Slightly unstable with executing SQL on the DB if it's incorrectly formatted.
Edit: I have recently discovered SQLite Manager, a plugin for Firefox. Obviously you need to run Firefox, but you can close all windows and just run it "standalone". It's very feature complete, amazingly stable and it remembers your databases! It has tonnes of features so I've moved away from SQLite Database Browser as the instability and lack of features is too much to bear.
For Oracle, I highly recommend the free Oracle SQL Developer
http://www.oracle.com/technology/products/database/sql_developer/index.html
The doucmentation states it also works with non-oracle databases - i've never tried that feature myself, but I do know that it works really well with Oracle
I tried many GUI's, and the best for me continue being "SQLyog-comunity" by using wine. Is complete, is nice, and is intuitive. (and in wine work perfect)