o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

URGENT: Connection to SQL Database -

I've searched the site but cannot find a solution to my SQL Connection problem.

I am trying to connect to an SQL Database located on a NT4 Server (i'm no expert on SQL databases). The database is using SQL + NT Authentication, and I am supplying the Administrator username and password.

It returns the message :

Run Time error -2147217843 (80040e4d)

Logon Failed for user 'Administrator'.

My code is :

Private Sub Command1_Click()
Dim objConn As ADODB.Connection
Set objConn = New ADODB.Connection
objConn.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;UID=Administrator;PWD=xxx;Initial Catalog=master;Data Source=WEBSWEEPER"

objConn.Open
If objConn.State = adStateOpen Then
MsgBox "Connection success"
Else
MsgBox "connection failed"
End If
End Sub


I wonder is there something in the database that needs to be started to allow me to connect. The database is up and running. I can create a DSN to the database that tests sucessfully, but I cannot get that to work correctly from VB6 either.

Any help much appreciated.
B.

 

Lost database connection in Server Explorer - URGENT PLS -
Hi, Cant connect to my database. Ihave re-installed SQL Server Express Edition to have the Advanced Services and must have changed some settings. This is my error message: Failed to open connection to the database "Generating user instances in SQL Server has been disabl


Need a constant value -
I need the value for the obsolete constant WM_CTLCOLOR. None of the C header files shipped with Win2K SDK have it. Instead they ask us to use WM_CTLCOLORSCROLLBAR (for notification of coloring the scroll bar for instance) etc. My MSDN (Oct 2001) does not have documentation of WM_CTLCOL


Urgent - Corrupt Database -
AS per my previous thread I have an access97 database which keeps corrupting. I have this problem at the moment and the repair utility will not run as it thinks it still has an open connection. Looking in the ldb file there is no one listed as having a connection. How can I get arou


Help to close the connection with database -
Dear friend I m creating asoftware in which i am trying to provide the restore database option it will restore the database to previous backup of the database . The problem is when i try to resotre the database it is working fine but when i use the database in one or two windows. I


Urgent - Urgent-Urgent - Urgent -
hi to all Unfortunatly i have deleted all rows in my Table. Using Delete from TableName I did't Use any BiginTrans. How can i get back my Deleted Rows? Is we have any way ? Any Temp Database? Save me... Urgent Thanks


URGENT: Connection to SQL Database -
I've searched the site but cannot find a solution to my SQL Connection problem. I am trying to connect to an SQL Database located on a NT4 Server (i'm no expert on SQL databases). The database is using SQL + NT Authentication, and I am supplying the Administrator username and passwo


Access two database thru DSN less connection -
Hi I need to access two database with DSNLESS connection. I am using one connection object.When i tried to connect two open two database through one connection object it gives error Object required.What shall i do?please help me out cnn=server.createobject("ADODB.Connect


SQL Server connection blocked -
Hi, I have built up my first SQL SERVER Express Edition database. I have made a previous database and deleted it cos I had input done something and it has gone corrupted. Now Ive built a new one with a different name but somehow I cannot connect it from Visual Studio. The databas


ADO.Net with OLE Db -
hi, i am using ole db to connect access database through ado.net. after connection is made i want to populate all the tablenames in the database into my listbox on the form. and by default the 1st table should be opened and the data should get populated in the dbgrid. pls guid


urgent! OLE DB drivers! help........... -
i'm having this problem about my program. it has been deployed. but when i set it up to a pc without microsoft access.... it says: "Microsoft Jet engine cannot open the file - my database! how can i solve this problem? i'm using an adodc connection with msjet engine 4.


Connecting vb with Remote SQL server Database -
Hi Everybody I am trying to connect my vb6 application with SQL Server 7. My database is on database server machine which has ID ADMIN. Database instance name is DBPIMS. When I try to connect this database within any machine of LAN, it is working fine. But If I want to connect from


I'm getting confused pls help (Very Urgent) -
I, m running an insert Quiery statement that inserts in a table sitting on an oracle database ,and i keep on getting the error below. what might be the course? very Urgent i have to submiton friday Pls, Pls, Pls HERE IS MY CONNECTION STRING AS REQUESTED Set objConn = Server.Cre


Error (0x80004005) -
This should really be in ASP section but its very urgent. I'm using an access 2000 database with iis 5.0 in win 2k prof. Its an ASP application. The asp page is connecting to the DB with an odbc connection. The following error occurs: Error Type: Microsoft OLE DB Provider for


its urgent -
hi all I [OSTED THIS TO GENERAL SECTION EARLIER THEN REALISED THAT IT SHOULD BE UNDER DATABASE SECTION. SO NOW PUTTING IT HERE i am new to vb and just finished a project in which i used mdb files. I used oledb to open the database. Now i am planning to use mysql. I do not know h


[2005] SQL server and connection problems - Urgent help needed -
Hi all, I have been experiencing this problem alot and in need to get it solve. I do not know if I have changed some settings unknowingly as I am still very new to the application itself. I have attached 2 files in my post. The first picture depicts my problem in adding a connection


urgent DB2 AS400 -
Hi, Im accessing an AS400 database. I can connect the the AS400 fine using this connection string... Set dbConnect = New ADODB.Connection dbConnect.ConnectionString = "Provider=msdasql;Driver=CWBODBC;Data Source=System3;Prompt=3;" after I connect, I dont know how to ac


Urgent DB2 & AS400 -
Hi, Im accessing an AS400 database. I can connect the the AS400 fine using this connection string... Set dbConnect = New ADODB.Connection dbConnect.ConnectionString = "Provider=msdasql;Driver=CWBODBC;Data Source=System3;Prompt=3;" after I connect, I dont know how


Copy Database in SQL Server -
Hi Guys- I have a database in SQL Server name MICS. Now I like to copy this Database in another SQL server. Unofrtunately I dont have network connection between these two server. Can anybody tell me how can I copy my Database in another SQL Server? I am really in big trouble! Seeking


Mysql Urgent -
HI ALL, I HAD DOWNLOADED MYSQL ODBC AND CONNECTED SUCCESSFULLY MY LOCAL MACHINE. BUT I HAVE A PROBLEM WHEN CONNECTING TO SERVER MACHINE . I CHECKED THROUGH VBFORUMS BUT I DIDN'T GET ANY PERFECT ANSWER... IF ANSWER THERE BUT IT NOT WORKING. I USED THE CONNECTION STRING oConn.


Database opening problem( Urgent!!!!!!!) -
Please treat this urgent!!!! I am working on VB-6 and Access-97. I have new machine with office 2000 loaded on that.. If i am using my VB project which is created on VB-6 and Access-97 on new machine, it gives the database error (Unauthorized database format). I have already upgraded


[2008] Monitor Database Connection -
How can I globally trap changes in the state of a database connection. I am communicating with a remote MySql database over a LAN and sometimes the connection is lost. What I want is that when this happens a message box pops up to advise the user that the connection has been lost and


ASP ( its urgent ) -
Hi everyone I am having a problem in saving data to Access Database from an ASP page. I have opened connection to the database through ADODB.Connection. I have a recordset opened.. ADODB.Recordset the code seems to be as such :- dim con dim rs dim sql set con = Serv


ADODC Connection Blues -
Hello I am working on a vb6 front end to an access database. On one of my forms I have an ado data control, with several text boxes linked to the database via the ado control. As long as the connection string in design contains the exact path to the database all is well. However, I


Dynamic Database Linking - CR XI -
Hi bros.. I am using CR XI. I designed a report and added test SQL Server 2000 database to view and test the report results. Now in my program, I have to connect to the database using a dynamic connection string. e.g in deign I am using testdatabase. Once design is done, I have t


Super Urgent - ADO -
I created an Excel spreadsheet that connects to an Access Database using ADO. The connection works fine on my machinge because I have ADO dlls. However, on my end user machine they don't. How do I install ADO connection on there machine. I tried copying my ADO dlls to there syste


still a problem in database connection -
hi i am attaching the code and the form i want it to be connected with the database. i wud like a suggestion on what to use to use the next previous buttons for navigation or use the ADOdc ones pls help and pass me the code coz av tried it it only displays the first record wen i run a


SQL not releasing connection -
I have an app that connects to an SQL database and inserts data into it. Once the data is in that database a stored procedure is executed that does some things and then the connections are set to nothing and the app then uses SQLDMO to drop the database. Actually, it uses the killdat


comman Connection -
hi i am a vb programmer .. petty new to asp.net as we have a public connection object in module can we have a connection. i have some events which connection to database and retrive the database.... can i have a .. if so how and where do i need to declare it regards


Open Database Connection -
I noticed that many of programmer in this thread prefer to establish connection to database on each sub/function when trying to do any query (select or update) and close the connection when exiting the form. Is that true? I would normally establish connection when the user login and m


Cryatal Report Urgent -
HI All, Currently i am working crystalreport7 with ODBC connection. It working well. But In my project i am using Vb ADO connection. Only crystal report using the ODBC connection. How can i avoid it. I had seen option for using connection string in crystalreport. But i dont kn


Prevent opening of mdb file externally. -
Hi, Is it possible to open connection in such a way.So that no one can open the same mdb file through explorer/access when a connection is active through vb code.I have tried to set mode property to open mdb exclusively.But database still can be opend from explorer/access. Urgent


Database connection handling -
Hi all, I'm just facing with the development of an application that requires to work in a LAN environment. Which is better? 1) Open the connection to the database once at application startup and leave it opened until the end of the execution of my application. OR 2) Open t


web service setup, getting user information on installing [v-urgent] -
Hello, VS 2005 I have created a web service and the web service as a connection string in the config file. Only the user will know the connection string details when they first install the web service. i.e. server, user id, database etc. I have created the setup using the m


Detecting a Database Connection -
I was wondering if anyone knows how I can detect whether there is a connection to a particular database. The database is a Sybase SQL database, and I'm currently using ODBC to connect to the database, but I think I'm going to convert to ADO in the future. So if you could tell me how


Progress Bar while connection to database -
Hi there! I am developing an application that connects to a MySQL database and because of the bat Internet connection the connection to the database last a few seconds. I would like to use a progress bar while connecting to database. I appreciate if you could help me.


Multiple Usage but Single Connection -
Hello guys, To start off with the scenario where i am facing a problem ... I validate a user and give him access to a particular server with a database.. [ we have multiple serv/dbs ]. In the form where i validate him i make a connection to the database and check for his permissi


two database query -
HI, I have a query base on two database. I'm joining one table from a database with abother one from a different database. I get an ODBC error which i think is due to the connectivity to the second database. I only have a connection to the current database, for the second database i d


Keeping A Database Connection Open -
I am looking for the pros and cons of keeping a database connection open throughout the life of an application versus opening a new connection each time you want to make a call to the (SQL SERVER)database. The application i am writing will have hunderds of users, and makes use of AD


how to show database connection window -
Hi, Any body know how to show database connection window which is displayed when creating new connection for ado data control.I need to show that dialogue box programatically so that advance user can create connection on their own with- out knowing each and every details about c


why the connection is closing -
hai all, i have a dll component which is used to connect to the database. i am using this dll using DCOM. In my DLL, i have taken a ADODB.Connection globally. while at the time of login i am creating a connection to the database. after that if i open any screen in my client ap