jet

Does Microsoft Jet DB work with Entity Framework?

不想你离开。 提交于 2019-12-28 06:45:39
问题 In this forum here , someone mentions that Entity Framework does not work with Access (Jet DB - .mdb). However it seems that there is a provider for Jet DB as described here Which makes me think that the only thing I need with Entity Framework is to define the follwing before I define the models: <connectionStrings> <add name="ProductContext" providerName="Microsoft.Jet.OLEDB.4.0" connectionString="Source=C:\mydatabase.mdb;Jet OLEDB:Database Password=MyDbPassword;"/> </connectionStrings> Does

Unable to query dynamically named range on Excel sheet using ADO

坚强是说给别人听的谎言 提交于 2019-12-25 02:43:49
问题 Suppose I have an Excel Sheet named Adjustments stored in a variable called wksName and, on that sheet, I have a named range defined as follows if you look in the Name Manager: tblData =OFFSET(Adjustments!$A$1,0,0,COUNTA(Adjustments!$A:$A),4) So that it expands to as many rows as we have data in columns A thru D. Now I have the following code in my VBA module: Set ExcelCon = CreateObject("ADODB.Connection") Set ExcelRecSet = CreateObject("ADODB.Recordset") ExcelCon.ConnectionString =

Polling database for updates from C# application

与世无争的帅哥 提交于 2019-12-24 21:14:12
问题 I'm attempting to create my first "real" C# application - a small pet project to help schedule peer reviews at work. Due to the insane amount of process/bureaucracy involved in implementing anything new - as well as the fact that I'm doing this away from managements eyes, on my own time, for the time being - I'm going to be writing this with an MS Access MS Jet Engine backend (i.e. an access mdb file) due to restrictions on how I can deploy this application to my co-workers. My question is:

How does the following code read and look in T-SQL?

故事扮演 提交于 2019-12-24 11:37:07
问题 The code originates from the following post: What SQL can I use to retrieve counts from my payments data? I am working with a large amount of data, and this code (in MS-ACCESS JET SQL) currently takes about 10-15 minutes to query (when it doesn't crash). I want to increase the speed in which my query runs, which is why I am looking to utilize the pass through query approach. Currently, the back end database I use is SQL Server (2012), which I use an ODBC connection to link to. I am under the

How Can I Remove Access Db's temporary ldb file

我与影子孤独终老i 提交于 2019-12-23 18:08:42
问题 I have an ASP.NET Project. I am connecting to the DB and then closing and disposing of the connection object. But when anyone enters my site, MS Access creates a temporary dbname.ldb. When I want to download my original mdb file from my server it won't let me access the mdb file. I can't do anything if there is ldb file in server. It's locking mdb file and I can't move it. So what's the problem? I am opening connection and closing it. So why this ldb file not deleting itself after the

How to use LIKE condition in SQL with numeric field?

ぃ、小莉子 提交于 2019-12-23 07:26:21
问题 I'm using this query to get some specific data: "select * from emp where emp_name LIKE 's%'"; emp_nam is character field, how can I use the same logic condition with numeric field? something like: "select * from emp where emp_id ???? where emp_id is numeric field. Thanks, 回答1: You can't do a wildcard on a number, however, if you really need to, you can convert the number to a varchar and then perform the wildcard match. eg. SELECT * FROM emp WHERE CONVERT(varchar(20), emp_id) LIKE '1%' 回答2:

MS-Access Including all days in a Date Range Query

ぐ巨炮叔叔 提交于 2019-12-23 02:17:13
问题 Access 2010 here. Back with another puzzler. I have this query: SELECT DischargeDatabase.Date, Avg([pH]) AS [pH Value], Avg([Temperature]) AS [Temperature (°C)], Avg([ZincLevel]) AS [Zinc (mg/l)], Sum([Effluent]) AS [Discharge (gal)], Count(*) AS [# Discharges] FROM DischargeDatabase WHERE DischargeDatabase.Date Between Forms!QueryForm!TextCriteriaQ0A And Forms!QueryForm!TextCriteriaQ0B GROUP BY DischargeDatabase.Date; from a waste water treatment database that I've been building. This gives

MS-Access Including all days in a Date Range Query

落花浮王杯 提交于 2019-12-23 02:17:06
问题 Access 2010 here. Back with another puzzler. I have this query: SELECT DischargeDatabase.Date, Avg([pH]) AS [pH Value], Avg([Temperature]) AS [Temperature (°C)], Avg([ZincLevel]) AS [Zinc (mg/l)], Sum([Effluent]) AS [Discharge (gal)], Count(*) AS [# Discharges] FROM DischargeDatabase WHERE DischargeDatabase.Date Between Forms!QueryForm!TextCriteriaQ0A And Forms!QueryForm!TextCriteriaQ0B GROUP BY DischargeDatabase.Date; from a waste water treatment database that I've been building. This gives

Copy one access database into another database with C#

十年热恋 提交于 2019-12-22 12:41:14
问题 Is it possible to copy programmatically all the tables in one database into another database that might already contain tables (and if there is any repeated name throw an exception of course)? This implies creating the tables in the destination database with the proper structures and with the same name as on the source database. I found a few similar questions but none of them have this particular need. I'm using the Jet engine. 回答1: Found a solution: string query = "SELECT * INTO [dest_table

DEFAULT clause in ALTER TABLE statement resulting in syntax error

时光毁灭记忆、已成空白 提交于 2019-12-22 11:27:51
问题 I have a customer who would like a customization to an old, Visual Basic 5 application which uses an Access 97 database and Jet 3.5 as the database engine. The desired customization requires a column to be added to an existing table. The following works fine: strSQL = "ALTER TABLE Users ADD COLUMN Status BYTE" pdbDatabase.Execute strSQL However, I would like to set a default value (i.e. either 0 or 1) for the new column. I have tried the following and a number of variations: strSQL = "ALTER