Hi all,
Could you tell me what's the best type of variable(varchar, char, int, time, date...) for values in tables on SQL:
%Date%
%Time%
%Reply%
%Status%
%FCommentLine1%
I want to choose the best for Log Analyser
ODBC variables
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: ODBC variables
%Date% - datetimeNadir wrote:Could you tell me what's the best type of variable(varchar, char, int, time, date...) for values in tables on SQL:
%Time% - datetime
(but you may use one %DateTime% variable)
%Reply% - varchar (see also Reply_Number and Reply_Integer variables, here you may use double and int accordingly)
%Status% - varchar
%FCommentLine1% - varchar
Also we recommend to store %TestID% and %TestMethod% variables.
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
It is depends on your SQL Server.Nadir wrote:What's the best for Log Analyser?
It's preferable to use %DateTime% variable, because most of SQL Servers store Date and Time in one field. Log Analizer is able to parse such fields and retrieve Date and Time separately.
Yes, %TestMethod% is used, as you may see in ODBC Logs Manager.Nadir wrote:Why? they are used by Log Analyser?Also we recommend to store %TestID% and %TestMethod% variables.
%TestID% is used for your own convenience. But if you do not need such field, you must not record it.
Regards,
Max