Click here to Skip to main content
15,914,419 members
Home / Discussions / Database
   

Database

 
QuestionTime out Expired in SQL7 with .NET 2 Pin
rmhewa7-Apr-06 0:25
rmhewa7-Apr-06 0:25 
AnswerRe: Time out Expired in SQL7 with .NET 2 Pin
Frank Kerrigan10-Apr-06 1:22
Frank Kerrigan10-Apr-06 1:22 
GeneralRe: Time out Expired in SQL7 with .NET 2 Pin
rmhewa18-Apr-06 16:31
rmhewa18-Apr-06 16:31 
QuestionDoes SQL 2000 Check for Case -sensitive ? Pin
merlynml6-Apr-06 17:55
merlynml6-Apr-06 17:55 
AnswerRe: Does SQL 2000 Check for Case -sensitive ? Pin
Colin Angus Mackay6-Apr-06 20:45
Colin Angus Mackay6-Apr-06 20:45 
GeneralRe: Does SQL 2000 Check for Case -sensitive ? Pin
merlynml6-Apr-06 21:06
merlynml6-Apr-06 21:06 
GeneralRe: Does SQL 2000 Check for Case -sensitive ? Pin
Colin Angus Mackay6-Apr-06 21:16
Colin Angus Mackay6-Apr-06 21:16 
GeneralRe: Does SQL 2000 Check for Case -sensitive ? Pin
merlynml6-Apr-06 21:37
merlynml6-Apr-06 21:37 
QuestionGlobal exception thrown on execute of stored procedure with parameters Pin
Cannibal6-Apr-06 11:01
Cannibal6-Apr-06 11:01 
AnswerRe: Global exception thrown on execute of stored procedure with parameters Pin
Frank Kerrigan10-Apr-06 1:06
Frank Kerrigan10-Apr-06 1:06 
GeneralRe: Global exception thrown on execute of stored procedure with parameters Pin
Cannibal10-Apr-06 7:47
Cannibal10-Apr-06 7:47 
GeneralRe: Global exception thrown on execute of stored procedure with parameters Pin
Cannibal10-Apr-06 10:01
Cannibal10-Apr-06 10:01 
QuestionDataKeyField,God bless it... Pin
amin_behzadi6-Apr-06 5:56
professionalamin_behzadi6-Apr-06 5:56 
AnswerRe: DataKeyField,God bless it... Pin
junglerover776-Apr-06 16:51
junglerover776-Apr-06 16:51 
AnswerRe: DataKeyField,God bless it... Pin
munklefish9-Apr-06 7:04
munklefish9-Apr-06 7:04 
Questionload + save ADO.NET Methodology (no code) Pin
il_manti6-Apr-06 5:45
il_manti6-Apr-06 5:45 
AnswerRe: load + save ADO.NET Methodology (no code) Pin
Colin Angus Mackay6-Apr-06 20:54
Colin Angus Mackay6-Apr-06 20:54 
GeneralRe: load + save ADO.NET Methodology (no code) Pin
il_manti7-Apr-06 0:57
il_manti7-Apr-06 0:57 
QuestionINSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 3:53
ChrRun6-Apr-06 3:53 
AnswerRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 4:56
albCode6-Apr-06 4:56 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 5:16
ChrRun6-Apr-06 5:16 
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 5:31
albCode6-Apr-06 5:31 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 9:34
ChrRun6-Apr-06 9:34 
GeneralRe: INSERT INTO....!?!?!?! Pin
albCode6-Apr-06 20:54
albCode6-Apr-06 20:54 
GeneralRe: INSERT INTO....!?!?!?! Pin
ChrRun6-Apr-06 22:48
ChrRun6-Apr-06 22:48 
It give me error when I write this code.

'Import' statements must precede any declarations.


Imports.System.Data.OleDb
'''''''

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles Button2.Click
Dim dbconn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source = C:\Inetpub\wwwroot\IED416\ied416lp3_19\db\handel.mdb")
Dim dbinsert As OleDb.OleDbCommand
dbconn.Open()
dbinsert = dbconn.CreateCommand
dbinsert.CommandText = "INSERT INTO Kunder (Namn,Ort) VALUES ('Christian','Sweden')"
>> dbinsert.CommandText = "UPDATE Kunder SET (Namn='Christian',Ort = 'Sweden')"
dbinsert.Connection = dbconn
dbinsert.ExecuteNonQuery()
MsgBox("Weee")
dbconn.Close()
End Sub

I also tried the line of code with UPDATE, but it didnt work.

Pleeze help me!!!

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.