Click here to Skip to main content
15,909,498 members
Home / Discussions / Database
   

Database

 
GeneralRe: Alter Tables Pin
myNameIsRon15-Jun-06 14:39
myNameIsRon15-Jun-06 14:39 
AnswerRe: Alter Tables Pin
Eric Dahlvang15-Jun-06 4:47
Eric Dahlvang15-Jun-06 4:47 
GeneralRe: Alter Tables Pin
myNameIsRon15-Jun-06 14:38
myNameIsRon15-Jun-06 14:38 
Question'Best practices' info needed [modified] Pin
Gary Wheeler14-Jun-06 10:49
Gary Wheeler14-Jun-06 10:49 
AnswerRe: 'Best practices' info needed Pin
Colin Angus Mackay14-Jun-06 11:10
Colin Angus Mackay14-Jun-06 11:10 
GeneralRe: 'Best practices' info needed Pin
Gary Wheeler15-Jun-06 1:18
Gary Wheeler15-Jun-06 1:18 
QuestionDAO - Stored Procedure Execution Pin
KSMANN14-Jun-06 9:32
KSMANN14-Jun-06 9:32 
QuestionSystem.Data.DBConcurrencyException Pin
IMC200614-Jun-06 7:30
IMC200614-Jun-06 7:30 
I have a app with a grid and am working on updating data from the grid to the data base. the update is triggered off a menu item. the code is as follows:

try
{
// New data entered to Contract QA_Setup table
DataAccess da = new DataAccess();

string sproc = "prc_QA_Setup_upd";
string dbAction = "Update";
string tableName = "QA_Setup";

// Update to find grid changes
//ug.Update();
ug.UpdateData();

// to retrieve ds with modified rows to grid
ds.GetChanges(DataRowState.Modified);

// Call to DAL to update QA_Setup with new data
da.updateDB(ds, sproc, dbAction, tableName);
}

This passes to the DAL and tries to run:

private void prepareUpdate(string sproc, string tableName)
{
// Create parameters for the QA_Setup dataset via Sqlcommand
SqlCommand cmd = new SqlCommand(sproc, conn);

// call set cmd properties
defineParams(tableName, cmd);
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = sproc;
//RunProc(sproc);
//RunProc(cmd);

dap.UpdateCommand = cmd;
}

However I get a System.Data.DBConcurrencyException, what am I missing?

Questionsqldataadapter sqlcommandbuilder stripping off identity column HELP??? Pin
isgrom14-Jun-06 7:16
isgrom14-Jun-06 7:16 
QuestionAggregation function error Pin
tadhg8814-Jun-06 4:02
tadhg8814-Jun-06 4:02 
AnswerRe: Aggregation function error Pin
Colin Angus Mackay14-Jun-06 5:34
Colin Angus Mackay14-Jun-06 5:34 
GeneralRe: Aggregation function error Pin
tadhg8814-Jun-06 6:39
tadhg8814-Jun-06 6:39 
GeneralRe: Aggregation function error Pin
Colin Angus Mackay14-Jun-06 8:16
Colin Angus Mackay14-Jun-06 8:16 
GeneralRe: Aggregation function error [modified] Pin
tadhg8822-Jun-06 4:31
tadhg8822-Jun-06 4:31 
Questiondo tasks perodically on SQL Server 2000 Pin
{darkside}14-Jun-06 3:22
{darkside}14-Jun-06 3:22 
AnswerRe: do tasks perodically on SQL Server 2000 Pin
ToddHileHoffer14-Jun-06 3:33
ToddHileHoffer14-Jun-06 3:33 
AnswerRe: do tasks perodically on SQL Server 2000 Pin
Frank Kerrigan15-Jun-06 5:03
Frank Kerrigan15-Jun-06 5:03 
GeneralRe: do tasks perodically on SQL Server 2000 [modified] Pin
{darkside}21-Jun-06 11:39
{darkside}21-Jun-06 11:39 
QuestionDatabase design question [modified] Pin
ToddHileHoffer14-Jun-06 2:34
ToddHileHoffer14-Jun-06 2:34 
AnswerRe: Database design question [modified] Pin
Colin Angus Mackay14-Jun-06 5:38
Colin Angus Mackay14-Jun-06 5:38 
GeneralRe: Database design question Pin
Eric Dahlvang14-Jun-06 6:16
Eric Dahlvang14-Jun-06 6:16 
GeneralRe: Database design question Pin
ToddHileHoffer14-Jun-06 7:44
ToddHileHoffer14-Jun-06 7:44 
Questionwhere to store big data? Pin
Yelow14-Jun-06 1:58
Yelow14-Jun-06 1:58 
AnswerRe: where to store big data? Pin
albCode14-Jun-06 2:06
albCode14-Jun-06 2:06 
GeneralRe: where to store big data? Pin
Yelow14-Jun-06 2:53
Yelow14-Jun-06 2:53 

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.