I have a problem when centralizing a database. (I will not use MySQL etc.. since this is only a small application. I will use access only.)
Problem: Code won't run because there is a password on a network.
Based on www.connectionstrings.com this is my connection string:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\server\share\folder\myAccessFile.accdb;
This code can access the database on a network, but only after I manually access the file and input the password.
Is there a way to input a network password using code in VB.NET?
Note:
I tried this search on this website: "access database on a network with a password in VB.NET" but no luck or my query is incorrect
Related
I'm creating an inventory system right now but I want to put the my access database in a network access storage that is encrypted, how can I access my database using connecting string function in vb.net to code the username and password, to access my database?
I used Navicat Premium to create the database file and selected encrypted to put a password. Now when I try accessing the database in my vb.net program I get an error saying...
file is encrypted or is not a database
"Data Source=\\10.10.10.10\Folder\database.db;Password=pwd;Version=3;", True
The above is my connection string (please ignore the network path =) ). Anyway, I can get through opening the connection but when reading data I get the error. I tried creating another database that doesn't have a password and it worked fine. I even copy pasted the password I have in code to navicat to make sure i typed it correctly.
I am trying to set a connection between Dreamweaver and Sql server database,
i am using the wizard under Dreamweaver CS3
the wizard creates a file named connections and inside that file i have
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_Q_S_Conn_STRING
MM_Q_S_Conn_STRING = "Driver={SQL Server};ServeR=\SQL08R2T_INST4;Database=XTEST;Uid= TDWEAVER;Pwd=tdweaver;"
%>
all is working fine and i can access the database and add/delete/update records
The administrator is asking to apply encryption to the password and send him the way the encryption is performed
Can i add encryption to the password inside the Connection String? or maybe add encryption type ?
Any help please
My first question would be: Does the driver encrypt the connection to the database? If not, then what's the point of encrypting the password when the first connection publishes it as plain text on the local network?
The next question: Why can anyone read the file? If only the process can read the file, what additional security does encrypting the password provide?
For me, this feels like security by obscurity which is a valid security layer if you have covered all the other bases. If you didn't, then it's just a waste of time.
I am using ms access as database and i don't have any uid and password.
even if so while running crystal report it asks for uid and password.
and for every entry, it says "logon failed".is there any internal setting for this?
If you don't have a login and password, any dummy credentials may be enough to bypass the error. Look at this link for examples:
How to open a secured Access database in ADO through OLE DB
As part of my university coursework, I was asked to design and create an HCI for a shop. Part of it is to connect Delphi 7 to MS Access and run SQL queries. I have the database connected to Delphi, but when I run the program and enter the query it prompts me to enter a username and password to access the database. Does anyone have any ideas on what's going on? I am stumped for ideas!
Any help is greatly appreciated!
Andy
Simple solution, the LoginPrompt to FALSE on your TAdoDatabase component. Make sure that your query object then is linked to the database component.
One of the things that puzzles many people is the way Jet user-level security works. When you are running Access, you are logging on whether you know it or not. If you see no username/password prompt when you open an MDB, you are logging on as the ADMIN users with no password.
Thus, to open any Jet MDB, you need to provide a valid username/password pair. If you have not set a password on the admin account, you still need to provide the admin username with no password.
You need to set the LoginPrompt property to True, but also implement the OnLogin event. In that event, set username (and if available password) of the LoginParams parameter of the event.