Question

discuss how a database administrator can extract data from a database and convert date\time fields out...

discuss how a database administrator can extract data from a database and convert date\time fields out of the data into a different format (DT_DBTIMESTAMP2 to DT_DBDATE).

Homework Answers

Answer #1

Solution:

The Extraction:

If we employ OLE DB source then we can extract data which contain different methods of extracting data.

some of these methods are given below:

  • The table should be specified in the variable

  • Employment of parameterized query

  • Employing a variable to store the outcome of an SQL statement.

Below steps should be followed in order to access these methods:

  1. In SSDT open the Integration Services project

  2. Select data flow tab and double click OLE DB source

  3. Create a new OLE DB connection manager and now any of the data access methods can be chosen.

DT_DBTIMESTAMP2 to DT_DBDATE(the conversion):

As soon as the data is extracted, the database administrator can store as a string and change it to proper datatime format by employing DT_DBTIMESTAMP2. In the script also Datetime.ParseExact function can be used.

Hit the thumbs up if you liked the answer. :)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1- How can database systems improve data quality and data integrity? 2- Discuss database constraints: Primary...
1- How can database systems improve data quality and data integrity? 2- Discuss database constraints: Primary key, check, and referential integrity constraints? Give an example for each.
Mary a database administrator frequently writes queries that combines the data in the Students Table with...
Mary a database administrator frequently writes queries that combines the data in the Students Table with that in the CourseRegistration using Cartesian Products then filtering the data to obtain the course Registrations of a student. Mary also frequently queries for students who have registered for no course using the syntax CourseCount<1. Identity any three improvements that can be made to the performance of the student management system database from this description and write the appropriate best performing versions of each...
How does a database address problems with file systems? How can database systems improve data quality...
How does a database address problems with file systems? How can database systems improve data quality and data integrity?
Hi, in MATLAB how do you convert date and time (dd-mm-yy mm:ss:S) into time only (mm:ss.S)?
Hi, in MATLAB how do you convert date and time (dd-mm-yy mm:ss:S) into time only (mm:ss.S)?
Hi, in MATLAB how do you convert date and time (dd-mm-yy mm:ss:S) into time only (mm:ss.S)?
Hi, in MATLAB how do you convert date and time (dd-mm-yy mm:ss:S) into time only (mm:ss.S)?
Discuss the historical development of database management systems and logical data models, starting from the file-based...
Discuss the historical development of database management systems and logical data models, starting from the file-based system of the past to today. Make sure you explain why databases were developed.
Discuss the historical development of database management systems and logical data models, starting from the file-based...
Discuss the historical development of database management systems and logical data models, starting from the file-based system of the past to today. Make sure you explain why databases were developed.
Explain how to extract steganographic sequestered data from an identified image files while conserving their integrity.
Explain how to extract steganographic sequestered data from an identified image files while conserving their integrity.
How can we find the characterstics of risk and return from stock price vs date graph...
How can we find the characterstics of risk and return from stock price vs date graph for different companies.
How can you get the Access, Modify and Change date & time of the file "f1"?...
How can you get the Access, Modify and Change date & time of the file "f1"? This question is about in Linux
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT