473,698 Members | 2,594 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DSNLess troubles

I'm trying to setup an Access DSNLess connection on my local computer. The
following string works fine within the Dreamweaver interface. But when I
upload to my server (locally) I get this error. Can anyone lend some
insight?
thanks

Object required: 'oConn'
/Connections/conn.asp, line 2

<%
oConn.Open "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=c:\inetpub \wwwroot\author s.mdb;" & _
"Uid=admin; " & _
"Pwd="
%>
Jul 19 '05 #1
4 2227
On Fri, 16 Jul 2004 21:26:30 -0400, "shank" <sh***@tampabay .rr.com>
wrote:

oConn was never created.

get down to the lower calls... brutha!
I'm trying to setup an Access DSNLess connection on my local computer. The
following string works fine within the Dreamweaver interface. But when I
upload to my server (locally) I get this error. Can anyone lend some
insight?
thanks

Object required: 'oConn'
/Connections/conn.asp, line 2

<%
oConn.Open "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=c:\inetpub \wwwroot\author s.mdb;" & _
"Uid=admin; " & _
"Pwd="
%>


Jul 19 '05 #2
>>get down to the lower calls... brutha!<<
Translate that if you don't mind...

<qw******@qwest ion.com> wrote in message
news:40******** ********@news.d allas.sbcglobal .net...
On Fri, 16 Jul 2004 21:26:30 -0400, "shank" <sh***@tampabay .rr.com>
wrote:

oConn was never created.

get down to the lower calls... brutha!
I'm trying to setup an Access DSNLess connection on my local computer. Thefollowing string works fine within the Dreamweaver interface. But when I
upload to my server (locally) I get this error. Can anyone lend some
insight?
thanks

Object required: 'oConn'
/Connections/conn.asp, line 2

<%
oConn.Open "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=c:\inetpub \wwwroot\author s.mdb;" & _
"Uid=admin; " & _
"Pwd="
%>

Jul 19 '05 #3
Show the code where oConn is instantiated.

Bob Lehmann

"shank" <sh***@tampabay .rr.com> wrote in message
news:7a******** *************@t wister.tampabay .rr.com...
get down to the lower calls... brutha!<< Translate that if you don't mind...

<qw******@qwest ion.com> wrote in message
news:40******** ********@news.d allas.sbcglobal .net...
On Fri, 16 Jul 2004 21:26:30 -0400, "shank" <sh***@tampabay .rr.com>
wrote:

oConn was never created.

get down to the lower calls... brutha!
I'm trying to setup an Access DSNLess connection on my local computer.

Thefollowing string works fine within the Dreamweaver interface. But when Iupload to my server (locally) I get this error. Can anyone lend some
insight?
thanks

Object required: 'oConn'
/Connections/conn.asp, line 2

<%
oConn.Open "Driver={Micros oft Access Driver (*.mdb)};" & _
"Dbq=c:\inetpub \wwwroot\author s.mdb;" & _
"Uid=admin; " & _
"Pwd="
%>


Jul 19 '05 #4
Set Conn = CreateObject("A DODB.Connection ")
Conn.Open "Provider=Micro soft.Jet.OLEDB. 4.0; " & _
"Data Source=c:\inetp ub\wwwroot\auth ors.mdb; " & _
"Jet OLEDB:Database; "

Use OLE Exclusive for speed.
Place the connection string in the global.asa file.

Application("Co nnString") = "Provider=Micro soft.Jet.OLEDB. 4.0; " & _
"Data Source=c:\inetp ub\wwwroot\auth ors.mdb; " & _
"Jet OLEDB:Database; "

Then use it on any page as so:

Set Conn = CreateObject("A DODB.Connection ")
Conn.Open Application("Co nnString")

This will allow you to edit the connection string at any time and effect all connections.

--
dlbjr
Pleading sagacious indoctrination!
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
2965
by: Darren Dale | last post by:
I love the language. I love the community. My only complaint is that Python for Windows is built with Visual Studio. It is too difficult to build python, or a module, from source. This is what open source is all about, isnt it? I even have a copy of visual studio, and I still cant build modules from source, because my academic copy is version 7. As a scientist funded by the NSF, I feel compelled to do all my work using free software (I...
0
1968
by: lmckaha | last post by:
Hi, Mysql version: 3.23.49 Solaris version: 2.7 gcc compiler version: 2.95.2 Python : 2.2.2 I'm evaluating the C and C++ API to decide which one to bye but I have many troubles.
3
1439
by: Mr. B | last post by:
GRRRR... I've run across a situation in which I have NO solution. Hopefully there is one. VB.net. It's rather simple. I've a ComboBox that get's populated via a Database. And I pre-select (during Formload) the Index using SelectedIndex: ' Get User info from Data Base fill daPickUser.Fill(dsPickUser.MASTER_PRM_EMPLOYEE)
2
4342
by: Tony Epton | last post by:
<crossposted to several groups> Is there any way to create a DSNless connection to SQL server from access 97 (DAO) All the samples of connection strings I am finding - all have a reference to a DSN. Many thanks Tony
0
1486
by: Michal | last post by:
I have troubles with instaling .Net Framework 2.0 (Beta 2 - 2.0.50215). The main instalation went just fine, troubles begin with my attemt to run aspnet_regiss.exe -i. Asp.Net is instaled into IIS as it should be, sites are working just fine. The only problem is thet this instalation did not create the AspNet_WebAdmin folder in /inetpub/wwwroot, thus the WebAdmin is not instaled in IIS and I cannot administer my sites. I read in official...
4
9735
by: MrsBean | last post by:
I've been working on learning how to use PHP with MS Access, and as long as I use ODBC, I can make it work. I want to use a DSNless connection. Everthing I have tried has failed. Can anyone show me a simple example? MrsBean
0
1453
by: JohnIdol | last post by:
VC++6 to VC++2003 - linking troubles -------------------------------------------------------------------------------- Hi All, I successfully ported an application from VC++6 to VS2003. Solved compiling issues but now I am sticking with serious Linking troubles. I got a bunch of:
8
4250
Dököll
by: Dököll | last post by:
Hiya Fans! I hit a brick wall. I was attempting to make a DSNLess connection I seemed to have Goofed somewhere: Private Sub SQLServer_Click() Dim MyWorkspace As DAO.Workspace Set MyWorkspace = CreateWorkspace("", "admin", "", dbUseODBC) Dim MyConnection As DAO.Connection Set MyConnection = MyWorkspace.OpenConnection("", , , "ODBC;DATABASE=FirstSQLDB")
1
1662
by: Pegasus | last post by:
Good morning, I'm Filippo Battaglia. We're porting Apache STDCXX under Nanodesktop. We are trying to make nd compatible also with C++ and not only with C. Unfortunately, we're finding different technical troubles in the compilation. So, can anyone of the developers tell with me ? So, I can solve the troubles step by step and I can obtain a working version of the library.
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9166
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8899
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6525
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5861
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3052
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 we have to send another system
3
2007
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.