473,471 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

connection using javascript and access database

3 New Member
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.     <head>
  3.         <title>Entitled Document</title>
  4.         <script language="JavaScript">
  5.         function get()
  6.         {
  7.             var cn = new ActiveXObject("ADODB.Connection");
  8.             var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Users\Chinku\Desktop\my-program\QUIZ.mdb;Persist Security Info=False";
  9.             cn.Open(strConn);
  10.             alert("Connected");
  11.             var rs = new ActiveXObject("ADODB.Recordset");
  12.             var SQL = "select count(*) from qz";
  13.             rs.Open(SQL, cn);
  14.             alert(rs(0));
  15.             rs.Close();
  16.             cn.Close(); 
  17.  
  18.         }
  19.         </script>
  20.     </head>
  21.     <body>
  22.         <input type="button" value="Get count" onclick="get()">
  23.     </body>
  24. </html>
  25.  
Jan 27 '15 #1
1 1741
twinnyfo
3,653 Recognized Expert Moderator Specialist
kisore81178,

Please provide more information. We have no idea what your problem is or what it is that you are trying to solve.
Jan 27 '15 #2

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

Similar topics

1
by: csgraham74 | last post by:
I have an ms access database that runs perectly fine locally - when i upload it to the server i get "exception has been thrown by the target of the invocation" on any database connections. I...
1
by: clowtown | last post by:
I am fairly new to database programming in java. I have used odbc to make connections to access dbs but I was wondering how I could connect directly to an access db on my local machine. Do I have...
1
by: Colin Graham | last post by:
i am currently developing an asp.net web application which is linked to an Access database. The main problem that i have is in creating a global connection string that i can use. When i put my...
0
by: Guillermo | last post by:
Gentlemen, I'm trying VB.Net 2005 Beta2. I have an Access database in my website (wemdb01.mdb). I need to connect my application to it, in order to work with its data. When I try to add the URL I...
7
by: kowndinya | last post by:
Hello, i have developed a small program in VB 6.0 and the backend is MS ACCESS. i want to know who is currently logged ms access database. Some body accessing this database by using my program...
3
by: koliver | last post by:
Can anyone provide me with information on linking an Access database with GPS mapping software
1
by: sibyabin | last post by:
sir, i wish to study the advance features of java script .....Can u please tell How we will connect Javascript with Excel as back end .... Can U please forward some example codings or give some...
15
by: hotflash | last post by:
Hi Crocrew et. All, So far everything is working fine however, I want more security by adding a Username: Admin and Password: Test to my MS Access Database. I have 2 separate databases on my...
1
by: Drew Longo | last post by:
I am creating a form in visual C# 2008 and placed a data grid view control on it. I created a new connection, specified a microsoft access database, but get an error message after selecting the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.