473,394 Members | 1,714 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,394 software developers and data experts.

batch queries


Well, I'll look into my crystal ball and tell you what
I've experienced according to your lack of description of
your problem and error codes:

1st make 1 recordset per databinding. I'll assume you
are using MS-SQL (I recognise the practice db). I
believe you will need to do this to keep track of the
data pointers for current record.

I've not seen a good implementation of batch queries with
bindings, if it can be done I cannot say, but revert back
to the standard of 1 query--1 resultset--1 data control.

if you need an articulated subquery or join then that is
another problem, you'll need to restucture the sql
appropriately to provide you with the recordset you
desire.
-----Original Message-----
Hi!
I see my self as new to programming in a c# environment, and insecure in SQLqueries. I appreciate any help.
I'm building a windowsapplication with among others datagrids anddatabindings. Uptil now it has been an increasing development :-)
I thought that batch queries was the answer to my problems. But I'm havingtrouble making my query generic for showing the result in a datagrid togetherwith a current row.

example:
select count (orderID) From Orders Where OrderDate < '1.1.2001';select * from orders
group by CostumerID
.

Nov 16 '05 #1
0 1091

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

Similar topics

4
by: DG | last post by:
Hi, Can anyone advise how to execute multiple statements in a single query batch. For example- update customers set customer_name = 'Smith' where customer_name = 'Smyth'; select * from...
3
by: brian | last post by:
I have a problem that probably has a simple solution but I don't have much SQL experience... My company's database is pretty crummy, based on Access97 .MDB files with a VB front-end. My...
6
by: Charles Neitzel | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
1
by: Charles | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
1
by: ML | last post by:
We have a large batch type update process that the user needs to launch from a button on an ASP.NET webpage. The process basically does some queries against SQL Server, loops through the result...
2
by: Blippy | last post by:
I want to create a small look up program that searches for a certain date and the batch number that is represented by that day. For instance if i wanted to find the batch for 20/08/05 i would...
7
by: mark.a.lemoine | last post by:
Our application currently interfaces to SQL Server and Oracle, we're implementing it into DB2 currently and I have a question to ask. First a little background - We're interfacing into DB2 v8 on...
0
by: mohandaspradeep | last post by:
Hi Is there any restriction in coding number of queries in a single file for a Batch SPUFI in DB2? Can a Batch SPUFI have any no of queries in it ?
14
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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.