I'm completely new to SQL Server 2000, and I have a project to create and deploy a client server system with SQL Server and C#.NET.
The data comes from monthly .DAT files, which actually originate from someone else's Oracle database.
I'm just trying to wrap my head around the process of how I'm going to get everything working, and the first problem I'm having is converting the Oracle timestamp field into the SQL Server datetime field.
When I asked the DBA of the Oracle database about the timestamp field, this was his reply:
he said that it was possible to convert this into SQL Server datetime, but he didn't say how.
Does anyone know how to do this? Also, any suggesstions about general tips when importing monthly data would be extremely helpful...
many thanks!
The data comes from monthly .DAT files, which actually originate from someone else's Oracle database.
I'm just trying to wrap my head around the process of how I'm going to get everything working, and the first problem I'm having is converting the Oracle timestamp field into the SQL Server datetime field.
When I asked the DBA of the Oracle database about the timestamp field, this was his reply:
Code:
It is a time stamp field ( similar to the time_t values in C ).
Basically - in Oracle - you can use "TO_DATE( '19700101', 'YYYYMMDD' ) + BEG_STAMP / 86400" to translate a time stamp to a date /time.
Does anyone know how to do this? Also, any suggesstions about general tips when importing monthly data would be extremely helpful...
many thanks!