jet

Microsoft JET SQL Query Logging or “How do I debug my customer's program?”

独自空忆成欢 提交于 2019-12-21 20:37:11
问题 The problem: We use a program written by our biggest customer to receive orders, book tranports and do other order-related stuff. We have no other chance but to use the program and the customer is very unsupportive when it comes to problems with their program. We just have to live with the program. Now this program is most of the time extremely slow when using it with two or more user so I tried to look behind the curtain and find the source of the problem. Some points about the program I

MS Access XMLImport from text or stream instead of file?

我怕爱的太早我们不能终老 提交于 2019-12-20 04:54:07
问题 Any easy way to do the equivalent of Application.ImportXML, but with the XML as a string or text stream instead of a file? (In Access 2003.) I want to insert records to a table with a lot of fields with data from different places in my application, and don't want to go through the hassle of setting up a parameter or dynamically generated query, I thought it might be easy to simply generate the XML and import it, but I'd rather not have to write out a file and read it back in if I can help it.

Get all field names in Microsoft Access Table using SQL

拜拜、爱过 提交于 2019-12-20 03:24:04
问题 How do I get all the field names in a Table in Microsoft Access using JET SQL? Thanks all 回答1: I was making using of the ODBC extension in PHP and it has a function to do this! In case anyone needs this in the future its, odbc_tables! 来源: https://stackoverflow.com/questions/2221250/get-all-field-names-in-microsoft-access-table-using-sql

Why is this very simple SQL query failing in MS Access?

寵の児 提交于 2019-12-19 07:39:20
问题 I have a query that by all rights should not possibly fail, and I can't for the life of me figure out why INSERT INTO Grocery_Store_Prices(Store,Item,Brand,Price,Unit,Quantity,Note) VALUES("Kroger","Cheesy Poof","Cartman",0.51,"fart",15,"what is going on"); When I try to run the query I get "Syntax error in INSERT INTO statement" with the Note field highlighted. If I omit the Note field and its value, the query works fine. Is there something really obvious I'm missing, or is there an Jet SQL

SELECT @@IDENTITY not scoped by DB object?

大憨熊 提交于 2019-12-18 06:50:45
问题 I have the following code in MS Access: Sub IdentityFail() Dim db1 As DAO.Database, db2 As DAO.Database Dim id1 As Long, id2 As Long CurrentDb.Execute "CREATE TABLE LocalDummy (Col1 AUTOINCREMENT, Col2 INT)", dbFailOnError Set db1 = CurrentDb Set db2 = CurrentDb db1.Execute "INSERT INTO LocalDummy(Col2) VALUES(Null)", dbFailOnError id1 = db1.OpenRecordset("SELECT @@IDENTITY")(0) db2.Execute "INSERT INTO LocalDummy(Col2) VALUES(Null)", dbFailOnError id2 = db2.OpenRecordset("SELECT @@IDENTITY")

How fast is SQLite compared to Microsoft Access MDB?

谁说我不能喝 提交于 2019-12-17 15:58:23
问题 Currently I'm thinking about replacing the usage of Microsoft Jet MDB databases on a single-user .NET C# Windows Forms application by a SQlite database. My goal is to lower installation requirements like the Jet drivers and some nasty errors when the Jet installation got corrupted (we have customers every now and then reporting those errors). My question regarding performance is: Are there any performance benchmarks out there comparing MDB and SQLite on a rather small sets of data? Or are

The Microsoft ACE driver changes the floating point precision in the rest of my program

喜你入骨 提交于 2019-12-17 09:59:20
问题 I am having a problem where it seems that the results of some calculations change after having used the Microsoft ACE driver to open an Excel spreadsheet. The code belows reproduces the problem. The first two calls to DoCalculation yield the same results. Then I call the function OpenSpreadSheet which opens and closes an Excel 2003 spreadsheet using the ACE driver. You would not expect OpenSpreadSheet to have any effect on the last call to DoCalculation but it turns out that the result

To which C# data type does MS Access “Number” type correspond?

雨燕双飞 提交于 2019-12-14 03:14:15
问题 According to http://msdn.microsoft.com/en-us/library/office/aa211091(v=office.11).aspx, the MS Jet database engine has no "NUMBER" data type; yet that is what I see in the MS Access design view of the table that I'm querying - that the data type of the first column I'm retrieving wit the query is of the "NUMBER" data type. I've got this code that breaks, both when I try to convert that value to Int32 and to Double: // A set comprised of two columns are returned from a query in cmd using

Add columns to an Access (Jet) table from .NET

寵の児 提交于 2019-12-13 20:19:43
问题 Our app (already deployed) is using an Access/Jet database. The upcoming version of our software requires some additional columns in one of the tables. I need to first check if these columns exist, and then add them if they don't. Can someone provide a quick code sample, link, or nudge in the right direction? (I'm using c#, but a VB.NET sample would be fine, too). 回答1: Off the top of my head, but something like: Dim conn as New AdoConnection(someConnStr) Dim cmd as New AdoCommand cmd

Why is my LIKE query not returning any records in Microsoft Access 2013 only?

末鹿安然 提交于 2019-12-13 17:44:09
问题 My SQL query is as follows: SELECT * FROM Suppliers WHERE SupplierName LIKE 's%'; When I submit this query on W3 School's TryIt Editor (v1.2) (http://www.w3schools.com/sql/trysql.asp?filename=trysql_select_like), it returns a number of records where the SupplierName begins with the letter 'S', as expected. However, when I run this query on my own database in Access 2013, it doesn't return any records, even though my table name and field name are identical to W3's sample. Queries not using