Click here to Skip to main content
15,886,963 members
Home / Discussions / Database
   

Database

 
AnswerRe: Stroing Word Document in the Database Pin
Michael P Butler20-Sep-05 2:34
Michael P Butler20-Sep-05 2:34 
QuestionNewbish Problem Pin
tatchung19-Sep-05 18:30
tatchung19-Sep-05 18:30 
AnswerRe: Newbish Problem Pin
Edbert P19-Sep-05 19:34
Edbert P19-Sep-05 19:34 
GeneralRe: Newbish Problem Pin
tatchung19-Sep-05 20:08
tatchung19-Sep-05 20:08 
GeneralRe: Newbish Problem Pin
Edbert P19-Sep-05 20:39
Edbert P19-Sep-05 20:39 
GeneralRe: Newbish Problem Pin
tatchung19-Sep-05 21:09
tatchung19-Sep-05 21:09 
GeneralRe: Newbish Problem Pin
Edbert P20-Sep-05 13:44
Edbert P20-Sep-05 13:44 
QuestionUpdate Command Failing Pin
japel19-Sep-05 0:42
japel19-Sep-05 0:42 
I can fill the DataGrid from a data source SQL but the update fails...

New to Programming and working on SQL DB any help would be great...

Dim SQLConnection1 As SqlClient.SqlConnection
Dim SQLCommand1 As SqlClient.SqlCommand
Dim SQLAdapter1 As SqlDataAdapter = New SqlDataAdapter
Dim myDataSet As New DataSet

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
SQLConnection1 = New System.Data.SqlClient.SqlConnection
SQLCommand1 = New System.Data.SqlClient.SqlCommand
SQLCommand1.Connection = SQLConnection1
SQLConnection1.ConnectionString = "Data Source=JAPEL-XP;Initial Catalog=CanonDB;User Id=sa;Password=;"
'SQLConnection1.Open()
End Sub
Private Sub FillData()
Dim Command1 As SqlCommand = New SqlCommand("SELECT Username , [Password] FROM WebSiteList")
Command1.CommandType = CommandType.Text
SQLConnection1.Open()
Command1.Connection = SQLConnection1

myDataSet = New DataSet("myDataSet")

SQLAdapter1.SelectCommand = Command1
SQLAdapter1.Fill(myDataSet, "WebSiteList")

DataGrid1.SetDataBinding(myDataSet, "WebSiteList")

SQLConnection1.Close()
End Sub

' This is the Code that fails..................

Private Sub UpdateData()
SQLAdapter1.Update(myDataSet, "WebSiteList")
End Sub


When people make you see red, be thankful your not colour blind.
AnswerRe: Update Command Failing Pin
enjoycrack19-Sep-05 0:54
enjoycrack19-Sep-05 0:54 
AnswerRe: Update Command Failing Pin
Luis Alonso Ramos19-Sep-05 8:19
Luis Alonso Ramos19-Sep-05 8:19 
GeneralRe: Update Command Failing Pin
japel19-Sep-05 10:36
japel19-Sep-05 10:36 
AnswerRe: Update Command Failing Pin
Luis Alonso Ramos20-Sep-05 19:49
Luis Alonso Ramos20-Sep-05 19:49 
Questionusing @@IDENTITY (or nething like this)for char datatype(sql server) Pin
utsav_verma18-Sep-05 23:53
utsav_verma18-Sep-05 23:53 
AnswerADDON:using @@IDENTITY (or nething like this)for char datatype(sql server) Pin
utsav_verma19-Sep-05 0:04
utsav_verma19-Sep-05 0:04 
AnswerRe: using @@IDENTITY (or nething like this)for char datatype(sql server) Pin
utsav_verma19-Sep-05 0:22
utsav_verma19-Sep-05 0:22 
GeneralRe: using @@IDENTITY (or nething like this)for char datatype(sql server) Pin
enjoycrack19-Sep-05 0:51
enjoycrack19-Sep-05 0:51 
QuestionMultiple Choice Pin
Leslie Sanford18-Sep-05 19:25
Leslie Sanford18-Sep-05 19:25 
AnswerRe: Multiple Choice Pin
Colin Angus Mackay18-Sep-05 20:26
Colin Angus Mackay18-Sep-05 20:26 
GeneralRe: Multiple Choice Pin
Leslie Sanford19-Sep-05 6:21
Leslie Sanford19-Sep-05 6:21 
AnswerRe: Multiple Choice Pin
Edbert P18-Sep-05 20:31
Edbert P18-Sep-05 20:31 
QuestionSQL union Pin
phokojoe18-Sep-05 5:31
phokojoe18-Sep-05 5:31 
AnswerRe: SQL union Pin
Colin Angus Mackay18-Sep-05 12:00
Colin Angus Mackay18-Sep-05 12:00 
Questionmysql conncetion for absolute beginner Pin
Sasuko17-Sep-05 23:46
Sasuko17-Sep-05 23:46 
QuestionDatabase Error at Enterprise Manager Pin
YoungLearner17-Sep-05 22:32
YoungLearner17-Sep-05 22:32 
QuestionI NEED A QUERY SAMPLE IF POSSIBLE Pin
MAGICIANMERLIN17-Sep-05 11:10
MAGICIANMERLIN17-Sep-05 11:10 

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.