complete vb.net program without database

F

fokkol

i have received a program.
when i try to connect to database
en run the program i received a error :(

Public Sub DatabaseConnect()
cnn.ConnectionString = ("Provider=SQLOLEDB.1;Integrated
Security=SSPI;Initial Catalog=Face To Face;Data Source=(local);")
cnn.Open() <-- error
index = 0
End Sub

/////////////

An unhandled exception of type 'System.Data.OleDb.OleDbException'
occurred in system.data.dll

////////////

ik have declarded CNN.

Public cnn As New OleDb.OleDbConnection()

can anybody give some hints ?

thnx in advance
 
C

Cor Ligthert

Hi Fokke,

I think this is the only thing I can give you now.

http://www.connectionstrings.com/

It seems that your connection string is false or you have no rights to the
database.

(I get the idea you are connecting to a SQL or a MSDE databaset, than I
would choose SqlClient instead of OleDb)

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top