Ämne: SQL i ASP.Net
Visa ett inlägg
Oläst 2005-05-14, 21:30 #3
cliffjesuss avatar
cliffjesus cliffjesus är inte uppkopplad
Nykomling
 
Reg.datum: May 2005
Inlägg: 28
cliffjesus cliffjesus är inte uppkopplad
Nykomling
cliffjesuss avatar
 
Reg.datum: May 2005
Inlägg: 28
Så här ser felmeddelandet ut:

Kod:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement.

Source Error:

   Line 15:     cm = New OleDbCommand(sMatain, cn)
   Line 16:     cn.Open()
-->Line 17:     cm.ExecuteNonQuery()
   Line 18:     cn.Close()
   Line 19:

'username' är mest för att lägga in nåt i posten, skall bytas ut mot typ Session("user") eller liknade.
cliffjesus är inte uppkopplad   Svara med citatSvara med citat