i'm salvaging java code left me previous employee, left source code itself, i've had recreate db structure myself. far restored it, 1 line throws exceptions @ me , can't understand why. connbeztirazh.execsqlu("declare @ki table (id_ki int); " + "declare @bil table (id_bilet int); " + "insert ki (i1,i2,i3,i4,i5,i6) output inserted.id_ki @ki values ("+i1+","+i2+","+i3+","+i4+","+i5+","+i6+"); " + "insert bilet(id_ki,data) output inserted.id_bilet @bil values ((select id_ki @ki),(select sysdatetime())); " + "insert rezultat (id_players, id_bilet) output inserted.id_bilet values ((select id_players players telnomer='"+number+"'),(select id_bilet @bil));", false); this line throws out following exception: com.microsoft.sqlserver.jdbc.sqlserverexception: invalid object name 'ki'. i triple-checked everything, recreated tables bilet , p...