Can someone tell me how you change this code for an Oledb connection rather
than SQL Server. The code currently uses
Microsoft.Data. Access.Applicat ion.Block and the SQLHelper object...
I need to use this with an access database!
reader =
SqlHelper.Execu teReader(Config urationSettings .AppSettings("s trConn"),
CommandType.Sto redProcedure, "rolesForUs er", New OleDbParameter( "@Username" ,
User.Identity.N ame))
Thanks for any help! 2 2498
Go search for the MS Access Data Application Block, its out there. Last
time I saw it was on www.gotdotnet.com
... wrote: Can someone tell me how you change this code for an Oledb connection rather than SQL Server. The code currently uses Microsoft.Data. Access.Applicat ion.Block and the SQLHelper object...
I need to use this with an access database!
reader = SqlHelper.Execu teReader(Config urationSettings .AppSettings("s trConn"), CommandType.Sto redProcedure, "rolesForUs er", New OleDbParameter( "@Username" , User.Identity.N ame))
Thanks for any help!
I have that...
But it doesn't work with Access Database connections (OleDB)
Any other ideas???
Thanks
"tdavisjr" wrote: Go search for the MS Access Data Application Block, its out there. Last time I saw it was on www.gotdotnet.com ... wrote: Can someone tell me how you change this code for an Oledb connection rather than SQL Server. The code currently uses Microsoft.Data. Access.Applicat ion.Block and the SQLHelper object...
I need to use this with an access database!
reader = SqlHelper.Execu teReader(Config urationSettings .AppSettings("s trConn"), CommandType.Sto redProcedure, "rolesForUs er", New OleDbParameter( "@Username" , User.Identity.N ame))
Thanks for any help!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Geert-Pieter Hof |
last post by:
Hello,
My VB application read and writes data from and to a MS Excel workbook,
using the Microsoft.Jet.OLEDB.4.0 provider. I have installed the MS ActiveX
Data Object 2.0 Library on my computer and everything works fine.
I have created a setup using the Package & Deployment Wizard. I thought,
let's make the setup a bit more up-to-date, so I included the mdac_type.exe
version 2.7.
|
by: frankvfox |
last post by:
I am struggling to export Excel spreadsheets to the client machine in an
ASP.Net application. Everything was great until exporting Excel got into the
act. Documentation on MSDN is so poor regarding this subject it is pathetic.
Following examples on MSDN lead me to using CreateObject("Excel.Application")
which of course bombs in .Net! I finally discovered the
Microsoft.Office.Interop.Excel object and thought my problems were over.
When I...
|
by: VB Programmer |
last post by:
I get an error when I connect to my mdb. I know for sure that I dont have
it open and that the path is correct.
Here's the error:
System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot
open the file 'C:\Inetpub\wwwroot\MyTest\MyDatabase.mdb'. It is already
opened exclusively by another user, or you need permission to view its data.
at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) at...
|
by: guoqi zheng |
last post by:
I used microsoft data access application block a lot. It make data access
task much easier.
However, it is only available for SQL client, does anyone has a OLE version??
regards,
Guoqi Zheng
http://www.ureader.com
|
by: somersbar |
last post by:
hello all,
im trying to connect to a microsoft access database from an ASP.NET web
form.
i keep getting the following error though:
ERROR Could not use
'(unknown)'; file already in use. ERROR Driver's SQLSetConnectAttr failed ERROR
Could not use '(unknown)';
file already in use.
| |
by: Mukesh |
last post by:
Hi all
As per my earlier conversation with Ciaran (thx for reply) I have
installed the MS APplication block on the server , when i ran Build
Enterprise Library file and Install Services from (batch files )
programme files menu it was asking for visual studio 2003 , I have only
.net framework on the server how can i use the MS application block
data access library on my server plz help...
Mukesh Agarwal
|
by: Mukesh |
last post by:
Hi
I m using
microsoft application blocks Enterprise Library june 2005 with .net
framework 1.1 and VStudio2003 And C# as coding language
Sql server 2000 database
the project is running properly on the localhost server
but my online server does not have the ms Ent lib installed and also
de\oes not have visual studio that simply a .net 1.1 installed on that.
|
by: Mukesh |
last post by:
Thx Sloan
for the solution.
It is working properly under Full trust
When i tried it under Medium trust it was giving error
Parser Error Message: Required permissions cannot be acquired.
::::::::::
Source Error:
|
by: calvinkwoo3000 |
last post by:
My Window application run property withour link to mdb without password.
Once i set security password to mdb file, the error belor come out when i click detail.
Not a valid password. and detail as below
the string to connect to mdb is conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\mms.mdb;Jet OLEDB:Database Password=password;");
See the end of this message for details on invoking ...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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,...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |