Create a Access Database file and Dsn dynamically

hi,
in my program i have to dynamically create an Acess database (*.mdb) file. i would like to know if it is possible to do so and also if yes then also how to dynamically create a dsn to that dbase.

hi,
in my program i have to dynamically create an Acess
s database (*.mdb) file. It might be possible via OLE/ADO. But that means JNI if you are using standard java.
A common way around this is to deliver a 'blank' database with the application and just copy it whenever a new database is needed.
i would like to know if it is
possible to do so and also if yes then also how to
dynamically create a dsn to that dbase.Creating a DSN again requires JNI or special tools to manipulate the registry.
A common way around that is to use a DSN-less connection, so you don't have to create one. If you search this forum you will find examples of the connection string for that.

Similar Messages

  • DLL is used to open MS Access Database file, worked outside TestStand, and could not open Database file in TestStand

    I created a dll using VC++ to open/read MS Access Database file. The dll works when running outside TestStand, When I used the dll in TestStand, the MS Acces Database file could not open.

    To Steve1 -
    Some questions that come to mind to help with solving this are:
    1) Are you using any ActiveX control components to assist you in accessing the database?
    2) Are you using ADO or DAO or ODBC to access your data?
    3) When you called the DLL successfully outside of TestStand, what was the OI written in?
    4) Since you own the source code, what is the error or exception that is thrown and on what ADO or DAO function call does it fail?
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Create a new database in foxpro , msaccess dynamically

    hello,
    i am writing an application in which depending on the users selection a database will be created dynamically .i.e if he selects oracle or foxpro or access it will create a new database using the dsn supplied by the user and then creates the tables in that particular database .
    i would like to know how to create a new database from within a class file for foxpro or msacces dynamically.
    thanks for the help

    hi,
    thanks for ur response.
    i have no problem in creating tables
    my application does that, but i wanna know how to create a new database so that the tables that are created for a particular clients data are stored in a database specific for that client only , i.e. when his work is over he can completely discard the database by dropping it and can create new database when he wants to start a new database related to different client.
    i would like to know how to create that database file, system or file dsn dynamically.

  • Auditing failed access to files and folders in Windows Storage Server 2008 R2

    Hello,
    I've been trying to figure out why I cannot audit the failed access to files and folders on my server.  I'm trying to replace a unix-based NAS with a Windows Storage Server 2008 R2 solution so I can use my current audit tools (the 'nix NAS
    has basically none).  I'm looking for a solution for a small remote office with 5-10 users and am looking at Windows Storage Server 2008 R2 (no props yet, but on a Buffalo appliance).  I specifically need to audit the failure of a user to access
    folders and files they are not supposed to view, but on this appliance it never shows.  I have:
    Enabled audit Object access for File system, File share and Detailed file share
    Set the security of the top-level share to everyone full control
    Used NTFS file permissions to set who can/cannot see particular folders
    On those folders (and letting those permissions flow down) I've set the auditing tab to "Fail - Everyone - Full Control - This folder, subfolders and files"
    On the audit log I only see "Audit Success" messages for items like "A network share object was checked to see whether client can be granted desired access (Event 5145) - but never a failure audit (because this user was not allowed access by NTFS permissions).
    I've done this successfully with Windows Server 2008 R2 x64 w/SP1 and am wondering if anybody has tried this with the Windows Storage Server version (with success of course).  My customer wants an inexpensive "appliance" and I thought this new
    variant of 2008 was the ticket, but I can't if it won't provide this audit.
    Any thoughts? Any of you have luck with this?  I am (due to the fact I bought this appliance out of my own pocket) using the WSS "Workgroup" flavor and am wondering if this feature has been stripped from the workgroup edition of WSS.
    TIA,
    --Jeffrey

    Hi Jeffrey,
    The steps to setup Audit on a WSS system should be the same as a standard version of Windows Server. So please redo the steps listed below to see if issue still exists:
    Enabling file auditing is a 2-step process.
    [1] Configure "audit object access" in AD Group Policy or on the server's local GPO. This setting is located under Computer Configuration-->Windows Settings-->Security Settings-->Local Policies-->Audit Policies. Enable success/failure auditing
    for "Audit object access."
    [2] Configure an audit entry on the specific folder(s) that you wish to audit. Right-click on the folder-->Properties-->Advanced. From the Auditing tab, click Add, then enter the users/groups whom you wish to audit and what actions you wish to audit
    - auditing Full Control will create an audit entry every time anyone opens/changes/closes/deletes a file, or you can just audit for Delete operations.
    A similar thread:
    http://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/da689e43-d51d-4005-bc48-26d3c387e859
    TechNet Subscriber Support in forum |If you have any feedback on our support, please contact [email protected]

  • I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.  Will Time Capsule work with this and how?

    I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.
    1. Will Time Capsule work with this and how?
    2. Can my printer USB be plugged in and then shared between the devices?
    3. Can I create a network and how?
    4.  What happend when a visitor logs onto my existing wireless router?
    I'm new to Macs (well a returning user having started with Mac Plus!!) and not very technical.  Any help / advice will be much appreciated.
    Ray

    The key to what you seem to want to do is to be able to get Apple's Time Capsule router to "join" the network that your Conceptronic router.  I believe that works with some third-party routers, but I've never seen a list of those that work in such a configuration and I have no experience with Conceptronic equipment.
    You might be better off with a Network-Attached Storage (NAS) device instead of a Time Capsule.

  • Accessing a file and reading its contents.

    Hi all,
    I created a Portal Application to access a file and display its contents in an iView .
    But it showing the exception like "File Not Found".
    In simple java application i could able to get the result. In portal application i couldn't .
    I have given the full path of the file location.
    I need a help regarding this?
    Regards,
    Eben

    IS the file on the portal server? It must be visible to the service user that runs the Java engine...

  • Moving 9.2.0.6 database files and redologs using dd command.

    Hi at all,
    I need to know if someone have take a cold copy of database (datafile and redologs) using dd unix command.
    The trouble is related to the value to assign to "bs" during dd.
    For datafile I know it has to do the same of block_size of tablespace. I'm not sure about the value to assign to "bs" for redologs.
    Any suggestions are appreciated.
    thank you in advance
    Adriano
    Ps. I'm moving the raw partitions of database files and redologs from HP-UX RISC 11.11 on SYMM8830 to HP-IA64 using lvm on HP XP24000 with veritas.
    Edited by: adriano.ba on Oct 17, 2008 12:23 PM

    Why copy the redo logs ? You would be shutting down the database before you run the "dd" to copy out datafiles. With a proper shutdown, if you copy datafiles after the shutdown, you don't need the redo logs.
    Recreate redo logs at the target location.
    You'd have to "simulate" an incomplete Recovery using "RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL " followed by "ALTER DATABASE OPEN RESETLOGS" so that Oracle allows you to do the RESETLOGS.
    Or Recreate the ControlFile with a RESETLOGS in the CREATE CONTROLFILE.

  • Today My c: drive crashed...i had all my oracle database files and others in other resp drives.How to start by DB again as my services are destroyed.?!

    Today My c: drive crashed...i had all my oracle database files and others in other resp drives.How to start by DB again as my services are destroyed.?!
    or how to create a service for the database i had previously ??
    any help
    Aravind.

    AravindanJ wrote:
    Today My c: drive crashed...i had all my oracle database files and others in other resp drives.How to start by DB again as my services are destroyed.?!
    or how to create a service for the database i had previously ??
    any help
    Aravind.
    Where did Oracle software reside before  the failure & now?
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Opening windows "Access" database files through network

    Is there any way to open windows "Access" database files on my mac through a network to a windows machine? I have the windows for mac software but it doesn't include access.

    Hi,
    As per the description, I understand that your Office 2013 cannot open files through a network share directly.
    I would like to know that how many clients/users are affected by this in your environment. It could be some specific user account settings, that the Office applications are being affected by.
    I'd first suggest you try with a new Windows user profile, then verify result.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • When i open an mp3 file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?

    when I open a music file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?

    If you use iTunes' default settings then when you add a file to iTunes it places a copy of the file in the iTunes media folder and it leaves the original in place.  The exception is when you drag it to the Automatically Add To iTunes folder.
    It does not convert the file.  You can delete the original if you wish.

  • Windows 7 computers asking for network password to access shared files and printers on Windows XP PRO computer.

    I have a network of 10 computers configured as peer-to-peer work group. I have upgraded one of the ten from Windows XP PRO to Windows 7 PRO. The other nine computers are all running XP PRO. AS near as I can tell they are all configured the same. I have the
    same user and same passwords on all computers. One of XP computers is used as a print server. The Windows 7 computer initially was able to access shared files and printers on all XP machines with out requesting a network password.
    Suddenly, the Win 7 computer began requesting a network password to access the shared files and printers on the XP print server. It will not accept any of the user names or passwords (all administrators on both machines with identical names and passwords.)
    The Win 7 computer has no problem accessing the shared files on the other XP machines. It can even access shared printers in a different work group. Apparently something has changed but I'm at my wits end trying to figure what changed on either the Windows
    7 machine or the print server XP machine.
    I would appreciate any help. Thank you

    Hi,
    Based on my research, I would like to suggest the following:
    1.   
    Disable simple file sharing on the Windows XP computer:
    How to disable simple file sharing and how to set
    permissions on a shared folder in Windows XP
    2.   
    On the Windows 7 computer, go to “Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings” and ensure that the
    following items are turned ON:
    Network Discovery
    File and printer sharing
    And this one is OFF:
    Password protected sharing
    3.   
    Temporarily disable or remove all the security software (firewall, anti-virus, anti-spyware, etc.) on the computers and check if it works.
    In addition,
    I would like to share the following with you for your reference:
    Troubleshoot file and printer
    sharing
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • There was a problem connecting to the server "my server.local" this file is available on your computer. Access the files and volumes locally.

    Hi,
    I have a strange problem connecting one of the office laptops (Macbook Pro 10.7) to the disk in the Apple Time Capsule.  It's just one laptop that has this problem and the other 3 no problems at all and they all run OS X 10.7 Lion, I can access the Time Capsule disk over WAN on all machines but locally on the problem machine i get this message "There was a problem connecting to the server "myserver.local" this file is available on your computer. Access the files and volumes locally."   Now from this message it sounds like the problem laptop thinks the network drive (Time Capsule) is the same as it's self in the way of name or address however they clearly have different IP addresses locally.   
    Any ideas on this would be apreciated as I can only think a clean install but don't want to do this if not necessary.
    Thanks
    Jarrah

    I think I gave you some bad info in the above, where i enterered the text "myserver.local" & "example.local" this was the host name of the server (Time Capsule) so not local on the computer.
    No i didn't try your method, I'll give it a go - I thought the folder option was for local files and not on a server ?

  • How to remove Database Files and Backup from ASM

    Hi All,
    Oracle Database 11.2.0.3
    OEL 5.7
    We have a host for restore purposes.
    We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes.
    I have a automated script to Clone the Database, but to Clone Database we need remove the old database from ASM before start this operation. I want remove only Database files and keep the configuration (such as oratab/network/ocr and so on).
    Question: There is a easy way to remove these files without connect on ASM or by using DBCA?
    Appreciate any helps.

    user12028775 wrote:
    Hi All,
    Oracle Database 11.2.0.3
    OEL 5.7
    We have a host for restore purposes.
    We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes.
    I have a automated script to Clone the Database, but to Clone Database we need remove the old database from ASM before start this operation. I want remove only Database files and keep the configuration (such as oratab/network/ocr and so on).
    Question: There is a easy way to remove these files without connect on ASM or by using DBCA?
    Yes... there is a easy way. Use command DROP DATABASE.
    Use the DROP DATABASE command to delete the target database and, if RMAN is connected to a recovery catalog, unregister it. RMAN removes all datafiles, online redo logs, and control files belonging to the target database. By default, RMAN prompts for confirmation.
    Put this command on your script before clone your database:
    RMAN> CONNECT TARGET SYS@test1
    RMAN> STARTUP FORCE MOUNT
    RMAN> SQL 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
    RMAN> DROP DATABASE INCLUDING BACKUPS NOPROMPT;Regards,
    Levi Pereira

  • I'm about to transfer the contents of my existing HDD in my (dead PSU) iMac to another computer. I'm just wanting to know if and how I will be able to access my files and documents from the old hard drive once I've made the backup?

    I'm about to transfer the contents of my existing HDD in my (dead PSU) iMac to another computer. I'm just wanting to know if and how I will be able to access my files and documents from the old hard drive once I've made the backup?

    You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
    You need to get a new computer or a refurbished one.

  • Linked Server to MS Access mdb file and exclusivity??

    I've got an SQL database running on SQL Server 2008.  From this server, I have a linked server to an Access database (access 2003).
    In my database I have a stored procedure that I want to query the access database (linked server) and insert / update some rows in one of my SQL tables.
    The linked server is setup without an ODBC DSN (though, I have tried it with one and still get the same results). 
    When I run the stored procedure RDP'd onto the sql server, it runs without issue.  When I run the stored procedure from management studio from my machine, I get "It is already opened exclusively by another user, or you need permission to view its
    data"
    Unfortunately, this access mdb file is pulled from all over our organizatoin - a sin from a long time ago - but I do know that in both instances, the file is still in use by others.
    My SQL Server and file server where the MDB file exists are both a member of the same domain.  Also, the account the SQL Service runs under is a domain account as well.  
    Does this make any sense?
    Thanks
    sb

    Hi kumar,
    According to your description, when you create an linked server in SQL Server 64 bit to connect to the Access database 32bit , usually, the error 7399 and 7350 will occur. As other post, you need to install SQL Server 32bit. Or you can uninstall 32bit office
    products and install 64bit Microsoft Access Database Engine. For creating Linked Server, if you run on a 64bit environment we need to download
    Microsoft Access Database Engine 2010 Redistributable from Microsoft and install suitable version of software on the machine.
    For more information, see:
    http://calyansql.blogspot.jp/2013/02/fix-cannot-initialize-data-source.html
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

Maybe you are looking for

  • At the time of Presentation Audio is not Coming in sx 20

    Hi All, We have two modes of presentation here – 1-Air Media wireless presentation 2- Presentation via Direct HDMI cable. We have made use of an Extron HDMI switcher to switch between the 2. Either mode of presentation successfully gives Audio output

  • Adobe Reader 9.5.4 comes up with error 1402

    I am trying to update Adobe Readers 9.5.4 to the latest version, it comes up with error 1402 could not open key HKEY_LOCAL_MCHINE 32\software\classes\CLSID........ Type lib. Verify that you have sufficient access to that key. or contact your support

  • Material Groupwise authorization for purchase requisation creation

    Gurus My client want to give authorization for creating purchase requisation - material groupwise. i.es for material group 1,2,3,4,5,purchase group 100 has the authority to create the PRs and for material group 6,7 & 9 it should be with purchase grou

  • Identify a Noted Item

    How to technically Identify a Noted Item. Could anyone help me on this issue. I found out the following Document type is KA Posting key          39 Is there any other things I have to consider Regards

  • PDF Embedded in an E-mail Does Not Open

    For the past year, Stewart Stone [email address removed] has been e-mailing an embedded pdf newsletter to several dozen recipients.  They open for everyone except me.  I have Windows 7 Home Premium Service Pack 1 and Microsoft Office Outlook 2007.  A