[Quickfix-users] ODBC log issue
Brought to you by:
orenmnero
From: ka w. <ka...@gm...> - 2009-06-30 15:44:48
|
Hi, I am trying to implement an ODBC support for QuickFIX. I have already built QuickFIX with ODBC support as the OdbcLogFactory and OdbcStoreFactory classes were created. When I try to run my code I have this message: Configuration failed: [Microsoft][ODBC SQL Server Driver][SQL Server] Login Failed for user 'sa'. Why does QuickFIX try to login with user 'sa' as I provided an other OdbcLogUser in my seting file? Here is my Setting File: #Config file for the initiator # default settings for sessions [DEFAULT] ConnectionType=initiator OdbcLogUser = PC-de-Kay\Kay; OdbcLogConnectionString = DATABASE=quickfix;DRIVER={SQL Server};SERVER=(local); OdbcLogPassword = 123456; OdbcStoreUser = PC-de-Kaye\Kay; OdbcStoreConnectionString = DATABASE=quickfix;DRIVER={SQL Server};SERVER=(local); OdbcStorePassword = 123456; ReconnectInterval=60 SenderCompID=KayInitiator UseDataDictionary = Y DataDictionary=FIX42.xml [SESSION] BeginString=FIX.4.2 TargetCompID=KayAcceptor StartTime=00:00:00 EndTime=00:00:00 # overide default setting for RecconnectInterval ReconnectInterval=20 HeartBtInt=30 SocketConnectPort=6523 SocketConnectHost=127.0.0.1 DataDictionary=FIX42.xml ResetOnLogon=Y Here is an extract of my code to create a new session: .... string settingfile = "initiator.cfg"; this._settings = new QuickFix.SessionSettings(settingfile); this._messageStoreFactory = new OdbcStoreFactory(this._settings); this._logFactory = new OdbcLogFactory(this._settings); this._messageFactory = new QuickFix42.MessageFactory(); this._socketInitiator = new QuickFix.SocketInitiator(this, _messageStoreFactory, this._settings, this._logFactory, _messageFactory); this._socketInitiator.start(); .... Thanks, Kamel |