Click here to Skip to main content
15,902,844 members
Home / Discussions / Database
   

Database

 
QuestionTo many SQL Data Sources? Pin
Drathmar13-Jul-06 17:06
Drathmar13-Jul-06 17:06 
AnswerRe: To many SQL Data Sources? Pin
Colin Angus Mackay13-Jul-06 22:00
Colin Angus Mackay13-Jul-06 22:00 
AnswerRe: To many SQL Data Sources? Pin
mysorian15-Jul-06 4:47
professionalmysorian15-Jul-06 4:47 
QuestionA simple query :( [modified] Pin
xoxoxoxoxoxox13-Jul-06 16:35
xoxoxoxoxoxox13-Jul-06 16:35 
AnswerRe: A simple query :( Pin
Andrew Bleakley13-Jul-06 17:51
Andrew Bleakley13-Jul-06 17:51 
GeneralRe: A simple query :( Pin
xoxoxoxoxoxox13-Jul-06 17:58
xoxoxoxoxoxox13-Jul-06 17:58 
GeneralRe: A simple query :( Pin
Andrew Bleakley13-Jul-06 18:12
Andrew Bleakley13-Jul-06 18:12 
QuestionDataadapter UpdateCommand Pin
kedar.dave13-Jul-06 12:01
kedar.dave13-Jul-06 12:01 
//String* con = S"Provider=Microsoft.Jet.OLEDB.4.0;" + S" DataSource=C:\\AEM\\Database\\ProTunerDatabase.mdb";
OleDbConnection* ole = new OleDbConnection( S"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\AEM\\Database\\ProTunerDatabase.mdb" );
//OleDbDataAdapter* dadapter = new OleDbDataAdapter(S"select * from Item_List", ole);
OleDbDataAdapter* dadapter = new OleDbDataAdapter();
DataSet* dset = new DataSet();


ole->Open();
OleDbParameter* par;
dadapter->SelectCommand = new OleDbCommand(S"select * from test", ole);
dadapter->Fill( dset, S"test" );

dadapter->UpdateCommand = new OleDbCommand(S"update test set Item_name=@str where Item_id=@prev");


par = dadapter->UpdateCommand->Parameters->Add(new OleDbParameter ("@str", OleDbType::VarChar));
par->SourceColumn = "Item_name";
par->SourceVersion = DataRowVersion::Current;


par = dadapter->UpdateCommand->Parameters->Add(new OleDbParameter ("@prev", OleDbType::Integer));
par->SourceColumn = "Item_id";
par->SourceVersion = DataRowVersion::Original;

dadapter->UpdateCommand->Connection = ole;

dadapter->Update(dset,"test");

HOW DO I SPECIFY VALUES FOR @str and @prev ????
so that i can update my database.

I am using Visual C++.NET in Visual Studio 2005

Thanks,

Kedar DaveConfused | :confused:

AnswerRe: Dataadapter UpdateCommand Pin
Rob Graham13-Jul-06 13:24
Rob Graham13-Jul-06 13:24 
QuestionRe: Dataadapter UpdateCommand Pin
kedar.dave13-Jul-06 13:34
kedar.dave13-Jul-06 13:34 
AnswerRe: Dataadapter UpdateCommand Pin
Rob Graham13-Jul-06 14:29
Rob Graham13-Jul-06 14:29 
QuestionRe: Dataadapter UpdateCommand Pin
kedar.dave14-Jul-06 8:43
kedar.dave14-Jul-06 8:43 
Questioncan we use sql reporting services with ASP3.0 Pin
prasannamv13-Jul-06 11:15
prasannamv13-Jul-06 11:15 
AnswerRe: can we use sql reporting services with ASP3.0 Pin
Paul Conrad15-Jul-06 11:00
professionalPaul Conrad15-Jul-06 11:00 
GeneralRe: can we use sql reporting services with ASP3.0 Pin
Asif Sayed15-Jul-06 19:48
Asif Sayed15-Jul-06 19:48 
QuestionSUM() of a SUM() help please! [modified] Pin
Heinz_13-Jul-06 10:56
Heinz_13-Jul-06 10:56 
AnswerRe: SUM() of a SUM() help please! Pin
Ennis Ray Lynch, Jr.13-Jul-06 11:07
Ennis Ray Lynch, Jr.13-Jul-06 11:07 
GeneralRe: SUM() of a SUM() help please! Pin
Heinz_13-Jul-06 11:17
Heinz_13-Jul-06 11:17 
GeneralSQL Server has a table type Pin
Ennis Ray Lynch, Jr.13-Jul-06 11:21
Ennis Ray Lynch, Jr.13-Jul-06 11:21 
AnswerRe: SUM() of a SUM() help please! Pin
Mike Dimmick14-Jul-06 0:39
Mike Dimmick14-Jul-06 0:39 
GeneralRe: SUM() of a SUM() help please! Pin
Heinz_15-Jul-06 12:12
Heinz_15-Jul-06 12:12 
QuestionTransfer data between databases Pin
Gulfraz Khan13-Jul-06 4:54
Gulfraz Khan13-Jul-06 4:54 
AnswerIf an error occurs Pin
Ennis Ray Lynch, Jr.13-Jul-06 9:22
Ennis Ray Lynch, Jr.13-Jul-06 9:22 
GeneralIt works for me! Pin
Gulfraz Khan14-Jul-06 4:19
Gulfraz Khan14-Jul-06 4:19 
QuestionMultiple user database Pin
codeamin13-Jul-06 4:51
codeamin13-Jul-06 4:51 

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.