jet

.NET tool for browsing MDB database

本秂侑毒 提交于 2019-12-13 17:35:49
问题 I'm looking for a solution to provide MDB database viewing capabilities in my WinForms application. The goal is to allow user browsing tables, columns and rows. Any open-source or freeware widget available for this? 回答1: I think you don't need a special widget for this. You can do it quite easily yourself, only with built-in .net stuff and a bit of Access knowledge. 1) Browsing tables (=getting a list of all existing tables): Every MDB (at least A2000 and A2003, I have never used A2007 and

How to SELECT [header text w. dot] AS xxx FROM an Excel table?

风格不统一 提交于 2019-12-13 06:05:24
问题 Summary: Using the Jet.OLEDB provider and the SQL query, I do not know how to access the column the header text of which contains a dot. Is there any way to escape the dot in the SELECT query? Details: I am using a connection string Provider=Microsoft.Jet.OLEDB.4.0;Data source=test.xls;Extended Properties="Excel 8.0;HDR=Yes;" When the header text of the column of an Excel sheet contains a dot (notice the dot column named Abbrev. Packing )... ... then the SELECT query like this... SELECT [Date

Asp Access db: Microsoft JET Database Engine error '80004005' Unspecified error

柔情痞子 提交于 2019-12-13 04:52:16
问题 Server is dedicated and I have remote access. We have custom ASP CMS with Access database and we use custom error pages for "mod rewrite". It works great. This website is available in 6 different languages and each language has its own domain and they all connect to the same database. Problem is, I get this error every few hours: Microsoft JET Database Engine error '80004005' Unspecified error After I get this error I have to restart IIS or edit "Error pages settings" to detailed error and

How do I use my alias in the where clause?

十年热恋 提交于 2019-12-12 19:03:55
问题 I'm trying to search multiple columns of text and memos for certain phrases and blacklist phrases I don't want to see. Assume the following table stories: id, title, author, publisher, content Ex. I want to find all stories that mention (in any field) 'apples' but blacklist 'applesauce'. SELECT stories.id, [stories.title] & " " & [stories.author] & " " & [stories.publisher] & " " & [stories.memo] AS allMyText FROM stories WHERE ((([allMyText]) Like "*apples*" And ([allMyText]) Not Like "

Access/jet equivalent of Oracle's decode

六月ゝ 毕业季﹏ 提交于 2019-12-12 15:50:19
问题 Is there an equivalent for Oracle's decode() in Access (or Jet, for that matter). The problem I am facing is: I should sort (order) a resultset based basically upon a status and a date (with all records having status = 2) at the end. In Oracle I'd go something like select ... from ... where .. order by decode(status, 2, 0, 1), date_column 回答1: The closest analogy is the SWITCH() function e.g. Oracle: SELECT supplier_name, decode(supplier_id, 10000, 'IBM', 10001, 'Microsoft', 10002, 'Hewlett

Connect to MS Access remote .mdb file from php on linux

末鹿安然 提交于 2019-12-12 08:08:32
问题 I have been digging internet for couple days, reading very old information, that leads to very old and nonexisting sites, still, I understood, what is needed to achieve my goal. We have a file.mdb on server running WindowsXP, so I need to add it to ODBC data sources. I do that with simple steps, ending up with "System DSN", that allows access to that .mdb file I need to install on this same server some sort of ODBC bridge, that would allow me to create remote connection to this server, making

“Union Operation not allowed in sub query” is there a way to fix this in one single query?

只愿长相守 提交于 2019-12-12 03:52:43
问题 This Query Dose NOT work in Access 2000 SELECT (Members.First_Name + " " + Members.Last_Name)AS Member, (SELECT Friend_E_Mail, FROM Friends,Members WHERE My_E_Mail = ? and Friend_E_Mail <> ? UNION ALL SELECT My_E_Mail,FROM Friends,Members WHERE Friend_E_Mail = ?and My_E_Mail <> ?) AS E_Mail , (Members.First_Name) AS Name FROM Members,Friends Sample Tables Members(all VARCHAR) SOME DATA First_Name Alester Jude Carl Jones Last_Name A B C J FRIENDS(ALL VARCHAR) My_E_Mail Alester@lam.com Alester

using InStrRev() and similar functions in Jet/ACE queries outside of Access

给你一囗甜甜゛ 提交于 2019-12-12 02:55:26
问题 Hia, I'm struggling a bit while forming some SQL queries. Currently I'm using: InStrRev(TABLE.[_URL],"/")+1) AS OUTPUT Given an input of a URL - I want to extract the last part eg: www.url.com/some/text/here Should return here There are always 3 slashes and while the snippet I posted works perfectly; only within access. When I try and use this outside of access - I find errors - any advice on alternatives available to me? 回答1: As you have discovered, SQL queries executed from within Access

Microsoft Text Driver or Microsoft.Jet.OLEDB.4.0

房东的猫 提交于 2019-12-11 16:04:20
问题 In my application i have to read data from a CSV file. I want to use Microsoft Text Driver or Microsoft.Jet.OLEDB.4.0. I am confused between the two. Which one should i opt for? 回答1: These are more or less the same thing in that they both use Jet However, one is for OLE DB and one for ODBC, you might like to read OLE DB for the ODBC Programmer 来源: https://stackoverflow.com/questions/4569833/microsoft-text-driver-or-microsoft-jet-oledb-4-0

Equivalent of Excel’s NETWORKDAYS function with Jet ADO

老子叫甜甜 提交于 2019-12-11 15:45:36
问题 Excel's NETWORKDAYS function returns the net working days between two dates. Is there a way of replicating this when connecting to a Jet database via ADO? 回答1: See: Why should I consider using an auxiliary calendar table? A calendar table can make it much easier to develop solutions around any business model which involves dates. Last I checked, this encompasses pretty much any business model you can think of, to some degree. Constant problems that end up requiring verbose, complicated and