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

Configuring SqlDataAdapter using stored procedure

I am configuring an SqlDataAdapter using a stored
procedure (which uses UNIONS and a Temporary Table) in
Visual Studio.Net

My stored procedure consists of:

SELECT ... INTO #tbltemporary FROM... WHERE...
UNION ALL
SELECT ... FROM ... tblnormal... WHERE...
UNION ALL
SELECT ... FROM... WHERE...

SELECT #tbltemporary.colEmployeeid,
tblnormal.colthree, etc.
The data adapter configuration wizard allows me to select
the stored procedure (for the SELECT Operation), but none
of the parameters show up in the box, so that I can choose
the procedure parameters. If I go ahead and click the
NEXT button, it gives me the message: Invalid Object
Name #tbltemporary

(When I run this procedure in the Server Explorer, it runs
perfectly, returning all of the values in my last Select
statement)

Is there a way to get this working?


Nov 20 '05 #1
1 3454
Cor
Hi "hlam"

There is also a newsgroup microsoft.public.dotnet.framework.adonet. And I
did not direct see that you had placed this question also in that newsgroup.

There are there VB language related things also but also a lot of the
questions like yours.

If I was you I would place your question too in that newsgroup.
The change that you get your answer there faster is very high.

I hope this helps you,

Cor
Nov 20 '05 #2

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

Similar topics

2
by: RitaG | last post by:
Hi. Is it possible to run a Stored Procedure that takes 1 parameter using the SQLDataAdapter. I'm currently using the SQLCommand with the SQLDataReader to do this but would like to use a...
5
by: Alex | last post by:
Hi all, I'm sure this is really really easy but I do need some help. I'm writing a java stored prcedure to manage the assignment of IP addresses to mac addresses for a network device database...
10
by: Ed Stevens | last post by:
A tale of woe, and a question . . . Last week my boss said to me "we've installed DB2 Connect on this Solaris box. Make it work." Now, I've barely seen DB2 Connect on Windows, having fumbled...
3
by: W Akthar | last post by:
I am trying to use SqlDataAdapter to execute a Stored Procedure. The Stored Procedure is as follows CREATE Procedure SP_GetAddressesFromContactID @ID int AS SELECT b.StreetAddress1,
7
by: Matt Jensen | last post by:
Howdy Fairly simple question I think, I presume the answer is no it can't be reused for 2 *SELECT* statements, but just hoping for clarification. Just asking in the interests of trying to minimise...
0
by: Richard | last post by:
Hi, I have in VB ASP.NET design mode, a SQLDataSource and I need to connect it to a stored procedure in Oracle 9i, but this stored procedure is inside an Oracle package. The problem is that...
3
by: dawson | last post by:
Hello, from the code below, how do I add/send a parameter to the stored procedure? SqlConnection conn = null; conn = new...
0
by: Ryan | last post by:
PLEASE HELP!! I am trying to do what I think should be the simplest thing. In Visual Studio 2005, I set up a datagrid and then went ot configure a datasource for it. I made my connection to...
2
by: suganya | last post by:
Hi I have to bind the DropDownList box with ID field hidden using SQLDataAdapter. For that I have given the coding as protected void Page_Load(object sender, EventArgs e) { ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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...

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.