I can't use databaseupdate with temporary tables on SQL Server.
At least until 4.31 it worked fine, and the following snippet shows what I am writing about:
Code: Select all
UseODBCDatabase()
If OpenDatabase(0, "dsn", "user", "pass")
query.s = "select * into #temp_d1 from table"
Databasequery(0, query) ; PB 4.41
; DatabaseUpdate(0, query)
; with PB4.41 you can't use databaseUpdate anymore.
query.s= "select * from #temp_d1"
If DatabaseQuery(0, query)
If NextDatabaseRow(0)
Debug GetDatabaseString(0, 0)
End
EndIf
Else
Debug DatabaseError()
EndIf
EndIf