473,513 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

database security issue

omerbutt
638 Contributor
sir,
i am making an online appliation for submitting daily sales reports .i am using html dhtml asp and janvascript .the problem is if i apply password to the access database then it gives error "wrong password".what shud i do to secure ma database that it does not give any error while running any query in the program ,or while acessing the database,
thanks for help in advance
May 8 '07 #1
8 1477
MMcCarthy
14,534 Recognized Expert Moderator MVP
You have posted in the Articles section. I am moving this question to the Access forum.

ADMIN
May 8 '07 #2
omerbutt
638 Contributor
You have posted in the Articles section. I am moving this question to the Access forum.

ADMIN
thanks ...
do give an answere too
May 8 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
thanks ...
do give an answere too
You haven't given enough information. How are you passing the password to the Access database. What code are you using to make the connection?
May 8 '07 #4
omerbutt
638 Contributor
You haven't given enough information. How are you passing the password to the Access database. What code are you using to make the connection?
here is how i am making a connection .
<%
Set RSANCR = Server.CreateObject("ADODB.Recordset")
connectionstr= "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db/db1.mdb")
strsql = "SELECT MacModle.Modles FROM MacModle WHERE MacModle.Cat = 'COPIER'"
RSANCR.Open strsql, connectionstr , 2
%>
the password is applied manually aon the access data base means by opening it through the file->open and then open exclusive ....it is not applied through any code all i want is that no one can open it else than the query in ma code thanks aloot
May 8 '07 #5
MMcCarthy
14,534 Recognized Expert Moderator MVP
here is how i am making a connection .
<%
Set RSANCR = Server.CreateObject("ADODB.Recordset")
connectionstr= "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db/db1.mdb")
strsql = "SELECT MacModle.Modles FROM MacModle WHERE MacModle.Cat = 'COPIER'"
RSANCR.Open strsql, connectionstr , 2
%>
the password is applied manually aon the access data base means by opening it through the file->open and then open exclusive ....it is not applied through any code all i want is that no one can open it else than the query in ma code thanks aloot
I'm not familiar with this connection string.

I will call on some of the other experts who may have more knowledge in this area.
May 8 '07 #6
nico5038
3,080 Recognized Expert Specialist
For the connection string syntax you can check:
http://www.connectionstrings.com/?carrier=access
of for 2007:
http://www.connectionstrings.com/?carrier=access2007

It will however reveal the password in your code....

Nic;o)
May 8 '07 #7
NeoPa
32,557 Recognized Expert Moderator MVP
sir,
i am making an online appliation for submitting daily sales reports .i am using html dhtml asp and janvascript .the problem is if i apply password to the access database then it gives error "wrong password".what shud i do to secure ma database that it does not give any error while running any query in the program ,or while acessing the database,
thanks for help in advance
It's not very clear whether you want to rely on the operator to put in the password or alternatively, to give the password via the code. If the latter is required then you'll need to include it in the connection string.
Nico's post (#7) gives a link explaining how that can be done.
May 8 '07 #8
ADezii
8,834 Recognized Expert Expert
here is how i am making a connection .
<%
Set RSANCR = Server.CreateObject("ADODB.Recordset")
connectionstr= "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db/db1.mdb")
strsql = "SELECT MacModle.Modles FROM MacModle WHERE MacModle.Cat = 'COPIER'"
RSANCR.Open strsql, connectionstr , 2
%>
the password is applied manually aon the access data base means by opening it through the file->open and then open exclusive ....it is not applied through any code all i want is that no one can open it else than the query in ma code thanks aloot
If your aim is to not allow anyone access to the Database while you are running your code, why not simply Open the Database with the /excl Command Line Option? (Exclusive).
May 8 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

8
1945
by: peter | last post by:
I have taken over the website duties at work. I am still learning PHP and MySQL. I want to have a form where the user enters some finacial info and it is stored in a database. It, obviously,...
5
2949
by: lappy | last post by:
Hello, I have written a small programme to compact an access 97 database. Dim je As New JRO.JetEngine ' Compacts database Data.Mdb to Data2.mdb. je.CompactDatabase...
6
2379
by: N. Graves | last post by:
Thank you for taking your time to read my question... please offer your knowledge it will be appreciated! I'm writing a ASP Web page to access a Access Database that has a Database Password set....
4
1237
by: Michelle Stone | last post by:
I am about to deploy our application on the Internet. We will be moving our server (containing IIS and our asp.net application) to the DataCentre of our country in a few days for being online. ...
20
1468
by: HKSHK | last post by:
Hi guys, I want to write a database application, which I later want to sell. Now I am looking for a nice, little database which would have to fullfil these requirements: * Either free or low...
3
4121
by: jason | last post by:
I've been playing around with new (for 2.0) membershp functionality. I was able to build a simple login form that secures a directory on a project I built locally on my development desktop. ...
12
2702
by: mistral | last post by:
phpMyAdmin 2.6.2 problem: can no connects to mySQL database: each time shown error #1045 - Access denied for user 'username'@'192.168.1.2' (using password: YES) Is seems, this is most common...
8
3829
by: mouac01 | last post by:
I'm not sure if this is possible. I would like to have a PHP app on the Internet connect and write to a local database (Intranet). For example, users would go to a web site...
49
2698
by: ARC | last post by:
Hello all, I have one chance to get this right, as I'm nearing a release of a program. I've looked at the database settings, and so far, have set the following: * Unchecked 'Enable design...
10
2293
by: jimjim | last post by:
HI, We have shifted our database from sqlserver2003 to sqlserver2005. 1. connection strings stored in web.config <!-- Machine name to connection string keys --> <add key="*777*"...
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7391
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.