473,326 Members | 2,588 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,326 software developers and data experts.

SQL Parameters only with oleDbDataAdapter, oleDbConnection and DataSet

Hello.

I have a Stored Procedure, in which I use parameters, lets say "@test". How
can I in ,NET Visual C#, using only oleDbDataAdapter, oleDbConnection and a
DataSet display rows in a simple datagrid, e.g. putting "acme" under @test?
Is there any possiblity? If not, then how can I manage that in another way,
e.g. after pressing a button? What kind of objects should I use and how?
Alle the descriptions I've found, don't seem to work (or maybe I don't
understand something). Any help / ideas?

Greetings,

MuchaR
Nov 15 '05 #1
4 6131
From you posting it is not clear what you are tryig to do.
Is "@test" input or output paramater? And what do you meam by putting "acme"
under "@test"?
How do you populate your data grid? Binding?

"Robert Muchacki" <mu******@go2.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
Hello.

I have a Stored Procedure, in which I use parameters, lets say "@test". How can I in ,NET Visual C#, using only oleDbDataAdapter, oleDbConnection and a DataSet display rows in a simple datagrid, e.g. putting "acme" under @test? Is there any possiblity? If not, then how can I manage that in another way, e.g. after pressing a button? What kind of objects should I use and how?
Alle the descriptions I've found, don't seem to work (or maybe I don't
understand something). Any help / ideas?

Greetings,

MuchaR

Nov 15 '05 #2
From you posting it is not clear what you are tryig to do.
Is "@test" input or output paramater? And what do you meam by putting "acme"
under "@test"?
How do you populate your data grid? Binding?

"Robert Muchacki" <mu******@go2.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
Hello.

I have a Stored Procedure, in which I use parameters, lets say "@test". How can I in ,NET Visual C#, using only oleDbDataAdapter, oleDbConnection and a DataSet display rows in a simple datagrid, e.g. putting "acme" under @test? Is there any possiblity? If not, then how can I manage that in another way, e.g. after pressing a button? What kind of objects should I use and how?
Alle the descriptions I've found, don't seem to work (or maybe I don't
understand something). Any help / ideas?

Greetings,

MuchaR

Nov 15 '05 #3
Hello.
How do you populate your data grid? Binding?


I do it this way:

sqlDataAdapter1.Fill(dataset1)

I underdstand that there may be many ways to accomplish this.

Greetings,

MuchaR
Nov 15 '05 #4
Hello.
How do you populate your data grid? Binding?


I do it this way:

sqlDataAdapter1.Fill(dataset1)

I underdstand that there may be many ways to accomplish this.

Greetings,

MuchaR
Nov 15 '05 #5

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

Similar topics

0
by: Robert Muchacki | last post by:
Hello. I have a Stored Procedure, in which I use parameters, lets say "@test". How can I in ,NET Visual C#, using only oleDbDataAdapter, oleDbConnection and a DataSet display rows in a simple...
3
by: Brian Conway | last post by:
I am trying to get a parameter passed from one page to another in a QueryString to get inserted into the select statement on the page that is getting called. If I hard code in a value everything...
1
by: Don | last post by:
I am new to Indexing Services, have been researching the MS Site as well as web articles on DevHood, etc. I have set up a seperate catalog ("KnowledgeBase") on Win XP with a number of files. I am...
0
by: Steve | last post by:
I have a dataset. I fill it with two recordsets from SQL queries. Tables are called tblPlanFYSpendingStage, tblSpendingStage.
4
by: shachar | last post by:
hi all(i tried yesterday but it didnt work). i wrote this code and i get an error msg: Private Pr_MyCon As System.Data.OleDb.OleDbConnection Private Pr_DataSet As DataSet Private Pr_DataAdapter...
3
by: Aaron Smith | last post by:
I can't seem to get my table styles to apply to my DataGrid. In order for them to apply correctly, what exactly has to be set in the DataSource and DataMember, and then the DataMapping properties?...
2
by: momo | last post by:
Hello Guys, I have a bit of a problem, I created a Dll called SecureQueryStringDll.dll and I had the dll put bin folder of my application first and it did not work so I then put it in the bin...
1
by: Mo | last post by:
Hi, I am having a lot of problem adding a parameter to a oledb data sorce and execute it here is what I have I call string Pump="Yes" ResultSet = RunQuery("Update CDB_on set Resultx=:Resultx...
0
by: Syoam4ka | last post by:
My project is about jewellery. I have devided my jewelery into main types, which each one of them has sub types, and each one those sub types has the jewellery. I have a tabcontainer. It includes...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.