Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok here is my situation. I have an AS400 database I am trying to connect to. If I use in "TOOLS" - CONNECT TO DATABASE it shows for provider IBM AS400 OLE DB Provider. Then I goto connection and for my DATA SOURCE I put in \\nameofdatabase\nameoffilearea and then insert the username for this file and password and I get this error message when I test connection

"Test connection failed becauase of an error in initializing provider. Unspecified error"

Any ideas what this means and a resolution?

 

I have a 2nd one. I tried a different connection which I red from redbook. I used for provider Microsoft OLE DB Prvider for ODBC Drivers. then on the connection I use connection string which when I build I get the built string to the database I am using. Then I test connection and it is successful. t hen I click ok and get the following message

"Unable to connect to database, It is only possible to connect to SQL Server Desktop Engine databases and Microsoft Access databses with this version of Visual Studio"

Any ideas what this one means and a resolution?

 

Thanks

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi
Posted (edited)
OK I found my problem. I used the odbc connection, but have to hard code it into the program, Can't use the TOOL / CONNECT TO DATABASE Edited by techmanbd
Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...