+2005-16-11 Boris Kirzner <borisk@mainsoft.com>
+ * OleDbConnection.cs: Added override for CreateException().
+
2005-11-07 Konstantin Triger <kostat@mainsoft.com>
* OleDbConnection.cs: retrieve the StringManager from AppDomain
return new OleDbException(e,this); \r
}\r
\r
+ protected override SystemException CreateException(string message)\r
+ {\r
+ return new OleDbException(message, null, this); \r
+ }\r
+\r
public DataTable GetOleDbSchemaTable (Guid schema, object[] restrictions)\r
{\r
DataTable schemaTable = new DataTable("Tables");\r
}\r
// todo : what should we do if all the timeout spent on port resolution ?\r
if ("-1".Equals(port)) {\r
- port = StringManager.GetString("SQL_CON_PORT", "1433"); //default port of MSSql Server 3167.\r
+ string message = String.Format ("Unable to retrieve the port number for {0} using UDP on port 1434. Please see your network administrator to solve this problem or add the port number of your SQL server instance to your connection string (i.e. port=1681).",ServerName);\r
+ Exception e = CreateException (message);\r
+ throw e;\r
}\r
ConnectionStringHelper.AddValue(UserParameters,StringManager.GetStringArray("CON_PORT"),port);\r
break;\r
\r
protected abstract SystemException CreateException(SQLException e);\r
\r
+ protected abstract SystemException CreateException(string message);\r
+\r
public override void Close()\r
{\r
try {\r
+2005-16-11 Boris Kirzner <borisk@mainsoft.com>
+ * AbstractDBConnection.cs: TARGET_JVM fix. Throw exception if MSSQL port
+ resolution failed.
+
2005-14-11 Boris Kirzner <borisk@mainsoft.com>
* AbstractDBCommand.cs: TARGET_JVM fix. Provider name can be in any case..
+2005-16-11 Boris Kirzner <borisk@mainsoft.com>
+ * SqlConnection.cs: Added override for CreateException().
+
2005-09-14 Boris Kirzner <borisk@mainsoft.com>
* SqlConvert.cs: Fix SqlDbType to JDBC type convertion.
return new SqlException(e, this); \r
}\r
\r
+ protected override SystemException CreateException(string message)
+ {\r
+ return new SqlException(message, null, this); \r
+ }\r
+\r
private void OnSqlInfoMessage (SqlInfoMessageEventArgs value)
{
if (InfoMessage != null) {