473,404 Members | 2,174 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,404 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 1105
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.