ado

ASP Classic Fire and Forget

非 Y 不嫁゛ 提交于 2019-12-24 13:33:13
问题 I have a "Remote Control" webpage that lets me "manage" key stats for a website e.g there is a page that shows the stats, no of records, dates, times things happened, whether they have happened or not and so on. Then I have "a remote control" page which lets me fire off certain tasks such as "run job A" "set value of X to C" "delete records in table B" and so on. This is just a list of links that then runs an SQL ADO Command with an ADO Connection string. At the moment the page waits for the

Find users logged into Access database using Powershell

帅比萌擦擦* 提交于 2019-12-24 10:42:00
问题 I have a multi-user Access database which is compacted daily using a powershell script. This script can't compact the database if there are still users logged in. If there is a user logged in, I would like be able to idenify the user(s) who forgot to logout of the database and remind them to log out at the end of the day. If I were to write this in VB it would work like this: Dim cn as ADODB.Connection Dim rs as ADODB.Recordset cn.open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=...mdb")

Is there an equivalent to RDO.OpenResultset in ADO?

送分小仙女□ 提交于 2019-12-24 10:36:56
问题 all is in the title :-) Some explanation : In order to use a vb6 with C# (COM / Interop) I have a performance issue with Data Access. I don't know why but the code is four times slower in C# via Interop. I'm trying to find a workaround and I would to replace the rdo by ADO to gain performance. old code (with rdo) : strSelect = _ QUERY1 & ";" & _ QUERY2 & ";" & _ QUERY3 & ";" & _ QUERY4 & ";" & _ QUERY5 & ";" & _ QUERY6 'Fp.Cn is a rdoConnection Set Fp.rs = Fp.Cn.OpenResultset(strSelect)

How to find list of all tables in Access Database matching certain format in Delphi

泪湿孤枕 提交于 2019-12-24 08:47:43
问题 I need to compute a list of table names in a given database (MDB format), which have certain format (for example which contains DateTime field "Date Applied"). How can I do it? Note: I am using Delphi 7, ADO components, Microsoft JET 4.0 to connect to MDB type Database. 回答1: A schema may suit: Set rs = cn.OpenSchema(adSchemaColumns, _ Array(Empty, Empty, Empty, SelectFieldName)) Where adSchemaColumns = 4 rs is a recordset object cn a connection object SelectFieldName is the column name, "Date

ADO error message

≯℡__Kan透↙ 提交于 2019-12-24 07:56:35
问题 I am getting an error message while trying to update one excel table from another excel table in a different (and closed) workbook. The error only appear when the source workbook is not in a .xls format . You cannot edit this field because it resides in a linked Excel spreadsheet. The ability to edit data in a linked Excel spreadsheet has been disabled in this Access Release. This is supposed to be an expected behavior when using Access. Why am I seeing this error as I'm not working with

ADOQuery1 parameter 'card' not found

試著忘記壹切 提交于 2019-12-24 07:36:37
问题 i've used the parameter method but now i have a problem. i want to insert all my data inside the table. i need to insert 2 table at once. so heres my full coding. need help. why it says like that? ADOQuery1.Close(); ADOQuery1.SQL.Clear; ADOQuery1.SQL.Add('INSERT INTO STUDENT (CARD_ID,NAMA,MATRIC_ID,SUBJEK,KURSUS,FAKULTI,Seksyen,TAHUN) VALUES '); ADOQuery1.SQL.Add('(card,nama,matric,subjek,kursus,fakulti,seksyen,tahun)'); ADOQuery1.SQL.Add('INSERT INTO subjek2 (CARD_ID, MATRIC_ID,NAMA,SUBJEK)

Difference between ADO client-side vs server-side cursor when the SQL Server database is local?

旧街凉风 提交于 2019-12-24 07:30:50
问题 I am using SQLServer EXPRESS on a local PC to house the database and connecting with an ADO recordset from Excel/VBA. What are the implications of using adUseClient vs adUseServer for the recordset.CursorLocation property? The documentation I have found primarily deals with the pros and cons of resource availability on the server vs client BUT this is not an issue here as the server & client are the same device. 回答1: That is a bit incomplete - it's not just about the location but also the

Classic ASP ADO.PARAMETER Mapping to Oracle 10g NUMBER datatype

此生再无相见时 提交于 2019-12-24 06:50:07
问题 I have an Oracle 10g database with a field defined as NUMBER. I am converting a classic ASP (vbscript) from inline sql to parameterized. I cannot get the ADO.PARAMETER to map to a NUMBER. All I get is "Parameter object is improperly defined. Inconsistent or incomplete information was provided." I've tried decimal, numeric, with precision and scale, int, bigint, varchar, sizes and everything combination I can think of. Dim param Set param = Server.CreateObject("ADODB.Parameter") param.Type = ?

Extract Oracle LONG to string in VBA

女生的网名这么多〃 提交于 2019-12-24 06:47:26
问题 I'm having trouble getting a field of LONG out of the database and into my Excel (VBA + ADO) application. I wonder if anyone could help? Doing this has no effect at all (casting to a string, or not): myString = dataset!long_field I tried the GetChunk method, which is supposed to do what I'm hoping: myString = CStr(dataset!long_field.GetChunk(1000)) This does get something, but it's not the data I'm expecting (it's usually some garbled mess). What's weird is that, if I try running this in the

ADO Error exception handling?

大兔子大兔子 提交于 2019-12-24 02:37:14
问题 I just switched from using the BDE to ADO by replacing the Tables and Queries to its equivalent in ADO components. I'm always execute the query inside try...catch like this: //Fdm is Data Module //TEndOfDay is TTable //QEndOfDay is TQuery Screen->Cursor = crSQLWait; Fdm->QEndOfDay->SQL->Add("SELECT * FROM TEndOfDay"); try{ Fdm->QEndOfDay->ExecSQL(); Fdm->QEndOfDay->Open(); Screen->Cursor = crDefault; } catch (EDBEngineError &DBEngineError){ strError = DBEngineError.Message; Screen->Cursor =