Click here to Skip to main content
15,891,698 members
Home / Discussions / Database
   

Database

 
GeneralRe: reboot the sqlserver Pin
Terry Denham5-Sep-03 4:19
Terry Denham5-Sep-03 4:19 
GeneralMaster-Detail Question! Pin
EastDragon4-Sep-03 16:50
EastDragon4-Sep-03 16:50 
GeneralSQLDMO Pin
yyf3-Sep-03 8:53
yyf3-Sep-03 8:53 
GeneralRe: SQLDMO Pin
Terry Denham5-Sep-03 4:30
Terry Denham5-Sep-03 4:30 
GeneralRe: SQLDMO Pin
yyf5-Sep-03 8:31
yyf5-Sep-03 8:31 
GeneralRe: SQLDMO Pin
Terry Denham7-Sep-03 9:16
Terry Denham7-Sep-03 9:16 
Generalpassing and retrieving date value using ADO Pin
haritadala1-Sep-03 11:57
haritadala1-Sep-03 11:57 
GeneralRe: passing and retrieving date value using ADO Pin
Roger Wright7-Sep-03 10:06
professionalRoger Wright7-Sep-03 10:06 
Passing a date value is no different from passing any other data, so I assume you are looking for the format that identifies it as a date. From the SQL Server Books Online, the proper format can take any of these forms:

ODBC Datetime Format
The ODBC API defines escape sequences to represent date and time values, which ODBC calls timestamp data. This ODBC timestamp format is also supported by the OLE DB language definition (DBGUID-SQL) supported by the Microsoft OLE DB Provider for SQL Server. Applications using the ADO, OLE DB, and ODBC-based APIs can use this ODBC timestamp format to represent dates and times.

ODBC timestamp escape sequences are of the format:

{ literal_type 'constant_value' }

literal_type
Specifies the type of the escape sequence. Timestamps have three literal_type specifiers:
d = date only.

t = time only.

ts = timestamp (time + date).

'constant_value'
Is the value of the escape sequence. constant_value must follow these formats for each literal_type.


literal_type constant_value format
d yyyy-mm-dd
t hh:mm:ss[.fff]
ts yyyy-mm-dd hh:mm:ss[.fff]


These are examples of ODBC time and date constants:

{ ts ‘1998-05-02 01:23:56.123’ }

{ d ‘1990-10-02’ }

{ t ‘13:33:41’ }

When accessing a MS Access (.mdb) database, the format is #mm-dd-yyyy#, I believe.

"Nobody is Ugly at 2AM"

GeneralDataSets and Crystal Reports 9 Pin
Member 486391-Sep-03 3:08
Member 486391-Sep-03 3:08 
GeneralRe: DataSets and Crystal Reports 9 Pin
Braulio Dez10-Sep-03 21:47
Braulio Dez10-Sep-03 21:47 
QuestionWhat is MySQL used for anyways... Pin
Snyp30-Aug-03 15:37
Snyp30-Aug-03 15:37 
AnswerRe: What is MySQL used for anyways... Pin
ZoogieZork30-Aug-03 17:57
ZoogieZork30-Aug-03 17:57 
GeneralRe: What is MySQL used for anyways... Pin
Snyp31-Aug-03 3:06
Snyp31-Aug-03 3:06 
GeneralRe: What is MySQL used for anyways... Pin
Snyp31-Aug-03 3:11
Snyp31-Aug-03 3:11 
GeneralSolution of your IT/Computer science Problems Pin
mindnets29-Aug-03 17:43
mindnets29-Aug-03 17:43 
GeneralQuery Help Pin
sardinka29-Aug-03 9:21
sardinka29-Aug-03 9:21 
GeneralRe: Query Help Pin
basementman5-Sep-03 11:22
basementman5-Sep-03 11:22 
GeneralWHY????? HELP!!!!!! Pin
yyf29-Aug-03 8:20
yyf29-Aug-03 8:20 
GeneralRe: WHY????? HELP!!!!!! Pin
Mike Dimmick4-Sep-03 1:39
Mike Dimmick4-Sep-03 1:39 
GeneralCalculate columns in datagrid Pin
Anonymous29-Aug-03 7:42
Anonymous29-Aug-03 7:42 
GeneralRe: Calculate columns in datagrid Pin
andyharman31-Aug-03 12:28
professionalandyharman31-Aug-03 12:28 
GeneralRun a sql file Pin
yyf29-Aug-03 4:21
yyf29-Aug-03 4:21 
GeneralRe: Run a sql file Pin
Arjan Einbu29-Aug-03 11:35
Arjan Einbu29-Aug-03 11:35 
GeneralRe: Run a sql file Pin
Anonymous31-Aug-03 4:17
Anonymous31-Aug-03 4:17 
GeneralRe: Run a sql file Pin
Mike Dimmick4-Sep-03 1:33
Mike Dimmick4-Sep-03 1:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.