473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

complete vb.net program without database

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
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #1
2 905
Hi,

Do not have the Face to Face database installed?

Ken
-----------

"fokkol" <fo***@scherpenzelers-dot-nl.no-spam.invalid> wrote in message
news:40**********@Usenet.com:
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
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
HYPERLINK "http://www.usenet.com"http://www.usenet.com


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004
Nov 20 '05 #2
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
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

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: IGC | last post by:
I have a requirement to record in a database when a file is finished downloading to the end-user. Currently when a user clicks a download icon for a file it directs to an ASP page that records the...
1
by: gaosul | last post by:
I am non-programming scientist and I am using a Program called Easyarticles from Synaptosoft Inc., which is based the database program Access. Unfortunately, the owner of this company has...
2
by: Steve Richfield | last post by:
First, thanks Wayne Morgan, Cost Budde, and Saintor for all the help you've been in getting me through the field of hidden mines in Access. Most of the program now works, so hopefully I am nearing...
4
by: nan | last post by:
Hi all. Anyone has an idea of how to open a file without know the complete name of it, without opening the directory (with opendir) and test each file? For example, I have this: ...
8
by: John | last post by:
Hi, I am developing an application using VB.Net and hope that the textbox can process features which are similar to auto-complete features in Window. For example, when user types "ap" in a...
7
by: GeorgeAtkins | last post by:
I want to create a web-based form or page that consists of a series of formatted questions and answers. The form will resemble an existing paper form. When the form is filled in, I want the user to...
1
by: diggy5 | last post by:
Hey guys, I have a problem with a php page Im trying to encode. The error im reciving is: The code is as follows: <?php $JPCACHE_VERSION="v2"; /*
1
by: DennisBetten | last post by:
First of all, I need to give some credit to Mahesh Chand for providing me with an excellent basis to export data to excel. What does this code do: As the title says, this code is capable of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.