Set DateFormat mdy
Posted: Thu  29 Dec 2016 16:10
				
				Hello,
I am doing something like following, but in this part I want to set the DATEFORMAT to mdy at this level, because I do not want to send it for each connection I open, Is there any way to set it at this level?
Thanks,
Ali
MSCon:=TMSConnection.Create(nil);
if sPayUsername='' then
MSCon.Authentication:=auWindows else
MSCon.Authentication:=auServer;
MSCon.Server:=sPayServer;
MSCon.DataBase:=sPayDatabase;
MSCon.UserName:=sPayUsername;
MSCon.Password:=sPayPassword;
MSCon.ConnectionTimeout:=iPayTimeoutConnect;
MSCon.Options.DefaultLockTimeout:=iPayTimeoutCommand*1000;
CommandTimeout:=iPayTimeoutCommand;
Connection:=MSCon;
			I am doing something like following, but in this part I want to set the DATEFORMAT to mdy at this level, because I do not want to send it for each connection I open, Is there any way to set it at this level?
Thanks,
Ali
MSCon:=TMSConnection.Create(nil);
if sPayUsername='' then
MSCon.Authentication:=auWindows else
MSCon.Authentication:=auServer;
MSCon.Server:=sPayServer;
MSCon.DataBase:=sPayDatabase;
MSCon.UserName:=sPayUsername;
MSCon.Password:=sPayPassword;
MSCon.ConnectionTimeout:=iPayTimeoutConnect;
MSCon.Options.DefaultLockTimeout:=iPayTimeoutCommand*1000;
CommandTimeout:=iPayTimeoutCommand;
Connection:=MSCon;