Yuvipoy

Yuvipoy

  • NA
  • 7
  • 16.9k

Failed to initialize the 'current catalog'

Nov 1 2012 2:17 AM
Hi i installed sql server 2008 in my win7 machine and coded with .net, when i run the query in the .net i am getting the below error, i have used OLEDB connection for coding using System.Data.OleDb;


Failed to initialize the 'current catalog' property for one of the following reasons:
        The value data type was not the data type of the property or was not null. For example, the property was DBPROP_MEMORYUSAGE, which has a data type of In
t32, and the data type was Int64.
        The value was not a valid value. For example, the property was DBPROP_MEMORYUSAGE and the value was negative.
        The value was a valid value for the property and the provider supports the property as a settable property, but the provider does not support the value
specified. This includes the case where the value was added to the property in OLE DB after the provider was written.


Thanks!