473,383 Members | 1,725 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,383 software developers and data experts.

Database Connection

Hi,

I am using the ADODB Connections for SQLServer2000. When I Connecting to the SQL Server I am getting an error

"SQL Server Does not Exits or Acess Dennied"

so please tell how can we solve this error.
Oct 10 '07 #1
5 996
jamesd0142
469 256MB
My guess is your connection string, or file path have some error in it,.

ensure the path to your database is correct.
-------
Are you using the app.path method? if yes then this can cause problems if you put you *.mdb file in the wrong location.
----------
Oct 10 '07 #2
My guess is your connection string, or file path have some error in it,.

ensure the path to your database is correct.
-------
Are you using the app.path method? if yes then this can cause problems if you put you *.mdb file in the wrong location.
----------

I am Using the SQL Server. Sometimes it will connected to the SQL Server and some time it will not connected to the SQL Server.
Oct 10 '07 #3
jrtox
89
I am Using the SQL Server. Sometimes it will connected to the SQL Server and some time it will not connected to the SQL Server.
Hello,

Check your SQL Server if its Running everytime you used it.

what you are using in establishing connection from your VB to your DB?

Regards
Ervin
Oct 10 '07 #4
Hello,

Check your SQL Server if its Running everytime you used it.

what you are using in establishing connection from your VB to your DB?

Regards
Ervin
I am using the ADODB Connection for the SQL Server.

the Connection String is used by me

conn.ConnectionTimeout = 15
conn.ConnectionString = "driver={SQL Server};server=" & Server2003 & ";UID=" & EmployeeLogin & " ;password=" & mahesh & ";database=" & emplogin & ""
conn.Open
If conn.State <> adStateOpen Then
MsgBox ("SQL Server is not started. Please contact administrator")
End If
connectDatabase = enumDBConnection.DBConnected

Here EmployeeLogin is the Seperate User created by the admin with all permissions for accessing the emplogin database.
Oct 10 '07 #5
jrtox
89
I am using the ADODB Connection for the SQL Server.

the Connection String is used by me

conn.ConnectionTimeout = 15
conn.ConnectionString = "driver={SQL Server};server=" & Server2003 & ";UID=" & EmployeeLogin & " ;password=" & mahesh & ";database=" & emplogin & ""
conn.Open
If conn.State <> adStateOpen Then
MsgBox ("SQL Server is not started. Please contact administrator")
End If
connectDatabase = enumDBConnection.DBConnected

Here EmployeeLogin is the Seperate User created by the admin with all permissions for accessing the emplogin database.

Hello,

Maybe my attachment(sample.zip) will help you, just the Connection string.

Follow this link
http://www.thescripts.com/forum/thread719352.html

Regards
Phils Ervin
Oct 11 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mudge | last post by:
Hi, My hosting provider only allows me to use 50 connections to my MySQL database that my Web site will use. I don't know what this 50 connections means exactly. Does this mean that only 50...
11
by: pradeep_TP | last post by:
Hi all, I have a few questions that I have been wanting to ask for long. These are all related to ADO.net and specifically to conenction to database. 1) If I have opened a connection to a...
3
by: R Reyes | last post by:
Hi, I'm trying to modularize my database connections a little better and get more out of my project with less code. First check out this common dbOpen() function inside class clsDatabase. I...
14
by: Nick Gilbert | last post by:
Hi, I have an asp.net application which runs from a CD-ROM using Cassini. As such, it is single user only. The application connects to an Access database when it is loaded, and keeps the same...
7
by: Lau Lei Cheong | last post by:
Hello, Actually I think I should have had asked it long before, but somehow I haven't. Here's the scenerio: Say we have a few pages in an ASP.NET project, each of them needs to connect to...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
6
by: Arsalan Ahmad | last post by:
Hi all, I am creating a website in which in an Item detail page there are a number of web controls (7 or 8) and what is happening that inside each of control's Page_Load() function I am creating...
22
Frinavale
by: Frinavale | last post by:
How To Use A Database In Your Program Many .NET solutions are database driven and so many of us often wonder how to access the database. To help you understand the answer to this question I've...
1
Curtis Rutland
by: Curtis Rutland | last post by:
How To Use A Database In Your Program Part II This article is intended to extend Frinny’s excellent article: How to Use a Database in Your Program. Frinny’s article defines the basic concepts...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.