Click here to Skip to main content
15,920,383 members
Home / Discussions / Database
   

Database

 
GeneralRe: Output vs select Pin
Grimolfr12-Oct-04 7:59
Grimolfr12-Oct-04 7:59 
GeneralRe: Output vs select Pin
Not Active12-Oct-04 9:54
mentorNot Active12-Oct-04 9:54 
QuestionCan I bind more than 1 field in a HyperlinkColumn? Pin
DotNet7-Oct-04 7:14
DotNet7-Oct-04 7:14 
AnswerRe: Can I bind more than 1 field in a HyperlinkColumn? Pin
Not Active7-Oct-04 7:32
mentorNot Active7-Oct-04 7:32 
GeneralRe: Can I bind more than 1 field in a HyperlinkColumn? Pin
Michael Winburn7-Oct-04 7:40
Michael Winburn7-Oct-04 7:40 
QuestionOQL: Where to get started? Pin
sefaen6-Oct-04 19:50
sefaen6-Oct-04 19:50 
AnswerRe: OQL: Where to get started? Pin
sreejith ss nair7-Oct-04 1:15
sreejith ss nair7-Oct-04 1:15 
GeneraldataAdapter update problem Pin
PJ-Intellia6-Oct-04 3:32
PJ-Intellia6-Oct-04 3:32 
Hi,

I have some strange problems with the update of a dataadapter.

First, I read a row in a table, through a dataset :

da = New SqlDataAdapter(sql, conn)<br />
ds = New DataSet<br />
da.Fill(ds, "MyTable")<br />
da.SelectCommand.CommandText = "select * from address"<br />
Dim sqlBuilder As SqlCommandBuilder = New SqlCommandBuilder(da)<br />
da.InsertCommand = sqlBuilder.GetInsertCommand()<br />
da.DeleteCommand = sqlBuilder.GetDeleteCommand()<br />
da.UpdateCommand = sqlBuilder.GetUpdateCommand()<br />
<br />
ta = ds.Tables("MyTable")<br />
<br />
pka(0) = ta.Columns("address_id")<br />
ta.PrimaryKey = pka<br />
<br />
dim dr As DataRow<br />
<br />
dr = ta.Rows.Find(1) 'get the address with id 1


Then I update a field :

dr("country_id") = system.dbnull.value

and now I commit the change :

da.update(ds)

But changes are not reflected in the database....

The update command doesn't work with this update. If country_id value is not null, it works...
I precise that country_id is nullable in the DB.

Thanks for any help.

Best regards.

Arthur
GeneralRe: dataAdapter update problem Pin
sreejith ss nair7-Oct-04 1:20
sreejith ss nair7-Oct-04 1:20 
GeneralRe: dataAdapter update problem Pin
shambho12-Oct-04 2:13
shambho12-Oct-04 2:13 
QuestionSave text with its format to database? Pin
bekunkun6-Oct-04 0:39
bekunkun6-Oct-04 0:39 
AnswerRe: Save text with its format to database? Pin
David Salter6-Oct-04 10:27
David Salter6-Oct-04 10:27 
GeneralRe: Save text with its format to database? Pin
bekunkun6-Oct-04 22:29
bekunkun6-Oct-04 22:29 
GeneralDataTable.Select() Pin
amatyasik5-Oct-04 5:57
amatyasik5-Oct-04 5:57 
GeneralRe: DataTable.Select() Pin
Guillermo Rivero5-Oct-04 6:15
Guillermo Rivero5-Oct-04 6:15 
GeneralRe: DataTable.Select() Pin
EdbertP5-Oct-04 16:59
EdbertP5-Oct-04 16:59 
GeneralRe: DataTable.Select() Pin
amatyasik5-Oct-04 21:28
amatyasik5-Oct-04 21:28 
Generalerror when calling stored procedure in ole db Pin
sudheer_ars4-Oct-04 20:28
sudheer_ars4-Oct-04 20:28 
GeneralRe: error when calling stored procedure in ole db Pin
sreejith ss nair7-Oct-04 1:11
sreejith ss nair7-Oct-04 1:11 
GeneralRe: error when calling stored procedure in ole db Pin
Colin Angus Mackay7-Oct-04 1:42
Colin Angus Mackay7-Oct-04 1:42 
GeneralSaving files into image field on sql server2000 Pin
firad3-Oct-04 20:18
sussfirad3-Oct-04 20:18 
QuestionOpinions on loading large file into database? Pin
ThomasH13-Oct-04 12:30
ThomasH13-Oct-04 12:30 
GeneralDatetime problem on sql statement Pin
Gamoss3-Oct-04 3:54
Gamoss3-Oct-04 3:54 
GeneralRe: Datetime problem on sql statement Pin
Jeremy Oldham3-Oct-04 3:57
Jeremy Oldham3-Oct-04 3:57 
GeneralRe: Datetime problem on sql statement Pin
Gamoss3-Oct-04 4:06
Gamoss3-Oct-04 4:06 

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.