Dim stringAdd As String = "Insert into Maintenance_Table (hardware_desc) values ('"& desc & "')
Dim objcommand As New SqlClient.SqlCommand(stringAdd, New _
SqlClient.SqlConnection("workstation id=max;packet size=4096;integrated security=SSPI;initial catalog=nosys;persist security info=False"))
objcommand = Nothing
and it gives me an error at objcommand.executenonquery().do you know why?? please help .btw,is there any weakness using those pre made data component (data adapter,connection,etc) from windows form? this far i made the program with pure coding .
This post has been edited by fei_hyblade: 12 May 2005 - 12:01 AM