| INF: Using a Stored DATETIME Key for Data RetrievalLast reviewed: November 7, 1997Article ID: Q64229 | 
| The information in this article applies to:
 
 SUMMARYIf you have a table with a key of type SQLDATETIME, after an entry has been selected by an application and you save the key in a program variable of type DBDATETIME, the best way to retrieve the customer information (given that you have the key stored in a variable of type DBDATETIME) is the following: 
 When you save your key as type DBDATETIME, it is possible to lose a portion of the unique time information. Converting the key to a string of type 9 or 109 prior to selection is the most reliable method of using a key of type DATETIME for further data retrieval. MORE INFORMATIONThere are several things you need to consider when using a stored DATETIME key for data selection: 
 
 You can find DKEY.EXE (size: 18782 bytes) , a self-extracting file, on the following services:       On the www.microsoft.com home page, click the Support icon.
      Click Knowledge Base, and select SQL Server.
      Enter kbfile <FILENAME>.EXE, and click GO!
      Open the article, and click the button to download the file.
      ftp ftp.microsoft.com
      Change to the Softlib/Mslfiles folder.
      Get <FILENAME>.EXE
      On the Edit menu, click Go To, and then click Other Location.
      Type "mssupport" (without the quotation marks).
      Double-click the MS Software Library icon.
      Find the SQL Server product area.
      Locate and Download <FILENAME>.EXE.
      Dial (425) 936-6735 to connect to MSDL
      Download <Filename>.exe
For additional information about downloading, please see the following article in the Microsoft Knowledge Base: 
 ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online Services | 
| Additional query words: dblib DB-Lib Windows NT 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use. |