oledb

working with access database update statment not working

假如想象 提交于 2019-12-11 05:33:45
问题 string date= DateTime.Now.ToString("d.M.yyyy",System.Globalization.DateTimeFormatInfo.InvariantInfo); String MyString = @"UPDATE cas SET Odhod= '" + label1.Text + "' WHERE sifra = " + textBox1.Text + " and Datum = "+date+""; When I do thise update without Datum it works, but with Datum doesn't work. I'm connected to accesss database, and Datum field type in table is date/time Guys please help. Hire is the program: https://www.dropbox.com/s/hx4zduvul8mh2uy/8.4.zip Pictre of problem: http:/

Jet OLEDB Provider working everywhere except Excel 2010 on Windows 7 64-bit

前提是你 提交于 2019-12-11 04:46:33
问题 I'm using the "Microsoft.Jet.OLEDB.4.0" provider for a basic connection in some VBA code, and the code works everywhere except on windows 7 64-bit operating systems running a 64-bit installation of Microsoft Office Excel 2010. Literally every other combination of XP 32 or 64, Vista 32 or 64, and 7 32, with Excel 2003, 2007, or 2010 installations has no problem running this code, but on the above described system, it results in an error about a "Missing Provider" and I can't create the

OLEDB date(time) issue asp.net c#

我们两清 提交于 2019-12-11 04:32:00
问题 I have written a little excel helper which works fine. It uses this connection string: "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=<FILENAME>;Extended Properties=\"Excel 12.0;HDR=Yes;\";"; Unfortunately when I deploy the code, cells, which contains a date string like this: 28/12/2008 are returned as: 12/25/2008 12:00:00 AM rather than 25/12/2008 00:00:00 after using ToString . I adjusted the time zone etc. of the machine (all machines are now UK time zones) but this hasn't changed anything

How to connect Excel Source via OLEDB or any other source in SSIS?

时光怂恿深爱的人放手 提交于 2019-12-11 04:17:07
问题 Is there any other way rather than "Excel connection manager" to connect Excel as Source in SSIS. I am asking this question because I have an issue with connecting Excel with "Excel Connection Manager" because in my system Excel 32 bit is installed and the Visual Studio version is 64 bit. I tried connecting it with ODBC but wasn't successful. 回答1: There is not Visual Studio 64-bit version, I think you should change the Run64BitRuntime Property to False : FAQ - How to run SSIS Packages using

Export to excel spreadsheet (XLSX) failing

房东的猫 提交于 2019-12-11 03:59:17
问题 Using ASP.NET web page, I am exporting some data to excel spreadsheet (XLSX). The code is running fine when I run it using Visual Studio (it is exporting a XLSX file with correct data), but the same code fails when deployed to Testing Server. It is not throwing any error, it simply exports a blank XLSX file. Note: While debugging in the test server, I found that the data is getting fetched and temp file is also getting created properly, but the data is not getting written to the temp file

Oledb connection string for excel files

怎甘沉沦 提交于 2019-12-11 03:56:42
问题 This is the oledb connection string I'm using while loading excel 2003 files. But I'm getting the error could not find installable ISAM`.' Please help me in this issue. What I'm doing wrong here. Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\FileUploadV2\FlatFile \Book2-17.xls;Extended Properties=Excel 8.0;HDR=NO; It works fine when I used the same connection string without HDR parameter. But I need to upload the excel without headers. 回答1: Could you show us the exact connection string with

OleDB selecting multiple CSVs with first row as field names in C#

我们两清 提交于 2019-12-11 03:35:25
问题 So my code looks like this currently, which is all fine and good String q = "SELECT * FROM "+"test.csv"; try { OleDbConnection cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\;Extended Properties=\"Text;HDR=No;FMT=Delimited\""); OleDbDataAdapter da = new OleDbDataAdapter(); DataSet ds = new DataSet(); OleDbCommand cd = new OleDbCommand(q, cn); cn.Open(); da.SelectCommand = cd; ds.Clear(); da.Fill(ds, "CSV"); dataGridView1.DataSource = ds.Tables[0]; cn.Close(); }

Provider selection, when trying to access Excel table in Delphi 7

我与影子孤独终老i 提交于 2019-12-11 03:18:36
问题 I am trying to connect to excel table from Delphi 7 using TAdoConnection component. The problem is when I select Microsoft.Jet.OLEDB.4.0, Extended Properties="Excel 8.0;", I sometimes receive error, that external table is not in the expected format. When i select: Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties=Excel 12.0; then some users receive following error: "Provider cannot be found. It may not be properly installed". Is there a way to solve my problem? 回答1: It's been too long

Access DB: Operation must use an updateable query

放肆的年华 提交于 2019-12-11 03:14:22
问题 I am running an ISS server, i have an access file located in C:\WCF\Access\ I am using this query to insert something: @"INSERT INTO Arbejdsindsats (MedarYdelID, StartTid, SlutTid) VALUES ('" + medarYdelID + "', '" + startTid + "', '" + slutTid + "')"; The full code is: public String GemArbejdsIndsats(String medarYdelID, String startTid, String slutTid) { try{ con.Open(); String command = @"INSERT INTO Arbejdsindsats (MedarYdelID, StartTid, SlutTid) VALUES ('" + medarYdelID + "', '" +

c#, oledb connection string issue

醉酒当歌 提交于 2019-12-11 03:10:05
问题 I'm using .net4.0 and c# language. In my code i have a connection string oleConnection.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source = " + filepath + "; Extended Propertie s= \"Excel 12.0;HDR=yes\""; and it work well. But when i change a connection string like this: oleConnection.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source =" + filepath + "; Extended Properties =\"Excel 12.0;HDR=no\""; (I change HDR parameter for "no") I got error: No value given