Click here to Skip to main content
15,896,278 members
Home / Discussions / Database
   

Database

 
QuestionConfigure Report Server Pin
Shahzad.Aslam7-Feb-07 23:15
Shahzad.Aslam7-Feb-07 23:15 
Question[Ask] Using GetSchemaTable() in C# Pin
Jati Indrayanto7-Feb-07 19:51
Jati Indrayanto7-Feb-07 19:51 
AnswerRe: [Ask] Using GetSchemaTable() in C# Pin
andyharman7-Feb-07 23:13
professionalandyharman7-Feb-07 23:13 
QuestionForm Generator Pin
xoxoxoxoxoxox7-Feb-07 6:57
xoxoxoxoxoxox7-Feb-07 6:57 
QuestionSQL 2000 table size Pin
lost in transition 7-Feb-07 6:12
lost in transition 7-Feb-07 6:12 
AnswerRe: SQL 2000 table size Pin
andyharman7-Feb-07 6:51
professionalandyharman7-Feb-07 6:51 
GeneralRe: SQL 2000 table size Pin
lost in transition 7-Feb-07 9:36
lost in transition 7-Feb-07 9:36 
QuestionHelp needed in update query Pin
vidhu raj7-Feb-07 3:02
vidhu raj7-Feb-07 3:02 
Hi everybody

I am trying to update some file names values into the table through listbox
here i have two listboxes, in listbox1, i have some filenames, which i can add or remove from listbox2
When the user logs in , he has some files in listbox2, which is already assigned to him.
If he tries to remove some from listbox2, or add some more from lisbtox1, then update, the filenames are not getting updated

Suppose the user chooses file1, file2, from listbox1, add to lisbox2 and then update, it is not getting updated.

i am inserting the listbox1.item.value along with the contactid.

Public Sub UpdateAccounts(ByVal contactid As Int32)
Dim userBll As UserCreationBLL = New UserCreationBLL()
Dim listitems As Int32 = lstAllAccounts.Items.Count
Dim lstItems As Int32 = lstAccountAccess.Items.Count
If (lstItems > 0) Then
Dim i As Int16
For i = 0 To lstItems - 1
userBll.UpdateAccounts(contactid, Convert.ToInt32(lstAccountAccess.Items(i).Value))
Next i
End If
End Sub

SP for updating is
ALTER PROCEDURE UpdateAccounts
@contactID int,
@accountID int
AS
UPDATE [Contact Account ]
SET [Account ID] = @accountID
WHERE [Contact ID] = @contactID

thanks


GeneralRe: Help needed in update query Pin
Ware@Work7-Feb-07 4:35
Ware@Work7-Feb-07 4:35 
GeneralRe: thanks i got it worked Pin
vidhu raj7-Feb-07 5:06
vidhu raj7-Feb-07 5:06 
GeneralRe: thanks i got it worked Pin
Ware@Work7-Feb-07 9:23
Ware@Work7-Feb-07 9:23 
QuestionAimed @ the SQL Guru's Pin
Illegal Operation7-Feb-07 1:28
Illegal Operation7-Feb-07 1:28 
AnswerRe: Aimed @ the SQL Guru's Pin
andyharman7-Feb-07 6:32
professionalandyharman7-Feb-07 6:32 
Questionchecking null values Pin
minkinin6-Feb-07 22:45
minkinin6-Feb-07 22:45 
AnswerRe: checking null values Pin
Colin Angus Mackay6-Feb-07 23:35
Colin Angus Mackay6-Feb-07 23:35 
GeneralRe: checking null values Pin
minkinin7-Feb-07 0:31
minkinin7-Feb-07 0:31 
GeneralRe: checking null values Pin
Pete O'Hanlon7-Feb-07 4:28
mvePete O'Hanlon7-Feb-07 4:28 
GeneralRe: checking null values Pin
minkinin11-Feb-07 20:23
minkinin11-Feb-07 20:23 
AnswerRe: checking null values Pin
Rakesh.Jha.01107-Feb-07 18:15
Rakesh.Jha.01107-Feb-07 18:15 
QuestionError In Query: Pin
Shahzad.Aslam6-Feb-07 20:26
Shahzad.Aslam6-Feb-07 20:26 
AnswerRe: Error In Query: Pin
gauthee6-Feb-07 20:38
gauthee6-Feb-07 20:38 
GeneralRe: Error In Query: Pin
Shahzad.Aslam6-Feb-07 20:53
Shahzad.Aslam6-Feb-07 20:53 
GeneralRe: Error In Query: Pin
gauthee6-Feb-07 22:42
gauthee6-Feb-07 22:42 
GeneralRe: Error In Query: Pin
Shahzad.Aslam6-Feb-07 23:49
Shahzad.Aslam6-Feb-07 23:49 
GeneralRe: Error In Query: Pin
Christian Graus7-Feb-07 9:28
protectorChristian Graus7-Feb-07 9:28 

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.