| A community of more than 1,600,000 database professionals and growing |
| | Migrating Schema Between Platforms PostgreSQL is a popular relational database, one that was designed to be an object relational system, based on standards, and allowing for extensibility. I've always thought this was a great system, exceeding SQL Server in some ways, though falling short in others. It's popular, and certainly used enough so that Azure and Amazon Aurora include PostgreSQL compatability products. I ran across an interesting post, where AWS has a Schema Conversion Tool that will help you migrate from Oracle to Aurora running PostgreSQL. I think this makes some sense as there are some capabilities in PostgreSQL that make moving Oracle code easy. AWS also has a Migration Service to move SQL Server to MySQL. I'm not sure how smoothly that goes, but SQL isn't a terribly complex language and perhaps the conversion isn't too bad, though I'm sure this isn't painless. I wonder how many people will choose to move their database systems to a new platform. Whether you're on a commercial database, such as SQL Server or Oracle, or on a free one (MySQL, PostgreSQL), changing the underlying platform is disruptive for many applications. I'm sure there are some software packages that could change a driver and connection string and their code might work, but I bet that's relatively few systems. For most of us, the cost of change is high. New skills need to be learned and new code written. Staff may leave, requiring an organization to hire new employees, which is always a bit of a gamble. The entire process is also a disruption that prevents other work from being completed in a timely manner. Often a large ROI is needed to justify the change, though that's not always the case as sometimes management decides to change for other reasons, regardless of cost, ignoring any ROI. I have even seen some developers psuh to make the platform change, working many extra hours because of some desire to port to a new platform for dubious reasons. I do see plenty of companies looking to move away from Oracle systems, with a very large cost for support and maintenance. While SQL Server isn't always cheap, it is much less expensive and Microsoft has programs to help port Oracle to SQL Server. Companies may also choose to move to MySQL or PostgreSQL from Oracle, accepting the disruption and costs with a long view towards reducing their yearly outlay for database services. I have migrated platforms before, and it's been an ordeal each time. I haven't ported code to a new platform, and not sure I would. Perhaps if we were abandoning a codebase and rewriting the application I'd consider it, but in most cases, the cost of staff and time to rework code makes this an expensive proposition. If you have different thoughts or experiences, let us know today. Steve Jones from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
| The Voice of the DBA Podcast Listen to the MP3 Audio ( 4.2MB) podcast or subscribe to the feed at iTunes and Libsyn. The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. | |
|
|
| ADVERTISEMENT | | Masking your on-premises database with SQL Data Mask Redgate's latest prototype tool is rapidly developing. Using SQL Data Mask, you can now mask on-premise SQL Server and Azure SQL databases. This blog post explains how it works, and how you can try it out for free. Find out more |
| | How to track every change to your SQL Server database See who’s changing your database, alongside affected objects, date, time, and reason for the change with SQL Source Control. Get a full change history in your source control system. Learn more |
|
|
|
| | | Joao Osorio from SQLServerCentral.com Systems with a large number of requests on a critical database table are prone to blocking and slowness. We take a look at getting things done using T-SQL table hints. More » |
| Additional Articles from SQLPerformance.com Paul White walks through a new trace flag in SQL Server 2016 designed to yield better execution plans (and performance) for queries involving computed columns. More » |
| Additional Articles from SimpleTalk Statistical calculations in SQL are often perfectly easy to do. SQL was designed to be a natural fit for calculating correlation, regression and variance on large quantities of data. It just isn't always immediately obvious how. In the second of a series of articles, Phil factor shows how calculating a non-parametric correlation via Kendall's Tau or Spearman's Rho can be stress-free. More » |
| Koen Verbeeck from SQLServerCentral Blogs A quick blog post on finding where the trend line is hiding in Power BI Desktop. Docs will state it... More » |
| Devin Knight from SQLServerCentral Blogs In this module you will learn how to use the Enlighten World Flag Slicer Custom Visual. The Enlighten World Flag... More » |
|
|
| | Today's Question (by Steve Jones): What are my options for the first Raiserror parameter? The second and third parameters are severity and arguments. |
Think you know the answer? Click here, and find out if you are right. We keep track of your score to give you bragging rights against your peers. This question is worth 1 point in this category: raiserror. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Thomas Franz): What will be the result of this query: SELECT DISTINCT TOP 5 id FROM (VALUES (1), (1), (1), (1), (1), (2), (2), (2), (2), (2), (3), (3), (3), (3), (3), (4), (4), (4), (4), (4), (5), (5), (5), (5), (5) ) val(id) ORDER BY id; Answer: 1, 2, 3, 4, 5 Explanation: Although you have to write the DISTINCT before the TOP 5, SQL Server will execute the DISTINCT SORT (the SORT is implied by the ORDER BY) before limiting the results to the first 5 rows (as you can verify in the execution plan). So the (correct) result will be 1, 2, 3, 4, 5. It will not throw an error, since the statement uses the correct syntax (see click here ) » Discuss this question and answer on the forums |
|
|
| Database Pros Who Need Your Help |
| Here's a few of the new posts today on the forums. To see more, visit the forums. Database stuck in restoring state after restore with no recovery - Hello, Trying to implement database mirroring. I keep getting an error message an error message. Msg 1418, Level 16, State 1, Line... Convert unicode escape sequence to nvarchar - Hi all, I have string like this: DECLARE @m NVARCHAR(max)= N'\u0633\u0644\u0627\u0645' How can I convert(Unescape) it to normal string ? SQL: HOW to concatenate two fields using trigger, - Hi All, I have SQL database called “S1”, and a table called “WORKORDER”, inside the table, I have two field... date format needed: 06/15/2017 12:00:00 AM - how to get it more directly than this? SELECT CONVERT(VARCHAR(25), getdate(), 101) + ' 12:00:00 AM' i need 12:00:00 AM in all rows. Missing months group by - My data is like below currently- 7 columns below in first table. Date Country P1 P2 C1 C2 R1 2017-03-01 IN 0... Reseeding indexes for tables with data - Hello, I have a database with many tables containing auto-incrementing Pk's. Somehow, things got messed up and an insert against a... SQL server slow - We have a server, it was build on VMware volumes attached over network. When I run a query It has taking... AlwaysOn Availability Group installation order - Is there a proper order to client software installation when it comes to AlwaysOn Availability Groups? - installing directly to the... Troubleshooting MEMORY ALLOCATION EXT wait type - I am getting this wait type on my DB Server, please let me know the reason y it caused and... How does this code convert records to a single row? - Hi I stumbled across some SQL code which seems to transpose record data into a single record. Unfortunately the code was... Converting varchar to datetime T-SQL. - Hello, I have 2 column first column in this Format YYYYMMDD and second column as HHMM i want one column as... How to get these queries into a view? - Hello, I have some data I'm trying to summarize and I'd like to have this in a queryable view instead... Programatically return Login name for DBO user? - Hi all, My Google skills seem to have failed me here!! Any ideas? Thanks, JB Shared Memory protocole limitations? - Hi, On a server running SQL Server 2008 R2 10.50.4042 (I know, SP2 is outdated...), there is multiple SSIS packages scheduled to... Tsql Query help - Hi guys, I am working on a process where the query to be written seems little tricky to me. I have... Records common in both tables - panpk is identity value. I am trying to how many records (count) are common between both the tables. How do... How to uniquely number parent and child nodes while reading an xml document - I found a neat trick that I have not seen applied anywhere, nor did I find any documentation for it.... How to change only Date value in DATE TIME datatype in SSIS - I need to change date field to default 01 in DATE TIME data type holding same month value. current value 05/29/2016... Expression needed for Midnight of previous day - How to get expression for yesterday and day before so that the time stamp resets *exactly to midnight*? I have Yesterday gives... Expression for yesterday midnight - Hi, I am trying to create expressions for datetime variables in ssis. I need one for yesterday midnight and other one... |
|
| This email has been sent to [email protected]. To be removed from this list, please click here. If you have any problems leaving the list, please contact the [email protected]. | This newsletter was sent to you because you signed up at SQLServerCentral.com. Feel free to forward this to any colleagues that you think might be interested. If you have received this email from a colleague, you can register to receive it here. | This transmission is ©2017 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: [email protected] |
|
|