prem_rajani
Member
Hi,
The connection string is as follows
When I try to retireve views from database I get error as :
The type of schema isnt supported by provider SQLOLEDB.1. The code for retrieving views is
Am I missing something. Pls help me out in this.
The connection string is as follows
VB.NET:
[SIZE=2]ConnectDatabase("SQLOLEDB.1", lblDataSource.Text, txtUser.Text, txtPwd.Text, , lblDatabase.Text)[/SIZE]
When I try to retireve views from database I get error as :
The type of schema isnt supported by provider SQLOLEDB.1. The code for retrieving views is
VB.NET:
[SIZE=2]dt = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] DataTable
dt = OleConn.GetOleDbSchemaTable([/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] OleDb.OleDbSchemaGuid().Views, [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Object[/COLOR][/SIZE][SIZE=2]() {[/SIZE][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE][SIZE=2], "VIEW"})
[/SIZE]
Am I missing something. Pls help me out in this.