adodb Questions

3

Solved

I'm using VBA adodb to write INSERT statements in a SQL Server based on Excel row contents. I'm using parameterized queries, so my VBA code has the following form: sqlStatement = "INSERT INTO ...
Marigolda asked 5/1, 2019 at 18:33

13

I am trying to get some old VB6 code to work with SQL Server Compact. I can connect, open the database and all seems well. I can run insert select commands which work. However the ADODB.Records...
Berkin asked 17/2, 2010 at 16:57

2

I would like to run SQL queries on tables all contained within a single Excel workbook. My VBA code uses ADODB to run these SQL queries. Opening connection fails when the workbook is saved in OneD...
Salsify asked 7/1, 2019 at 21:4

1

I need to open an Access DB on OneDrive using Excel-VBA and ADODB connection or SQL. Until a month ago the object ThisWorkBook.Path give me the local path of the file store on OneDrive, nevertheles...
Lilienthal asked 10/6, 2020 at 2:47

1

Solved

According to the Microsoft documentation for the DATETIME column type, values of that type can store "accuracy rounded to increments of .000, .003, or .007 seconds." According to their documentatio...
Frigg asked 25/2, 2018 at 1:34

4

Solved

Dim rs as ADODB.Recordset set rs = ReturnARecordset 'assume ReturnARecordset does just that... 'do something with rs rs.Close set rs = Nothing Is it necessary to call rs.Close before setting it...
Carpic asked 5/12, 2011 at 1:44

2

Solved

Is there any way to set the CursorType for an ADODB.RecordSet which I obtain from ADODB.Command.Execute? I know that it is possible if I do: rs = Server.CreateObject("ADODB.RecordSet") rs.Open(cm...
Talkington asked 19/10, 2016 at 14:32

3

Solved

I am working on an Excel application that queries a SQL database. The queries can take a long time to run (20-40 min). If I've miss-coded something it can take a long time to error or reach a break...
Teeth asked 20/3, 2010 at 19:58

7

I've having a problem with a VBScript connecting to an access MDB Database. My platform is Vista64, but the majority of resources out there are for ASP/IIS7. Quite simply, I can't get it to connec...
Tricky asked 24/3, 2010 at 13:38

2

Solved

I need to join two tables on column, which in one table is defined as string and in other as integer. In both columns actual data stored is integers. This is given to me by design - I can't change ...
Lundell asked 25/12, 2014 at 6:34

5

Solved

I'm having a problem using VBA to execute a SQL query and copy the results into an Excel worksheet. When the sub excecutes, it only copies rows that are multiples of 256 (so rows 256, 512, 768 etc...
Cherilyncherilynn asked 19/4, 2012 at 12:42

6

Solved

I'm trying to read an ADOBD.Recordset object like this (my first time, so pardon my "noobness" :D): Presentation.Category categorySvc = new Presentation.Category(); ADODB.Recordset categories = ca...
Hatfield asked 14/4, 2011 at 16:14

6

Solved

I have a program that is supposed to read data from an SQL database and report back to Excel. It works as expected on a 32-bit machine, but since I moved over to a 64-bit work environment, the prog...
Lxx asked 25/2, 2015 at 20:33

1

Visual Studio 2012 VB.Net .NET 4.0 Build Machine x64 Build Config AnyCPU msado27.tlb This project is not new and has been built 100s of times over the past 2 years. With in the past 3 weeks some...
Bunkhouse asked 18/9, 2018 at 21:18

3

I am trying to open a query, which is timing out. I have tried setting the timeout property, but it doesn't seem to want to accept it. The query takes 34 seconds to execute using MS-SQL Server Man...
Gastritis asked 10/7, 2013 at 15:19

0

I have been tasked to migrate servers. This includes moving over apps I did not build, a couple of which have an ADODB.connection that I cannot seem to fix on the new servers (I only get blank scre...
Consequently asked 26/2, 2018 at 17:49

4

Solved

I'm getting an ADODB Recordset and I need to check the value of a nullable column in ASP Classic. How can I tell whether it's null? AFAIK IsDBNull doesn't exist in ASP Classic, and all the Null tes...
Stick asked 12/8, 2016 at 23:27

1

Solved

Below is the excel table i want to manipulate via SQL query in VBA. Please find my VBA code. Sub SQL() Dim cn As ADODB.Connection Dim rs As ADODB.Recordset strFile = ThisWorkbook.FullName strC...
Esparza asked 31/10, 2017 at 7:14

2

I'm programming Classic ASP against a MySql Database connecting with ADODB and MySQL ODBC 5.3 ANSI Driver, but I have some problems when setting the date in the where of a simple MySql query, when ...
Dianadiandra asked 1/9, 2017 at 19:21

1

I want to get both a return code and a result set back from a stored procedure in classic ASP. CREATE PROCEDURE CheckEmployeeId @EmployeeName nvarchar(255) AS BEGIN SET NOCOUNT ON; DECLARE @Exi...
Spawn asked 6/2, 2017 at 14:18

6

Solved

I am copying an VBA code snippet from MSDN that shows me how to grab results from a SQL query into excel sheet (Excel 2007): Sub GetDataFromADO() 'Declare variables' Set objMyConn = New ADODB.C...
Roturier asked 13/7, 2009 at 16:46

2

Solved

In .NET I simply use Application Name = MyApp inside the connection string, but when using ADO connection through VBA the Activity Monitor of the SQL Server Management Studio always shows Microsoft...
Latt asked 5/12, 2013 at 11:12

2

I have a data module with a global TADOConnection (with the default KeepConnection set the true). There are numerous datasets and queries in my existing application that use this global TADOConnec...
Okay asked 24/6, 2015 at 10:47

2

Solved

What is the difference between adodb and oledb? What is the relation between these two? Where does ado.net stands in context of adodb and oledb?
Partisan asked 22/9, 2010 at 5:1

1

Solved

we switched our DB connection from ADODB to SQLSRV and I seem to have issues with it causing intermitent delays using sqlsrv_fetch_array. I do a query in my database that returns around 426 rows w...
Sarilda asked 26/4, 2016 at 15:43

© 2022 - 2025 — McMap. All rights reserved.