?
Solved

ADO SQL Storing Milliseconds

Posted on 1998-07-16
2
Medium Priority
?
321 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

764 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