473,378 Members | 1,543 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.

Dataenvironment for .Net

Hello,

I am trying to learn how to work in Visual Studio .Net 2005 and after
searching for a lot, I don't see any answer.

Actually, In VB6 I use the dataenvironment.
For my application, I have more than 1500 stored procedures / Functions
so I have put them all in a Dataenvironment so when I need something
from the database, I do DB.SPName and I immediately have a recordset.

It seem that in .Net, it is not possible anymore.
I have to create a command then add the parameters one by one...
(some procedures have 30 parameters)

I have also tried with the datasets, but there is nothing to initialize
the dataset immediately with a recordset (and parameters)

Can someone tell me how to do it or where I can find some informations
/or Tutorial to do it?

Thank you
Marc Allard
Allcomp
Nov 21 '05 #1
2 1700
Marc

This is the equivalent forum for 2005 beta testing

VB Language 2005
http://forums.microsoft.com/msdn/Sho...spx?ForumID=64

Cor

Nov 21 '05 #2

I miss that DataEnvironment from VB6.....

However, you can do one of 2 things that 'resemble' the DataEnvironment
.....at least for .net 2003 (I'm not familiar with 2005 yet):

i) From Sever Explorer - Connect to SQL Database and navigate to the Stored
Procs. Drag and drop them onto the forms that will be calling these stored
Procs. It will automatically create an SQL Connection object and an object
for each . You can then reference them on the form that is calling the
stored proc...

ii) Create a Master Form and store all Stored Procs there. Then make them
public and reference them from there. This is essentially the same as i)
execpt all stored procs are on one form with public access

Not quite the nice DataEnvironment but it offers you 'some similarity'

Gerry
"Allcomp" wrote:
Hello,

I am trying to learn how to work in Visual Studio .Net 2005 and after
searching for a lot, I don't see any answer.

Actually, In VB6 I use the dataenvironment.
For my application, I have more than 1500 stored procedures / Functions
so I have put them all in a Dataenvironment so when I need something
from the database, I do DB.SPName and I immediately have a recordset.

It seem that in .Net, it is not possible anymore.
I have to create a command then add the parameters one by one...
(some procedures have 30 parameters)

I have also tried with the datasets, but there is nothing to initialize
the dataset immediately with a recordset (and parameters)

Can someone tell me how to do it or where I can find some informations
/or Tutorial to do it?

Thank you
Marc Allard
Allcomp

Nov 21 '05 #3

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

Similar topics

2
by: Rado | last post by:
Hello. I want know if in VB.NEt is something like DATAENVIRONMENT/ This is in VB6/ Thank You.
1
by: Rado | last post by:
Hello. I have One problem. Whan I make database program in Visual Basic 6 which has some Forms. I make Dataenvironment. There I make connection to my database. In command I select table or write...
1
by: BraveHeart | last post by:
Hi everyone ! How i can use DataEnvironment in VB.NET ? Thanh you very much .
2
by: Preeths | last post by:
I have given the query select * from tablename in dataenvironment connection1_willeexcute event as source="select * from table1" i have given datasource of datareport as connection1 but could not...
1
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I want to connect my datareport to a dataenvironment programatically. And i m using this code for this purpose but it does not working with an error. DR.DataSource = "DE" DR.DataMember...
1
by: Neelesh2007 | last post by:
I am using dataenvironment for making Reports in vb6.0 with access 2003 as backend. I am having two problems since long. 1. If Project is saved in loacation other than application folder and if i...
1
by: MaryKJolly | last post by:
I got this sample project from a website. But there is some syntax error in the statement which contains the CDate function. I can't detect the error? Can enybody help me? SUMMARY This article...
1
by: psyvanz | last post by:
HOW TO MAKE A STUDENT SCHOOL SUBJECTS IN COLLEGE USING Visual Basic 6? WITH FIXED SUBJECTS AND ASSIGNING THE SUBJECT TO A STUDENT USING "DATAENVIRONMENT"? THIS IS IN "FORM1" THIS IS IN...
4
by: psyvanz | last post by:
Private Sub add_Click() dt1.rsCommand1.AddNew t1.Text = t2.Text + 1 ' << HELP ME HERE!!! I STARTED 000001.. IF I CLICK ADD COMMAND BUTTON, SO IT MUST BE 000002 NOT ONLY NUMBER 2. ' BECAUSE...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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...
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...
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...

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.