MDB, ACCDB database files with CF11
I have not done anything with ColdFusion in quite sometime. The last version I used was CF9. I am not trying to make some changes to my web pages and need to set up a development environment. I would be perfectly happy with a copy of CF9 but I don't seem to be able to find one. All I am able to download is CF11. Apparently CF11 is not able to connect to a MSAccess database weather it is in mdb or accdb format.
I am not much of a server wizard so I am pretty much dead in the water here.
I am using windows 7 x64
Access 2010 x64
CF11
Any help would be appreciated or even where I can get a copy of CF9 would solve my problem.
Thanks in advance
From: http://msdn.microsoft.com/en-us/library/cc280478.aspx
Note
On a 64-bit computer, you must run packages that connect to Microsoft Access data sources in 32-bit mode. Both the Microsoft Jet OLE DB Provider and the OLE DB provider for the Microsoft Office 12.0 Access Database Engine are only available in 32-bit versions.
hmmm... I don't know enough about 64-bit Win7 (running MS Office 2010 32-bit). Will need to dig a bit deeper, but as Dennis suggests, my problem could be with Microsoft not LabVIEW.
...Just tried launching the UDL dialog on my 32-bit Win7 laptop running LabVIEW9.0.1(32-bit) and get the identical error (freeze).
When I launch the UDL dialog on my 32-bit Win7 laptop running LabVIEW10.0(32-bit), the UDL dialog works correctly.
Both attempts are after running LabVIEW "as administrator".
I also noticed the LabVIEW10.0 UDL launcher does not flash the "Create Data Link" helper vi that displays an "Initializing" progress bar.
It still could be a Win7 32/64 bit thing, but LabVIEW10.0 works while LabVIW9.0.1 freezes the UDL dialog...
...and yes... my University lab is managed by IT and they have not yet deployed LabVIEW2010 as the upgrade was received too close to the start of the fall semester.
I'll keep digging, but any suggestions would be greatly appreciated....
-Bill =]
Similar Messages
-
How to use an access database file with vb project
hi deve.
im wondering how can i use a database file (created with microsoft access) in a vb project
i want to assign a textbox content from the database file from a specific field according to its id can anyone explain that with a simple code example
thanx..thanx
pvdg42
this article is all i need -
Reading MS Access Database file with database adapter in soa
I have an .MDB file on another machine that i want to read from within SOA composite using database adapter. can i do that ? how ?
Have you checked out the jdbc-odbc bridge from Sun? I would think you should be able to create a jdbc connection to Microsoft Access. With that connection, you would then be able to create a jndi entry on the DB adapter from SOA. I haven't used this before, so I'm not sure how well, or even if it would work.
-
How to use database file within jar archive
Hi. I'm quite new in Java programming, and I'm wondering if what I did makes sense or not.
In my applet I'm using a MS Access Database file, which is contained in the same Jar Archive like the Applet class file. I tried and tried to use this Database file directly but it wouldn't work. Than I read in some other forum that it is not possible to use the database file directly within the archive. First question: Is that true?
Than I desided to extract the DB file in the init() method of my applet to the default temporary foulder. When the program is closed I use the destroy() method to delete it again. Everything works well now. But is this the typical way this is done?
Thanks for help!Hi,
here is the code which extracts the database file out of the jar archive (the same archive in which the class file is):
//get the user temporary folder
File TempFolder = new File(System.getProperty("java.io.tmpdir"));
//create (empty) db file
efile = new File(TempFolder, "steelSections.mdb");
// if database file is not yet extracted
if (!efile.exists()) {
//get an input stream for the database file
InputStream in = new BufferedInputStream(this.getClass().getClassLoader().getResourceAsStream(
"FaST/db/steelSections.mdb"));
//create an output stream for the db file on the file system
OutputStream out = new BufferedOutputStream(new FileOutputStream(efile));
//-Buffer to copy the data
byte[] buffer = new byte[2048]; //buffer to copy the binary
for (;;) {
int nBytes = in.read(buffer); //read data
if (nBytes <= 0)
break; //no more data to read
out.write(buffer, 0, nBytes); //write data
out.flush(); //close out and in streams
out.close();
in.close();
If you have the db file in an other jar archive file you need a referenze to the entry in the other jar archive. I'm not sure how to get this, but I'm sure you fill find a solution by searching in this forum...
Good luck! -
I would like to create a database including all I have about CAN data(names, IDs, ranges, etc).
Hi Rich,
The CAN Init and the CAN InitStart VIs (as well as the CAN Get Names VI) can process both, .ncd files as
well as .dbc files. So, if you reference the database file with the
channel configuration, you don’t have to ‘convert’ the .dbc file to an
.ncd file.
You only need to import an existing .dbc file into MAX, if you
Want the system (the NI-CAN driver) to convert the CAN data into channel without referencing another file.
Want to make use of the test panels in MAX (My System » Data
Neighborhood » CAN Channels » Message_xyz » Channel_abc: right-click
and select ‘Test Panel’).
Edit or modify the channel configuration.
I hope this clarifies this a little bit.
-B2k -
Monitoring Filestream database files
Hello everyone,
I've got two MS SQL 2012 databases - each one with three database files.
In SCOM 2012 R2 every database file is monitored correctly except the one with file type "FILESTREAM Data".
Here the green tick is missing under Health Explorer ("Raws Data" and "Log" are monitored and have a green tick). All monitors are enabled.
Is there a possibility how to monitor databases files with file type "FILESTREAM Data" in scom?
Thanks in advance!
Best regards,
HermannAs SQL MP monitors DB files and DB logs by default. for the data files with "FILESTREAM Data" type, if we want to monitor these data, from our SCOM side, we need to create a specified MP to monitor these data. and this will need you to involve
your develop team and department, thanks for your understadning.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Their original SQL Server was 2008, with SP unknown, but installed on D: and C: drives. The power spike corrupted their O/S on the C:
drive and someone reinstalled both the O/S and the SQL Server, which is now SQL 2008, SP4. They have intact files for all system databases, both .mdb and .ldf. Is there some way they can reconnect with the user databases using the intact copies
of the previous system databases? I have heard that if the SQL Server is stopped, previous Master and Msdb .mdb and .ldf files moved into place and the server restarted, that any previous user database .mdb and .ldf files can be accessed by the SQL server.
Is this the case, or are there details missing?Hello! try this steps
1 Open your SQL Server Management Studio console. This application shortcut is available in the SQL Server directory in the Windows Start button.
2 Enter the system administrator user name and password. SQL Server's administrator user name is "sa." This account is required for privileges to restore the database. If your restoring on a host provider server, use the administrator user name
and password they supplied for your account.
3 Right-click your database name and select "Attach." In the new window that opens, click the "Add" button to open a dialog box.
4 Select your MDF file and press the "Ok" button. It may take several minutes to restore the database if it is a large file. Once the process is finished, browse your tables to verify the data. The database is now restored.
If nothing helped try to use:
https://www.youtube.com/watch?v=1cbOYdvBW2c -
How to use Oracle SQL Developer 4.0 to connect to Ms Access file with .accdb extension
Hi all,
I am using Oracle SQL Developer 4.0 and Ms Access 2013 under Windows 7 (64 bits)
After browsing and selecting MS Access file with accdb extention, I got an error message :[Microsoft] " Data source name not found and no default driver specified".
On Administravitve Tools=> ODBC Data Source Administrator=>Drivers I have File date
Name : Version
Microsoft Acess Driver (*.mdb, *accdb) 12.00.4518.1014 ACEODBC.DLL 26/10/2006
Would you please advise?
Thank you very much in advanceThat MS Access driver is 64-bit, I think. If SQL Developer, or JDK is 32-bit you need to use the 32-bit driver. You can see if you have a 32-bit driver installed using c:\windows\system32\odbcadm32.exe
-
How to create a database (file.mdb)?
Hello.
I'm trying to create a .mdb database (Access) with Java but dont know how.
How can i create a database if I need to be connected to an existing database?
public class JavaApplication1 {
* @param args the command line arguments
public static void main(String[] args) {
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbcdbcriver={Microsoft Access Driver " +
"(*.mdb, *.accdb)};DBQ=C:\\Users\\David\\Desktop\\Vstup\\1\\db.mdb";
Connection con = DriverManager.getConnection(url);
System.out.println("Connected!");
Statement stmt = null;
ResultSet rs = null;
// AND HERE I WANT TO CREATE A NEW DATABASE
con2.close();
} catch (SQLException e) {
System.out.println("SQL Exception: "+ e.toString());
} catch (ClassNotFoundException cE) {
System.out.println("Class Not Found Exception: "+
cE.toString());
}997862 wrote:
Hello.
I'm trying to create a .mdb database (Access) with Java but dont know how.
How can i create a database if I need to be connected to an existing database?so why are you posting this nonsense in an ORACLE DB forum? -
Upload multiple files WITH correct pairs of form fields into Database
In my form page, I would like to allow 3 files upload and 3 corresponding text fields, so that the filename and text description can be saved in database table in correct pair. Like this:
INSERT INTO table1 (filename,desc) VALUES('photo1.jpg','happy day');
INSERT INTO table1 (filename,desc) VALUES('photo2.jpg','fire camp');
INSERT INTO table1 (filename,desc) VALUES('photo3.jpg','christmas night');
However, using the commons fileupload, http://commons.apache.org/fileupload/, I don't know how to reconstruct my codes so that I can acheieve this result.
if(item.isFormField()){
}else{
}I seems to be restricted from this structure.
The jsp form page
<input type="text" name="description1" value="" />
<input type="file" name="sourcefile" value="" />
<input type="text" name="description2" value="" />
<input type="file" name="sourcefile" value="" />The Servlet file
package Upload;
import sql.*;
import user.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.Map;
import java.util.HashMap;
import java.util.Date;
import java.util.List;
import java.util.Iterator;
import java.io.File;
import java.io.PrintWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.*;
public class UploadFile extends HttpServlet {
private String fs;
private String category = null;
private String realpath = null;
public String imagepath = null;
public PrintWriter out;
private Map<String, String> formfield = new HashMap<String, String>();
//Initialize global variables
public void init(ServletConfig config, ServletContext context) throws ServletException {
super.init(config);
//Process the HTTP Post request
public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Thumbnail thumb = new Thumbnail();
fs = System.getProperty("file.separator");
this.SetImagePath();
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(!isMultipart){
out.print("not multiple part.");
}else{
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
List items = null;
try{
items = upload.parseRequest(request);
} catch (FileUploadException e) {
e.printStackTrace();
Iterator itr = items.iterator();
while (itr.hasNext()) {
FileItem item = (FileItem) itr.next();
if(item.isFormField()){
String formvalue = new String(item.getString().getBytes("ISO-8859-1"), "utf-8");
formfield.put(item.getFieldName(),formvalue);
out.println("Normal Form Field, ParaName:" + item.getFieldName() + ", ParaValue: " + formvalue + "<br/>");
}else{
String itemName = item.getName();
String filename = GetTodayDate() + "-" + itemName;
try{
new File(this.imagepath + formfield.get("category")).mkdirs();
new File(this.imagepath + formfield.get("category")+fs+"thumbnails").mkdirs();
//Save the file to the destination path
File savedFile = new File(this.imagepath + formfield.get("category") + fs + filename);
item.write(savedFile);
thumb.Process(this.imagepath + formfield.get("category") +fs+ filename,this.imagepath + formfield.get("category") +fs+ "thumbnails" +fs+ filename, 25, 100);
DBConnection db = new DBConnection();
String sql = "SELECT id from category where name = '"+formfield.get("category")+"'";
db.SelectQuery(sql);
while(db.rs.next()){
int cat_id = db.rs.getInt("id");
sql = "INSERT INTO file (cat_id,filename,description) VALUES ("+cat_id+",'"+filename+"','"+formfield.get("description")+"')";
out.println(sql);
db.RunQuery(sql);
} catch (Exception e){
e.printStackTrace();
HttpSession session = request.getSession();
UserData k = (UserData)session.getAttribute("userdata");
k.setMessage("File Upload successfully");
response.sendRedirect("./Upload.jsp");
//Get today date, it is a test, actually the current date can be retrieved from SQL
public String GetTodayDate(){
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
String today = format.format(new Date());
return today;
//Set the current RealPath which the file calls for this file
public void SetRealPath(){
this.realpath = getServletConfig().getServletContext().getRealPath("/");
public void SetImagePath(){
this.SetRealPath();
this.imagepath = this.realpath + "images" +fs;
}Can anyone give me some code suggestion? Thx.When one hits the submit button - I then get a 404 page error.What is the apaches(?) error log saying? Mostly you get very useful information when looking into the error log!
In any case you may look at how you are Uploading Multiple Files with mod_plsql. -
Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.The Oracle documentation has a good overview of the options available
Generating XML Data from the Database
Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
You can also find some information in XML DB FAQ -
Creating database problem with ORA-01519: error while processing file '' ne
Dear all,
I am having rough time with creating database manually. can anyone help me with the following errors.
ALERT LOGFILE:-
Sun May 31 12:00:39 2009
Errors in file d:\oracle\product\10.1.0\admin\oracle5\udump\oracle5_ora_3444.trc:
ORA-01501: CREATE DATABASE failed
ORA-01519: error while processing file '%ORACLE_HOME%\RDBMS\ADMIN\SQL.BSQ' near line 5744
ORA-00604: error occurred at recursive SQL level 1
ORA-01119: error in creating database file 'D:\oracle\product\10.1.0\oradata\ORACLE5 \datafile\undotbs1.dbf'
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.
Error 1519 happened during db open, shutting down database
USER: terminating instance due to error 1519
Sun May 31 12:00:39 2009
Errors in file d:\oracle\product\10.1.0\admin\oracle5\bdump\oracle5_reco_3416.trc:
ORA-01519: error while processing file '' near line
CREATE DATABASE SCRIPT:-
create database ORACLE5
user sys identified by bala
user system identified by bala
logfile
group 1 ('D:\oracle\product\10.1.0\oradata\ORACLE5\logfile\redo01.log') SIZE 50M,
group 2 ('D:\oracle\product\10.1.0\oradata\ORACLE5\logfile\redo02.log') SIZE 50M,
group 3 ('D:\oracle\product\10.1.0\oradata\ORACLE5\logfile\redo03.log') SIZE 50M
maxlogfiles 5
maxlogmembers 5
maxloghistory 1
maxdatafiles 50
maxinstances 1
datafile 'D:\oracle\product\10.1.0\oradata\ORACLE5\datafile\system01.dbf' size 200m autoextend on maxsize unlimited extent management local
undo tablespace UNDOTBS1 datafile 'D:\oracle\product\10.1.0\oradata\ORACLE5 \datafile\undotbs1.dbf' size 10m autoextend on maxsize unlimited
sysaux datafile 'D:\oracle\product\10.1.0\oradata\ORACLE5\datafile\sysaux01.dbf' size 100m autoextend on maxsize unlimited
default temporary tablespace temp tempfile 'D:\oracle\product\10.1.0\oradata\ORACLE5 \datafile\temp01.dbf' size 10m autoextend on maxsize unlimited
character set US7ASCII
NATIONAL CHARACTER SET AL16UTF16
INIT.ORA FILE:-
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
# Archive
log_archive_format=ARC%S_%R.%T
# Cache and I/O
db_block_size=8192
db_cache_size=25165824
db_file_multiblock_read_count=16
# Cursors and Library Cache
open_cursors=300
# Database Identification
db_domain=""
db_name=oracle5
# Diagnostics and Statistics
background_dump_dest=D:\oracle\product\10.1.0\admin\oracle5\bdump
core_dump_dest=D:\oracle\product\10.1.0\admin\oracle5\cdump
user_dump_dest=D:\oracle\product\10.1.0\admin\oracle5\udump
# File Configuration
#db_create_file_dest=D:\oracle\product\10.1.0\oradata
db_recovery_file_dest=D:\oracle\product\10.1.0\flash_recovery_area
db_recovery_file_dest_size=2147483648
# Job Queues
job_queue_processes=10
# Miscellaneous
compatible=10.1.0.2.0
# Pools
java_pool_size=50331648
large_pool_size=8388608
shared_pool_size=83886080
# Processes and Sessions
processes=150
# Security and Auditing
remote_login_passwordfile=EXCLUSIVE
# Shared Server
dispatchers="(PROTOCOL=TCP) (SERVICE=oracle5XDB)"
# Sort, Hash Joins, Bitmap Indexes
pga_aggregate_target=25165824
sort_area_size=65536
# System Managed Undo and Rollback Segments
undo_management=AUTO
undo_tablespace=UNDOTBS1
control_files=("D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORACLE5\CONTROLFILE\control01.CTL", "D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORACLE5\CONTROLFILE\control02.CTL")Hi,
undo tablespace UNDOTBS1 datafile 'D:\oracle\product\10.1.0\oradata\ORACLE5 \datafile\undotbs1.dbf' size 10m autoextend on maxsize unlimited
After ORACLE5 there is a space character. Typo? Create proper directory or delete this character.
Bartek -
This is what I think did happen because I am still able to do those things in Internet Explorer.
E.g. Opening a website I don't see all images, can't use all tabs.
I also cleared Caches in Extra. (I use Windows XP.) I tried to restore things within Tweak Now.
So how can I make more space in the Mozilla Database Files.
Please keep your answer simple, I am not that smart...Not a good idea to use external programs like that to mess with Firefox files, those programs somehow manage to break more than they ever fix. Windows system restore does its' fair share of messing Firefox up, too. And reinstalling Firefox doesn't fix a b0rked Profile, unless you remove it when you uninstall Firefox.
Try a new Profile. <br />
http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
Then recover specific files from the existing Profile. <br />
http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile -
How to read a passward protected excel file with the help of database connectivity tool kit
hi, i was reading an excel file with the help of database connectivity tool kit in labview 8.0
i made tabels in the excel file nand made odbc connection and specified the workbbok name.
now my problem is how to read the same file if i specife a pasword to that excel file ?Hi,
Check out this thread about opening a password-protected Excel file using ActiveX. This should take care of it for you!
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments -
How to create a DataBase File like MDB or DBF to web
Hi People,
I'm a Delphi Developer and I'm new in Java.
I need to make a DataBase File like MDB or DBF to work online.
I will make a Form to sign users. All of user's information, for example: user name, address, mail, phone, will need to record in my database file.
I think about it, because I don't have a DataBase Server Like SQL or Oracle.
Any Idea?
Thank's very much
JairoTake a look at hypersonic database for an open source solution.
I know that Borland has something they call a JDataStore that keeps everything in one file, and is supposed to be pretty quick. You have to pay for it though.
- K
Maybe you are looking for
-
How do I prevent my files from duplicating in a new folder when I go to package?
I don't believe this used to happen and it's driving me batty!! I save a working document in a job folder. Then when I go to collect the fonts and graphics by "packaging" it won't allow me to package in that first level it creates another folder insi
-
How do I configure a counter to generate pulses using DAQmx?
How do I configure a counter to generate pulses using DAQmx? Is says in the DAQmx C reference help "CtrnInternalOutput-The signal at this internal terminal is where the pulsed or toggled output of the counter appears. The output of a counter pulses o
-
My son created a powerpoint presentation on his MAC in Microsoft office. When he saved it to a CD and email it to our PC, the pictures he had downloaded and put in the slides showed up as blank white squares. Also, when he burned it to the CD and als
-
Can't install 6.0 - why and can I install a lesser version?
I keep getting a message that says I can't install 6.0 or whatever the latest version is but my system is 10.3.5, so why isn't it working? Now I can't access the music store at all!
-
Apple TV Home Sharing only detects Macbook Pro but not iPads
Hello My Apple TV (2nd gen) will only detect my Macbook Pro on Home Sharing. I have two iPads (1st gen and iPad Mini) both updated to the latest iOS but they just wont show up on apple TV home sharing. Any thoughts? The software on all devices is up