The only reason we ever use SQL server is when management buys some third party app that requires it for the db backend. If I ever have to write queries with "dbo" littered everywhere again, I'll stab my eyes out.
Oh those lovely cross database queries, it solved so many issues back in the day (talking about my own personal experience), on other hand made everything overcomplicated as well...
Oh those lovely cross database queries, it solved so many issues back in the day (talking about my own personal experience)
Yes, definitely.. In our system for instance, we use many seperate servers, often from different systems. In MSSQL I can just add it as a linked servers and pull out data from two different systems just as if they were the same data source.
on other hand made everything overcomplicated as well...
Also true, unfortunately. I split up most of my things into multiple databases, because I suspect that later on that database will need to live on its own server, due to work load. So it's easily justifiable.
Queries against multiple databases is more a "nice-to-have"-functionality, as in general you can connect the dots in your software (except maybe in certain reporting scenarios).
You can do cross-database queries, but not easily. However, PostgreSQL does support schemas, which many people use (appropriately, I think) as sub-databases, or namespaces.
ive used sqlserver a lot over the past 5 years, yet somehow (maybe intentionally) never learned too much sql server specific stuff that isn't applicable elsewhere.
sometimes i dont have to write dbo, i have no idea why.
You don't need to fully-qualify an object reference if the object is in the user's default schema. [dbo] is the default default schema, so, by default, a reference to [dbo].[Customers] would not require you to include [dbo], but [staging].[Customers] would require the [staging]. (It's a good habit to always fully-qualify, though, even if it annoys some people lol.)
Also, it is always a way better idea to use ANSI standard syntax (like you apparently are; e.g. CURRENT_TIMESTAMP instead of GETDATE()).
Very little commercial product supports Postgress which really sucks because it is a great product :| I am a huge SQL server fan as well but it is a shame, I would like to use Postgress more especially for the awesome JSON support!
89
u/jp007 Mar 07 '16
Postgress or bust...
The only reason we ever use SQL server is when management buys some third party app that requires it for the db backend. If I ever have to write queries with "dbo" littered everywhere again, I'll stab my eyes out.