473,836 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft.Data. Access.Applicat ion.Block for OleDB

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!
Jun 8 '06 #1
2 2520
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!


Jun 8 '06 #2
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!


Jun 8 '06 #3

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

Similar topics

5
18481
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.
8
2590
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...
2
1366
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...
2
1066
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
5
3916
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.
3
1820
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
4
1937
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.
3
1743
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:
0
1878
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 ...
0
10845
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...
1
10592
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
10254
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
7792
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
6979
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();...
0
5828
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4456
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
2
4019
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
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.