Temporal extensions to SQL Server - sql-server

Anyone know of any temporal (http://en.wikipedia.org/wiki/Temporal_database) extensions to SQL Server?

I know this is an old question, but the usual solution in SQL Server is to create a "Date Dimension" database that you can join in your query. A DateDim is basically just a list of dates, but it includes columns like fiscal quarter and calendar quarter number, first/last day of that month, etc.: stuff that's difficult or time consuming to calculate on the fly but is easy to pull from a joined table.
If you search "sql date dimension" you'll find some code that will generate the table for you, though you'll need to tweak it to fit your needs. They tend to run day-by-day, but if you need hourly tracking you'll need to alter the code accordingly, for example.

SQL Server 2016 introduced Temporal Database capabilities.
See:
The MSDN Documentation
This Channel 9 Video
The public preview (CTP2) announcment

Related

Storing UnUsed Dataabse and Tables for Sql 2008

We are looking to upgrade the sql server from 2008 to 2017 which has multiple databases from few years back and don't have idea that really databases are much in use and those tables into databases are used lately or not, if not then we can obsolete the database or tables which ones are not used anymore.
We would like to get the results of Unused Database and Tables then store into table (Ex. UnUsedDBAndTables) and run through Sql agent job for daily or every 3 days and need to update the
How we can implement so we can check and analysis this table (UnUsedDBAndTables) for period of time and make determination which ones are really not needed to migrate.
Thanks for your help!

How to get table names as seen in SQL database with SSAS DMV/MDX query

I'm trying to build a report off the cubes we've built in SSAS, and I've found this documentation for DMV and MDX queries, but I can't find what I want. It can return the dimension names as seen in SSAS, but I want the table name as seen in SQL Server, i.e. if we have a table called billingLocation in the database I want that instead of Billing Location which is how it's seen in SSAS. Is this possible?
As an aside, can you pull fact tables from the same query type? I only see information about pulling dimensions.
Maybe it's too late but you can use LEFT(Column_Name,X) to get some characters. Could be useful
There is not an existed DMV in SSAS to load the dsv name of a measure group or dimension which related Cube schema. I think you have to create a program and connect to SSAS server with AMO.NET to get these information by yourself.
But there is an IDE to get these info and allow you to export to excel, it is not free(30 days free trial): MDXHelper, www.mdx-helper.com.
Hope this help you. Thanks.

SQL Server best approch to append table data into Oracle database table

I have a table for bio-metric devices which capture the data as soon as the employees punch their fingers and uses SQL Server 2014 Standard Edition.
However, our legacy devices were exporting log files and we used a vb engine to push to our Oracle table and used to generate the attendance details.
I managed to export the data from SQL Server and built the first set of records. I would like to schedule a JOB with SQL Server with a condition that the Oracle table should receive ONLY the rows those are NOT already inserted from the SQL Server table.
I checked the append possibilities, which dumps the entire SQL Server table data when the job is executed thus duplicating the rows within the Oracle target table, forcing me to discard the job and to build a new one that deletes the Oracle table and recreates when the job is executed. I feel this is a kind of overkill...
Any known methods available to append only the rows those are NOT existing in the Oracle target table? Unfortunately the SQL Server tables doesn't have any unique id column for the transaction.
Please suggest
Thanks in advance
I think the best way is to use sal server replication with Oracle database as subscriber.
You can read about this solution on MSDN site:
Oracle Subscribers
Regards
Giova
Since you're talking about attendance data for something like an electronic time card, you could just send the data where the punch time is > the last time stamp synced. You would need to maintain that value some where, and it doesn't take into account retro actively entered records. If there's a record creation date in addition to the punch time you could use the created date. Further if there is a modified date in the record you could look into using the merge statement as Alex Pool suggested so you could get both new records and modifications synced to oracle.

SQL Server need to partition data, but only have standard edition

Is there a way that I can in code (Sproc ,etc) distribute the data for a table into multiple filegroups without actually having SQL Server partitioning available (Only have Standard Edition)? I wanted to be able to breakout my FileStream data into different "Partitions", but without an Enterprise license I can't actually use the partitioning functionality.
Any suggestions would be greatly appreciated.
Thanks,
S
You can distribute your data into different databases and join them with views. The tricky part of that will be to keep the views updated as you add/remove data.
You need to do this "partition" on a logical key (like a calendar date) where each DB has data within a certain range. If you cluster on this field, the query analyzer will be able to determine which DB to pull data from without issue.
At my workplace we are using this technique for a very large (multi-billion row) data set that we get monthly additions to and it works great.

automatically build a org chart based on self-referencing sql employee table?

sol have a standard self referencing employee table in sql 2005 and thought it would be cool to have an automated way to be able to build an org. chart like this
i want somethign that can be scheduled to run daily because my company has a large team and things change frequently. as an aside, i am re-fleshing the employee table (1000) records daily from Active Directory.)
anyone know a simple way to do this?
visio/ vba?
excel/ vba?
winforms/ c#?
Visio allows you to generate an org chart from a SQL database, but I'm not sure you can automate it (may have to have Visio installed on the server if you can) and it's a fair amount of work to set up the template file to lay everything out the way you like. So the short answer is "probably possible in Visio, but definitely a pain for non-Visio gurus"

Resources