473,516 Members | 3,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Results returns from stored procedures

hi
Wondering if anyone could help clear this up for me. I have a number of
stored procedures in an access 2000 project (connected to msde) that
return (I use the word 'return' hesitantly) a table type view of the
results.
Sometimes however I'll get a result that has a record selector on the left
of the table window for each record returned but no columns. Fidling with
the query (mostly with the return statement) and re-executing sometimes
gives me the columns back. I can't however get any method to whats
happening - any hints for me?
Thanks
Glenn
Nov 12 '05 #1
2 1681
SA
Glenn:

Haven't seen this; care to post a sample SP that's giving problems?
--
Steve Arbaugh

"Glenn Davy" <vm*****@tpg.com.au> wrote in message
news:pa****************************@tpg.com.au...
hi
Wondering if anyone could help clear this up for me. I have a number of
stored procedures in an access 2000 project (connected to msde) that
return (I use the word 'return' hesitantly) a table type view of the
results.
Sometimes however I'll get a result that has a record selector on the left
of the table window for each record returned but no columns. Fidling with
the query (mostly with the return statement) and re-executing sometimes
gives me the columns back. I can't however get any method to whats
happening - any hints for me?
Thanks
Glenn

Nov 12 '05 #2
Hi Steve
Thanks for replying - its taken days for the problem to replicate itself.
When it finally I did I bought it home to my machine, where the problem
existed. I made some cosmetic changes to the code (column order and white
space) and the problem went away. I'm not holding out for an answer, given
my lack of information, but posting it here in case someone else has a
similar issue.

The other clue might be that this file is worked on both by Access 2002
and 2000 and shuffled between the two.

Here's the latest example
---------------------------
Alter PROCEDURE LoadProductByEvent
(

@VEHICLE nvarchar(12),

@Dt datetime,

@Seq int,
@Seq_load int

)

AS

SET NOCOUNT ON

SELECT dbo.ScheduledEvent.Id_Vehicle,
dbo.ScheduledEvent.Dt_,
dbo.ScheduledEvent.Sequence_,
dbo.ScheduledMovement_Product.Sequence_Load,
dbo.ScheduledMovement_Product.Id_Product,
dbo.ScheduledMovement_Product.id,
dbo.ScheduledMovement_Product.palletequiv_qty_prod uct,
dbo.ScheduledMovement_Product.qty_product
INTO #TMP1
FROM dbo.ScheduledEvent INNER JOIN
dbo.ScheduledMovement_Product ON dbo.ScheduledEvent.id =
dbo.ScheduledMovement_Product.Id_ScheduledEvent
WHERE (dbo.ScheduledEvent.Id_Vehicle = @Vehicle) AND
(dbo.ScheduledEvent.Dt_ < @Dt) OR
(dbo.ScheduledEvent.Id_Vehicle = @Vehicle) AND
(dbo.ScheduledEvent.Dt_ = @Dt) AND
(dbo.ScheduledEvent.Sequence_ < @Seq) OR
(dbo.ScheduledEvent.Id_Vehicle = @Vehicle) AND
(dbo.ScheduledEvent.Dt_ = @Dt) AND
(dbo.ScheduledEvent.Sequence_ = @Seq) AND
(dbo.ScheduledMovement_Product.Sequence_Load < @Seq_load)

SELECT id_product,sum(palletequiv_qty_product) as load_product,
sum(qty_product) as load_qty_product FROM #TMP1
GROUP BY
id_product
HAVING sum(palletequiv_qty_product) >0

__________________________
Nov 12 '05 #3

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

Similar topics

9
6427
by: Wolfgang Kreuzer | last post by:
Try hard to become familiar with T-SQL. Can anybodey tell me the best way to deal with set's provided by a stored procedure. Til yesterday I thougt trapping set in temp table using INSERT EXEC is a way out of this, but then I struggeled with nested INSERT EXEC's. What are all the system proc's good for if the results cannot be evaluated?...
4
1862
by: s99999999s2003 | last post by:
hi the database "execute" function returns a list of logical results. Each logical result is a list of row tuples, as explained in the documents. everytime i use it to execute various statements, it returns me, for example (, , ) and sometimes , (, ) or () in my call, i give eg (a,b,c) = db.execute(stmt) so that it returns me (, ,
2
9197
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered problems doing this. I wanted to implemented a generic "Helper" class like this: /** * Helper
5
3459
by: Tim Marshall | last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with interest and on reading the post describing Lauren Quantrell's SmartTree, I've run into something I don't understand: Stored Procedures. I thought stored pricedures were an Oracle/MS SQL Server thing and don't know how they work with Access Jet. I've looked at some of...
3
6496
by: Harold A. Mackey | last post by:
I'm having a time finding some examples of checkbox results in a database. I first tried setting up the fields as bit in the stored procedures. I have not been able to determine the output of a checkbox selection. It returns a true or false state. I need to know the type that it returns and how to store this in a database, or how to convert...
2
1378
by: George | last post by:
I am using ASP.Net with stored procedures to access an Oracle database. I am looking for an example of one that returns a cursor. I would like the cursor to be returned from a function. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
4
5725
by: Bill Moran | last post by:
I'm having a little trouble understanding how to do something. I assume I'm just missing it in the documentation, so a pointer to relevent docs would be as welcome as a direct answer. I have a project in which I'll need to create a number of stored procedures that are basically wrappers around complex SQL statements. Along the lines of: ...
0
1264
by: r1 | last post by:
I am relatively inexperienced in using delegates and asynchronous methods. I read several articles, and then I developed my own code with a mission to improve the performance. Wow! I cannot believe the difference in speed! However, the asynch operation fails sometimes, despite of the fact that it works most of the time. I am really at a...
9
2675
by: serge | last post by:
/* Subject: How to build a procedure that returns different numbers of columns as a result based on a parameter. You can copy/paste this whole post in SQL Query Analyzer or Management Studio and run it once you've made sure there is no harmful code. Currently we have several stored procedures which final result is a select with several...
0
7273
marktang
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...
0
7182
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...
0
7574
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...
0
5712
agi2029
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...
1
5106
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...
0
4769
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...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1620
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

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.