472,784 Members | 886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,784 software developers and data experts.

Add/remove stored procedures in .NET project

Hi,

I'll need to replace an existing stored procedure (let's call it
old_SP), with a new one (let's call it new_SP) in a Visual Studio .NET
project.

Here's what I did:

1) Open "Dataset.xsd" to display the tables with their columns for the
stored procedures;

2) Manully add a new table for the new_SP with its columns;

3) Delete old_SP;

4) Save "Dataset.xsd";

5) Since "Dataset.Desginer.cs" is automatically generated from
"Dataset.xsd", so I emptied "Dataset.xsd" and hoped that it would be
correctly generated when I rebuilt the project.

However, when I select "Rebuild", I get all sorts of compiling errors
such as "type name 'blah-blah' does not exist in the type 'Dataset'".
So should I have kept some definitions of type names in
"Dataset.Designer.cs"? What are the correct steps for me to add/remove
stored procedures in a Visual Studio project without hassle?

Many thanks!

-Emily

Dec 19 '06 #1
2 1586
Hi,

I suspect that your code references a typed DataTable that no longer exists.
Either remove the references from your code or update them to point to a
different, existing DataTable.

--
Dave Sexton

"Fir5tSight" <fi********@yahoo.comwrote in message
news:11**********************@48g2000cwx.googlegro ups.com...
Hi,

I'll need to replace an existing stored procedure (let's call it
old_SP), with a new one (let's call it new_SP) in a Visual Studio .NET
project.

Here's what I did:

1) Open "Dataset.xsd" to display the tables with their columns for the
stored procedures;

2) Manully add a new table for the new_SP with its columns;

3) Delete old_SP;

4) Save "Dataset.xsd";

5) Since "Dataset.Desginer.cs" is automatically generated from
"Dataset.xsd", so I emptied "Dataset.xsd" and hoped that it would be
correctly generated when I rebuilt the project.

However, when I select "Rebuild", I get all sorts of compiling errors
such as "type name 'blah-blah' does not exist in the type 'Dataset'".
So should I have kept some definitions of type names in
"Dataset.Designer.cs"? What are the correct steps for me to add/remove
stored procedures in a Visual Studio project without hassle?

Many thanks!

-Emily

Dec 20 '06 #2
Hi Dave,

What you said makes a lot of sense to me. I'll work on cleaning the
code so that it doesn't reference any typed DataTable that don''t
exist.

Thanks!

-Emily

Dave Sexton wrote:
Hi,

I suspect that your code references a typed DataTable that no longer exists.
Either remove the references from your code or update them to point to a
different, existing DataTable.

--
Dave Sexton

"Fir5tSight" <fi********@yahoo.comwrote in message
news:11**********************@48g2000cwx.googlegro ups.com...
Hi,

I'll need to replace an existing stored procedure (let's call it
old_SP), with a new one (let's call it new_SP) in a Visual Studio .NET
project.

Here's what I did:

1) Open "Dataset.xsd" to display the tables with their columns for the
stored procedures;

2) Manully add a new table for the new_SP with its columns;

3) Delete old_SP;

4) Save "Dataset.xsd";

5) Since "Dataset.Desginer.cs" is automatically generated from
"Dataset.xsd", so I emptied "Dataset.xsd" and hoped that it would be
correctly generated when I rebuilt the project.

However, when I select "Rebuild", I get all sorts of compiling errors
such as "type name 'blah-blah' does not exist in the type 'Dataset'".
So should I have kept some definitions of type names in
"Dataset.Designer.cs"? What are the correct steps for me to add/remove
stored procedures in a Visual Studio project without hassle?

Many thanks!

-Emily
Dec 21 '06 #3

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

Similar topics

1
by: Suresh Tri | last post by:
Hi all, I am in search of any Enterprise level Opensource Project that uses Java Stored Procedures supported by Oracle. I could not find any by googling. Can any one plese point me to any such...
7
by: Douglas Buchanan | last post by:
I can't seem to open SQLS2k Stored Procedures in the IDE I am running MDE 2003 Version 7.1.3088 I have a MSDN professional subscription and did a complete install of vs.net Help explains how...
0
by: Tim Bolla | last post by:
I have created ~30 stored procedures that I need to have running on a database in order to use the application that I have developed. I am looking for a solution so that these stored procedures...
2
by: Rafael Faria | last post by:
Hi All, We are starting a large data warehousing project using DB2 8.2 on AIX. There is a direction to move any new internal development to Java and a question was raised: Would it be a good...
2
by: Eli | last post by:
Hi all We currently have a strange problem with calling a Stored Procedure (SQL Database) in our C# Project. The only error I get is "System error" which says a lot :) Background: We have...
1
by: Matt | last post by:
Hello, I'm working on a project in which i use Sql Server stored procedures to add and modify the records of our customers. This works fine, but when writing these stored procedures, i must use...
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
0
by: ccorbett | last post by:
Hi, I am pretty new to microsoft programming environment. I want to create forms in visual basic 2005 studio that read data from stored procedures and load into the forms for editing and new...
0
by: zman77 | last post by:
Hi. My solution (working in VS 2008) has a C# console app, and a C# web service. The service has an entity data model. It has numerous stored procedures. For one of the stored procs, which just...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{

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.