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

Multiple stored procs for dataadapter

i'm trying to save on calls back to the db by combining stored procs in one
dataadapter. I know they work alone but when i combine the i get an error

" Could not find stored procedure
'usp_wp_BuildingAmenities;usp_wp_BuildingPrimaryDe tails'

for this line

Dim mydataadapter8 As New SqlDataAdapter("usp_wp_BuildingAmenities;" +
"usp_wp_BuildingPrimaryDetails;", dbconn)

I think i have tried every way of combining them and have googled every word
i thought that lead me to a solution. Can anybody help. TIA

akjtr
Nov 19 '05 #1
1 1198
Not sure, but try adding a GO statement after each one. Also, why not just
create 1 stored procedure which calls all other stored procedure and have
your DA call that?

create procedure BuildingDetails AS

us_wp_BuildingAmeni...
Go
Us.wp_building

Also, consider making use of SqlCommands with your dataadapters..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"AKJTR" <AK***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
i'm trying to save on calls back to the db by combining stored procs in one dataadapter. I know they work alone but when i combine the i get an error

" Could not find stored procedure
'usp_wp_BuildingAmenities;usp_wp_BuildingPrimaryDe tails'

for this line

Dim mydataadapter8 As New SqlDataAdapter("usp_wp_BuildingAmenities;" +
"usp_wp_BuildingPrimaryDetails;", dbconn)

I think i have tried every way of combining them and have googled every word i thought that lead me to a solution. Can anybody help. TIA

akjtr

Nov 19 '05 #2

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

Similar topics

5
by: Stanley Sinclair | last post by:
I have a need to return multiple result sets from a stored procedure. Want that SP to call others to get the data. Win2003, db2 8.1.5. Can't figure out how to handle open cursors, and return...
0
by: ardin | last post by:
anyone please help, i am developing and application that uses the update method of dataadapter (select, update, delete command was set by issuing the OleDbCommandBuilder)in updating the database. ...
3
by: gh | last post by:
I have made the following stored procedure with the following select statement select * from user select * from order, orderdetail where order.id=orderdetail.id I know I can uses DataReader...
1
by: Ahmet Karaca | last post by:
Hi. myds.Reset(); mycommand.SelectCommand.CommandText= "Select att1 from Ing as Ingredient, Pro as Product "+ "where Pro.ad='apple' and Pro.id=Ing.id"; mycommand.Fill(myds, "Product"); // Here...
45
by: John | last post by:
Hi When developing vb.bet winform apps bound to sql server datasource, is it preferable to use SELECTs or stored procedure to read and write data from/to SQL Server? Why? Thanks Regards
1
by: kentk | last post by:
Is there a difference in how SQL Server 7 and SQL 2000 processes SQL passed from a program by an ADO command object. Reason I ask is I rewrote a couple applications a couple years ago were the SQL...
5
by: limsy | last post by:
Hi ppl, Sorry for asking such a NEWBIE question. I tried looking for answers but cant find. Maybe its too easy. :( I'm used to manual code ADO rather than this .NET wizard and stuff... and i am...
6
by: Bonzol | last post by:
Hey there, I think this is not actually VB, but the language im using is VB. Ive been doing all my code,, NOT using Stored procedures.. so my functions are like.(in 2003) visual basic...
15
by: Burt | last post by:
I'm a stored proc guy, but a lot of people at my company use inline sql in their apps, sometimes putting the sql in a text file, sometimes hardcoding it. They don't see much benefit from procs, and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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,...
0
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...
0
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...
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
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,...

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.