Click here to Skip to main content
15,917,005 members
Home / Discussions / Database
   

Database

 
QuestionCreate a table with a storage procedure Pin
mikobi3-Apr-06 21:12
mikobi3-Apr-06 21:12 
AnswerRe: Create a table with a storage procedure Pin
Ricardo Casquete4-Apr-06 6:12
Ricardo Casquete4-Apr-06 6:12 
Questionmulti user programming Pin
shinshit3-Apr-06 17:03
shinshit3-Apr-06 17:03 
AnswerRe: multi user programming Pin
Colin Angus Mackay3-Apr-06 23:05
Colin Angus Mackay3-Apr-06 23:05 
Questiondata from 2 different tables linked with a join. Pin
massimo Nicoletti3-Apr-06 3:13
massimo Nicoletti3-Apr-06 3:13 
AnswerRe: data from 2 different tables linked with a join. Pin
Ricardo Casquete4-Apr-06 6:14
Ricardo Casquete4-Apr-06 6:14 
GeneralRe: data from 2 different tables linked with a join. Pin
massimo Nicoletti4-Apr-06 20:43
massimo Nicoletti4-Apr-06 20:43 
GeneralRe: data from 2 different tables linked with a join. Pin
Ricardo Casquete4-Apr-06 22:49
Ricardo Casquete4-Apr-06 22:49 
OK Man,

If you have a view in Access or SqlServer, you should be able to see it from the Server Explorer of the Visual Studio.

Instead of the Tables Node, From the View Node.

So now, to create a Typed DataSet from the View the only thing you have to do is to Drag and drop it over a dataSet or over a form ( creating also the OdbcDataAdapter ).

Doing so, when the DataAdapter has been created if you have done the View Properly ( I mean with all the PrimaryKeys of the Tables, and all the Columns that cannot be empty ) the DataAdapter willk generate the Update and DeleteCommand.

If you don't have all this information, you won't be able to delete or update.

Now the only thing you have to do is to work with the Data of the DataSet.

I mean

foreach ( System.Data.DataColumn col in this.dst.Tables [ 0 ].Columns )
{
col [ 0 ]....
}

foreach ( System.Data.DataRow row in this.dst.Tables [ 0 ].Rows )
{
row [ 0 ].ToString()....
}

to add a row in the tables of the View, you only have to add a row to the DataSet and call Update to the DataAdapter...

and more or less thats all





Ricardo Casquete
GeneralRe: data from 2 different tables linked with a join. Pin
massimo Nicoletti4-Apr-06 23:27
massimo Nicoletti4-Apr-06 23:27 
GeneralRe: data from 2 different tables linked with a join. Pin
Ricardo Casquete4-Apr-06 23:36
Ricardo Casquete4-Apr-06 23:36 
GeneralRe: data from 2 different tables linked with a join. Pin
massimo Nicoletti5-Apr-06 0:00
massimo Nicoletti5-Apr-06 0:00 
GeneralRe: data from 2 different tables linked with a join. Pin
Ricardo Casquete5-Apr-06 0:06
Ricardo Casquete5-Apr-06 0:06 
GeneralRe: data from 2 different tables linked with a join. Pin
massimo Nicoletti18-Apr-06 20:22
massimo Nicoletti18-Apr-06 20:22 
QuestionQuery Analyzer and Languages Pin
phimix3-Apr-06 2:49
phimix3-Apr-06 2:49 
QuestionUser Creation in SQL Server 2005 Pin
Brendan Vogt2-Apr-06 21:08
Brendan Vogt2-Apr-06 21:08 
QuestionArray in SQL Pin
Brendan Vogt2-Apr-06 21:02
Brendan Vogt2-Apr-06 21:02 
AnswerRe: Array in SQL Pin
Colin Angus Mackay2-Apr-06 23:18
Colin Angus Mackay2-Apr-06 23:18 
GeneralRe: Array in SQL Pin
Brendan Vogt3-Apr-06 0:57
Brendan Vogt3-Apr-06 0:57 
GeneralRe: Array in SQL Pin
Colin Angus Mackay3-Apr-06 2:11
Colin Angus Mackay3-Apr-06 2:11 
GeneralRe: Array in SQL Pin
Brendan Vogt4-Apr-06 4:14
Brendan Vogt4-Apr-06 4:14 
GeneralRe: Array in SQL Pin
Colin Angus Mackay4-Apr-06 5:21
Colin Angus Mackay4-Apr-06 5:21 
QuestionRe: Array in SQL Pin
Brendan Vogt10-Apr-06 3:56
Brendan Vogt10-Apr-06 3:56 
AnswerRe: Array in SQL Pin
HimaBindu Vejella3-Apr-06 2:16
HimaBindu Vejella3-Apr-06 2:16 
AnswerRe: Array in SQL Pin
PaulMcKenzie4-Apr-06 11:07
PaulMcKenzie4-Apr-06 11:07 
AnswerRe: Array in SQL Pin
Igor Sukhov4-Apr-06 15:38
Igor Sukhov4-Apr-06 15:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.