473,382 Members | 1,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

database connection using vbscript

Expand|Select|Wrap|Line Numbers
  1. Function x()
  2.  
  3.     Set conn = CreateObject("ADODB.Connection")
  4.     Set rs = CreateObject("ADODB.Recordset")
  5.     msgbox "Connected...................................";
  6.     Set strConnect = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Chinku\Desktop\my-program\QUIZ.mdb;"
  7.     conn.Open strConnect
  8.     msgbox "Connected";
  9.  
  10. End Function
  11.  
  12. I want connect ms-access database. Plz clearify me about the connection and ractify the error.
  13.  
Jan 31 '15 #1
2 1103
twinnyfo
3,653 Expert Mod 2GB
You have not told us what your problem is. Please describe any errors you are receiving and I am sure one of us may be able to help you troubleshoot your problem.
Feb 2 '15 #2
This the connection of database using vbscript but the connection is not wprking
Feb 3 '15 #3

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

Similar topics

1
by: Lolli man | last post by:
HI, I am trying to connect to a database using Visual Studio .NET. I have created the SQlconnection string and when I am trying to create the DataAdapter using SQLDATAADAPTER tool it aks me to...
5
by: Ranier Dunno | last post by:
Hi, I'm writing a data layer, and would like all components to have a single place for retrieving a connection to the (SQL Server) database. Currently, I'm treating the connection as somewhat...
2
by: Michel Esber | last post by:
Hello, DB2 V7 FP14 running Linux. Our application constantly tests whether the database connection is still alive before sending new statements to the DB. A "values current timestamp"...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
1
by: Mini Singh | last post by:
Hi All I am making an application in C++ which needs to be connected to Database like Sql Server or MsAccess..... How can i connect to database in C++. It's Urgent ..... Please reply
15
by: Andyza | last post by:
I'm looking at another developers code and I'm now confused about the correct way to close a database connection and destroy the object. I would normally do it this way: Set conn =...
3
by: fniles | last post by:
In the Windows application (using VB.NET 2005) I use connection pooling like the following: In the main form load I open a connection using a connection string that I stored in a global variable...
2
by: daljeet30 | last post by:
Hi i m daljeet singh. i m using Visual C#.net 2005 but i have facing problem Following code i used in app.config file <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> ...
2
by: Vicky | last post by:
I have installed both SQL and visual studio 2005 in my computer having vista. I tried to establish the database connection using this code: SqlConnection conn = new SqlConnection("data source=...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.