Solved

ADO SQL Storing Milliseconds

Posted on 1998-07-16
2
314 Views
Last Modified: 2012-05-04
Using ADO with SQL, trying to store a datetime WITH fractions of a seconds (!dt="7/16/1998 12:58:01.1") gives a "Type Mismatch" error from ADO.  Same statement without the fraction works.  How can I store milliseconds WITHOUT using a SQL statement?
0
Comment
Question by:mdholaki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:mdholaki
ID: 1091784
Edited text of question
0
 
LVL 2

Accepted Solution

by:
Wiz_of_Oz earned 100 total points
ID: 1091785
datetime defaults to January 1, 1900, 12:00:00:000AM
this string has been extracted from the SQL Books on line, so it should works well...
looking at your source code the error is located at the separation character you use between seconds and milliseconds...
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question