Click here to Skip to main content
15,924,038 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Error Handling... Pin
Illegal Operation15-Aug-05 20:31
Illegal Operation15-Aug-05 20:31 
GeneralRe: SQL Error Handling... Pin
ToddHileHoffer16-Aug-05 10:26
ToddHileHoffer16-Aug-05 10:26 
Generalprimary key performance Pin
ppp00114-Aug-05 20:33
ppp00114-Aug-05 20:33 
GeneralRe: primary key performance Pin
Colin Angus Mackay14-Aug-05 23:09
Colin Angus Mackay14-Aug-05 23:09 
GeneralRe: primary key performance Pin
ppp00114-Aug-05 23:29
ppp00114-Aug-05 23:29 
GeneralRe: primary key performance Pin
Colin Angus Mackay14-Aug-05 23:39
Colin Angus Mackay14-Aug-05 23:39 
Generalno item error Pin
Anonymous13-Aug-05 23:37
Anonymous13-Aug-05 23:37 
GeneralClosing a connection opened by ADODC Pin
Maitre Capelo13-Aug-05 2:14
Maitre Capelo13-Aug-05 2:14 
Hi,

I have written a VB6 program that uses a datagrid bound to a ADO data control. I do the following:

Adodc1.ConnectionString = "DSN=" & m_objSentryDB.DSN & ";uid=" & strUserID & ";pwd=" & strPassword
Adodc1.RecordSource = strSQL

Set DataGrid1.DataSource = Adodc1

This is working fine, however, when I want to close the program, how do i CLOSE the connection opened by the ADODC control? I am using a sybase database, and they is basically one ghost connection on the server remaining after each use of the program. I looked for a 'close' method on the ADODC object, but to no avail.

Also, what is the correct way to refresh the grid after the underlying table has changed? I use adocdc1.refresh, but this seams to knock out the display properties of the grid (size, caption etc).

Any ideas?

thanks





Maitre Capelo
Generalado.net and sql Pin
Micu Valentin12-Aug-05 10:54
Micu Valentin12-Aug-05 10:54 
GeneralRe: ado.net and sql Pin
Colin Angus Mackay14-Aug-05 23:10
Colin Angus Mackay14-Aug-05 23:10 
GeneralRe: ado.net and sql Pin
Micu Valentin14-Aug-05 23:25
Micu Valentin14-Aug-05 23:25 
GeneralRe: ado.net and sql Pin
Colin Angus Mackay14-Aug-05 23:36
Colin Angus Mackay14-Aug-05 23:36 
GeneralRe: ado.net and sql Pin
Micu Valentin15-Aug-05 4:32
Micu Valentin15-Aug-05 4:32 
GeneralRe: ado.net and sql Pin
Colin Angus Mackay15-Aug-05 4:59
Colin Angus Mackay15-Aug-05 4:59 
GeneralRecord Locking/Updating Datasets Pin
eatwork12-Aug-05 4:59
eatwork12-Aug-05 4:59 
GeneralRe: Record Locking/Updating Datasets Pin
ToddHileHoffer12-Aug-05 6:30
ToddHileHoffer12-Aug-05 6:30 
GeneralRe: Record Locking/Updating Datasets Pin
Colin Angus Mackay14-Aug-05 23:18
Colin Angus Mackay14-Aug-05 23:18 
GeneralHiding data in SQL Server/MSDE Pin
D2Necro12-Aug-05 1:24
D2Necro12-Aug-05 1:24 
GeneralRe: Hiding data in SQL Server/MSDE Pin
Colin Angus Mackay12-Aug-05 2:40
Colin Angus Mackay12-Aug-05 2:40 
GeneralRe: Hiding data in SQL Server/MSDE [additional] Pin
Colin Angus Mackay12-Aug-05 2:43
Colin Angus Mackay12-Aug-05 2:43 
GeneralRe: Hiding data in SQL Server/MSDE [additional] Pin
D2Necro12-Aug-05 3:12
D2Necro12-Aug-05 3:12 
GeneralRe: Hiding data in SQL Server/MSDE [additional] Pin
Colin Angus Mackay12-Aug-05 3:26
Colin Angus Mackay12-Aug-05 3:26 
GeneralRe: Hiding data in SQL Server/MSDE Pin
Vasudevan Deepak Kumar15-Aug-05 0:32
Vasudevan Deepak Kumar15-Aug-05 0:32 
Generalrestore database a from f:\x.mdb do you have any adiea Pin
Anonymous12-Aug-05 1:08
Anonymous12-Aug-05 1:08 
GeneralRe: restore database a from f:\x.mdb do you have any adiea Pin
ToddHileHoffer12-Aug-05 6:32
ToddHileHoffer12-Aug-05 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.