This all works fine as long as the server is available after the initial g_SQL_Con.Open. This is an example: connectionString'Data Source.SQLEXPRESS AttachDbFilenameC:MyProjectdbRoomBooking. Describes how the value is literally represented by using Kafka Connect schema types, namely INT8, INT16, INT32, INT64, FLOAT32, FLOAT64, BOOLEAN, STRING. connectionString'ServerSQLSeverName Initial CatalogMyDatabase Integrated SecuritySSPI Connection Timeout600'. here is the fix that i performed in the Web.config file. Connection string is consisted of more then one parameters. the Solution is we should modify the Default Connection Time out in the connection string. If not 1 then a call is made to the function OpenSQLConnection. You canot simply set the path to the database, and use it as a connection string. Throughout the program if I need to execute a command I build the command string and then test g_SQL_Con.State to see if it is 1.
"Data Source=" & g_strSQLServerIP & " " & _Įnd FunctionWhen this is completed the g_SQL_Con.State = 1. ' Purpose : Initializes the SQL connection When you do this, the data provider sets the waiting time (time slice) for the first connection attempt to 200 0.08 16 seconds. Public Function OpenSQLConnection() As Boolean I needed to set the command timeout not the connection timeout to get my recordset timeout to not timeout at 30 seconds Please Login or Register to view this content.