Inappropriate warning log generation
Ivan Smahin
ivan_smahin at paradigmasoft.com
Thu Nov 3 09:19:54 CDT 2011
On 11/3/2011 3:35 PM, jda wrote:
>> I'm doing this that way :
>>
>> Valentina.Init(prefDBCache, regMac, regWin, regLinux)
>>
>> // Suppress Warnings
>> db = new VDatabase
>> i = db.SqlExecute( "SET PROPERTY WarningMode TO FALSE" )
>> db = nil
>>
>> François Van Lerberghe
>> Rue Thier Monty, 15 A
>> 4570 Marchin
>> Belgique
>>
>
> Thanks for telling me. I see no functional difference between that and
> what I'm doing, however -- I'm issuing the SET command after a db has
> been created with new but not opened. Note that for the most part
> warning are not being written for me, either. But it *does* happen
> sometimes, I've seen it and my users are reporting it.
>
> Ivan? Ruslan?
>
In case of client-server programming you must create vConnection object
in order to connect vServer.
Something like this one:
gConnection = new VConnection(host, userName, password)
In case of local programming you can obtain "local connection" object
this way:
Dim conn As VConnection
InitValentina(8*1024*1024)
conn = Valentina.GetLocalConnection()
conn.Open()
call conn.SqlExecute( "SET PROPERTY WarningMode TO false" )
conn.Close()
...
--
Best regards,
Ivan Smahin
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com
More information about the Valentina
mailing list