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

Regarding ADODB connection -

I'm using ADODB connection object in Visual basic to access data from SQL server. Should i close the connection while ending the application? or will the connection automatically closes when closing the application?
Thanks for any help.

Regards
Sujatha.

 

Is the Connection closed -
Question??? How do I check to see if 1 or the other connection to a database are closed or not? Dim cnnDVD As New ADODB.Connection Dim rstDVD As New ADODB.Recordset Dim rstDVDCheck As New ADODB.Recordset Dim strSQLDVD As String


[2005] adodb.connection is no more -
Error 1 'Connection' is ambiguous in the namespace 'ADODB'. dim conn as new adodb.connection conn = new adodb.connection what am i doing wrong here? how do i make a conenction like this and also how do i do it for a recordset? dim rs as new recordset is what i us


Can't Figure Out Connection String -
Hello, I have a ODBC Data Source for a SQL Server. The text connection was good. I am trying to connect with my VB application to the database with ADODB. I get a "Operation is not allowed when object is closed message". Basically, my connection is not open and methods fai


Checking for NULL ADODB.Connection (RESOLVED) -
Hello everybody I have this problem. When a form of my application is closed, it eventually closes the ADODB.Connection to the MySQL database. Unfortunately, on some occasions the reference might not have been set due to an error of some kind. How can I check to see if an ADODB.


Multiple Selects(resolved) -
If I am populating many different controls all with different tables within the same database do I need to have multiple rs and cn statements ie. Private adoRS As ADODB.Recordset Private cn As ADODB.Connection Private adoRS2 As ADODB.Recordset Private cn2 As ADODB.Connectio


ADODB.Connection Issue -
hi everyone ... i use adodb.connection and sql db i connect to my db through adodb connection. then i activate my application role with: adoCon.execute "sp_setapprole 'myrole', 'myrolepwd'" first time i open the connection its work fine. then i close the connec


Regarding ADODB connection -
I'm using ADODB connection object in Visual basic to access data from SQL server. Should i close the connection while ending the application? or will the connection automatically closes when closing the application? Thanks for any help. Regards Sujatha.


Type ADODB.Connection is not defined -
Hi all. Im a Delphi programmer by trade but I recently got a copy of Visual Studio 2005 so I could write some applications for PDAs. Anyway, Im trying to connect to a MS SQL Server with ADO, and all the help Ive read tells me to do something like this : Public Class Form1 Di


Best way to organize ADO objects in my program -
I have a VB6 program with about 25 forms that manipulates data in an ACCESS database via ADO. Originally I had the bright idea to establish a data connection ONCE using a global ADODB.Connection object variable, and then create, open, and close ADODB.Recordsets in each form as requ


VB -->ADODB-->Access -
I have all my fields populted. On to the next part. How do I move around from record to record? This is what I have so far for the record connection. Private cn As ADODB.Connection Private rs As ADODB.Recordset Private Sub Form_Load() Set cn = New ADODB.Con


Declare Connection Once for All -
I notice that i have to use these codes below very often. I would like to declare Once in the Module and call from other forms. Dim adoConnection As ADODB.Connection Dim adoRecordset As ADODB.Recordset Dim ConnectString As String 'Create a new Connection Set adoConnection =


New adodb.connection -
Hello everybody, could anyone tell me the difference between Set Rs = new adodb.connection or Set Rs = adodb.connection Thanks Bjorn


Transaction Processing -
Hi Everyone, I just need some information about Transactions in VB 6.0, so here we go. Sub Test1() Dim connA as ADODB.Connection Set connA = New ADODB.Connection connA.BeginTrans .... Code Here ..... Call Test2 'If no problems then Commit connA.CommiTrans '


"Simple" problem with ADO -
I'm working on making the connection between VB and and access database using ADO. For some reason, everytime I run the program, I get a compile error right from the start on the declaration of the ADODB.Connection, ADODB.Command, or ADODB.Recordset. Dim objConn As ADODB.Command D


connection got error -
im using ms access as my database, adodb connection.. the error is : is not a valid path? here is the code. [code] public cn as new adodb.connection public sub connection() set cn = new adodb.connection cn.connectionstring = "Provider = Microsoft.Jet.OLEDB.4.0;Data


.ldb file not getting deleted after closing the adodb.connection -
Hi, We open a database connection with MS-Access using ADODB.Connection, and even after closing the database connection, the .ldb file is not getting deleted. What will be problem? Even we have checked the state property of the Adodb.connection. It is showing 0. We are using F


DSN-less connection to ORACLE -
DSN-less connection to ORACLE? can anyone tell me the connection string i should use to connect to a oracle database using the ADODB.Connection of VB? ADODB.Connection.open ???? thanks


Connect to SQL database using code -
I have search the board but can't really find anything that explains how to connect to sql database using code. I used to use access and this is how I used to connect to that database I created a module and used this code. What would I do different for sql? Option Explicit Pub


closing ado -
ok this is very simple.. but i am new to asp stuff how do i close a record set?? i've created it by Set adoLink = Server.CreateObject("ADODB.Connection") set adoCmd = server.createobject("adodb.command") set adoData = server.createobject("adodb.re


Difference between Opendatabase & ADODB.Connection -
Hi Guys, i'm a bit lost here: what is the main diffrence between Dim Con as adodb.connection set con = new adodb.connection ... con.open Dim rs as adodb.recordset set rs = new adodb.recordset set rs.activeconnection = con ... rs.open when i do: rs.fields("xyz").


Object name remains lowercase -
When I create a new ADODB connection object in the IDE, the class name always displays as lower case in my code. For example Code displays as Dim oConn as ADODB.connection instead of Dim oConn as ADODB.Connection The code compiles and runs fine. What's going on?


ADODB.Connection array -
Is it possible to make ADODB.Connection array like this: Dim ConnArray() AS NEW ADODB.Connection ??


Use multiple datareader -
Hi all!!!!! In VB6.0 we use to write a code like this........... ////////////////////////////////////////////////////////////////////////// Dim con as adodb.connection Dim rs as adodb.recordset Dim rs1 as adodb.recordset set con=new adodb.connection with con .pr


different ways of connection -
Hi. Some ppl say you should conect to a DB using: dim db as database dim rs as recordset .....etc while others say: dim ADOcn as ADODB.connection dim ADOrs as ADODB.recorset If i get it right i think the 2nd way in ADO and the 1st one is DAO. Now: What are the difference


recordset.recordcount = -1 -
I am getting a recordset from a database, by running a stored procedure, using the adodb control (is that the right term) ie Dim sConnect sConnect = "Provider=SQLOLEDB.1;" & _ "Persist Security Info=False;" & _ &quo


time out error when saving to SQL database -
I keep getting random time out errors when saving to the SQL database. We have been running the same program for close to 2 years and have never had this problem. We have not changed any of the program. Here are some of the lines used to connect and save to the database. dim db


ADODB.Connection with SP problem -
Hi, I'm using ADODB to connect sql server. i created a connection. i run a stored procedure from connection object, it's not returning resultant recordset. The strored procedure will return recordset Can anyone clarify that?


need some help with a dbase Connection string in Module -
I tried to do this but I'm not sure how. Haven't worked with modules yet so... I made my connection work but when I try to put this in the module it doesn't read it and I get an error This is what I have in the form I am working with now: General Dec Dim cn As ADODB.Connection


Adodb References -
hello guys..... what is the suitable "references" to use ADODB? here my sample code: Option Explicit Public Cnn As ADODB.Connection Private Sub MDIForm_Load() Set Cnn = New ADODB.Connection Cnn.ConnectionTimeout = 30 Cnn.ConnectionString = "Provide


MDAC 2.6 Stream XML Recordset -
See below, when i try to open my string "XML", i got this error Run-time error '3709': The application requested an operation on an object with a reference to a closed or invalid Connection object. i'm on MDAC 2.6 I know there a bug report on Knowledge DB, but the solut


ActiveX dll Class & ADODB Connection problem -
Howdy, I'm developing an ActiveX dll and having some major problems I want my dll to have basically house functionality to create some reports from a database to a disk file. I have made a class for each report but am having trouble with the database connection in the class object.


Opening Connection to Acces DB 97/2000 -
Hello World, Could anyone help me with a list of (all ?) possiblities of provider information to open a ADO connection to a access 97 and/or access2000 DB. what i mean exactly : Code: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New ADODB.Connection


HELP,i just cldnt find it! -
Private Sub Form_Load() Dim conn As ADODB.Connection Dim rst As ADODB.Recordset set conn=new ADODB.Connection Set rst = New ADODB.Recordset conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ "Dbq=sat.mdb;" end sub the code ab


Problem with SQL & ADO -
Hello, I'm new with VB6 and ADO, even if I have some experience with VC++ 6 I'm now trying to use VB6 to send SQL commands to an SQLServer database using ADO. So I created a connection and a recordset : Dim cn as ADODB.Connection Dim rs as ADODB.Recordset Created the ob


trouble making a connection to ADO with VB5 -
Hi I am trying to make a connection to an access database with ADO technology using VB5 here is my script: Private Sub cmdfilllist_Click() Dim adoconnection As ADODB.Connection Dim adorecordset As ADODB.Recordset Dim connectstring As String '-create a new connection


Making a report through VB (with Access 2000 and ADODB) -
EDIT: I'm palnning to use Access 2000 and VB via ADODB connection Is it possibe using ADODB connection that I can make a report and show it to the user? Or will this need to be done in Access? Thanks for any posts in advance!


adodb connection code -
Hi i am new in asp pl send me connection code dim con set con=server.createobject("adodb.connection") con.connectionstring="provider=SQLOLEDB;" now my data source=sqlserver2003 database is js2 user id=xyz password=yz pl reply me as ASAP thanks to all


DAO through ASP -
ok in asp u can do this: server.CreateObject("ADODB.Connection") to create an adodb connection how can i use the same method to create a dao connection? thanks in advance Kris


Ddl -
Hello everybody Can I use the execute method of an ADODB.Connection object to execute a DDL SQL command? e.t.c. I would like to create an InnoDB table from within VB on a MYSQL server. Can I use something like this? Dim connTechnician As ADODB.Connection Set connTechnician =


Dumb ADO Question -
I am relearning ADO and have forgotten basics. Here is what I am doing (step 1) I am creating a login in screen I have set the Rs = new adodb.recordset and conn = new adodb.connection However, what would the connection string be for an access only database? I know I am mis