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

2.0 XSDs Using Stored Procedures

In a new 2.0 website I am developing I am using .XSD tableadapters, building
them with the wizard), and choosing the Stored Procedure option. I now
notice that when I go back to change the sql that I have no opportunity to
do so (as I do with regular sql). What is the recommended way to change an
..XSD using stored procedures? It doesn't seem I should directly change the
Stored Procedure as it works in concert with the generated methods in the
XSD, no?

More generally, what is the best practice here? I'm considering doing away
with the XSDs and just using straight stored procedures.

--
Regards,
Gary Blakely
Jan 24 '07 #1
3 1326
Hi Gary,

A Stored Procedure may not only have SQL queries, it also could have
program logic there. Currenly the Visual Studio DataSet designer cann't
help you modify an existing Stored Procedure's logic, you will have to use
other database management tool to edit the Stored Procedure. Then you can
configure the DataSet to use the existing Stored Procedures accordingly.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Jan 24 '07 #2
Walter,
When you say "Then you can configure the DataSet to use the existing Stored
Procedures accordingly. " What do you mean?
The classes that get generated still have the old values (even with regular
embedded sql they do!). I have found that I always need to delete the whole
XSD and start over any time a mod is needed -SPs or SQL. I'm wondering
about the value of these XSDs altogether - I'm thinking that the wizard may
be useful but I should then just take the SQL or the generated SPs and use
them in code. What do you think?
--
Regards,
Gary Blakely

"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:Rf**************@TK2MSFTNGHUB02.phx.gbl...
Hi Gary,

A Stored Procedure may not only have SQL queries, it also could have
program logic there. Currenly the Visual Studio DataSet designer cann't
help you modify an existing Stored Procedure's logic, you will have to use
other database management tool to edit the Stored Procedure. Then you can
configure the DataSet to use the existing Stored Procedures accordingly.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.


Jan 26 '07 #3
Hi Gary,

What I meant is that you could:

1) Open the DataSet designer
2) Right-click on your DataSet, select "Configure"
3) In the "TableAdapter Configuration Wizard" dialog, you will see 4
combobox for the Select/Insert/Update/Delete operations, from each one you
could select an existing Stored Procedure to use. However you cannot change
the logic inside the Stored Procedure, you will have to use other database
management tool to modify it.
The value of the strong-typed DataSet is that it creates a TableAdapter for
you and the business objects are strong-typed.

TableAdapters are designer-generated components; they are analogous to
strongly typed data adapters. TableAdapters contain the necessary
information to connect to and query a database. For more information, see:
#TableAdapter Overview
http://msdn2.microsoft.com/en-us/lib...wx(VS.80).aspx
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 26 '07 #4

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

Similar topics

10
by: Dragonhunter | last post by:
Hello, The aspfaq.com seems to really push stored procedures, and I hear the same advice here all the time. So I want to take the advice. Is it possible to create and practically maintain,...
2
by: Yves Touze | last post by:
Hi All, I'm trying to migrate from SQL Server 7.0 to SQL Server 2000. I've got some ASP page which call VB components that retrieve shaped recordsets from SQL Server using the MSDATASHAPE...
0
by: peter greaves | last post by:
hi everyone i am having a bad time with an entity resolver. my application uses a resolver to locally-cache the nested schemas that the basic xsd includes to a local directory. however i am...
5
by: gilles27 | last post by:
I've ready many of the posts on this and other newsgroups in which people describe working practices for source control of database scripts. We are looking to implement something similar in my...
2
by: scott | last post by:
Hi, Just wondering what sort of problems and advantages people have found using stored procedures. I have an app developed in VB6 & VB.NET and our developers are starting to re-write some of the...
10
by: serge | last post by:
Using "SELECT * " is a bad practice even when using a VIEW instead of a table? I have some stored procedures that are identical with the difference of one statement in the WHERE clause. If I...
2
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...
0
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how...
2
by: GaryDean | last post by:
With ASP.Net 2.0 applications I am used to accessing data by using a 2.0 dataset and using the dataset wizard to create the tableadapter. I always (until now) have specified creation of embedded...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
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: 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...

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.