Connecting Tech Pros Worldwide Help | Site Map

ERROR: cross-database references are not implemented

  #1  
Old March 17th, 2009, 05:54 PM
Newbie
 
Join Date: Mar 2009
Posts: 1
HI!... I'm working in Visual Basic 2005 with PostgreSql via the oficial ODBC driver. When i try to insert a new row I get this error message:

ERROR: cross-database references are not implemented Here is the code...


Expand|Select|Wrap|Line Numbers
  1. Dim sel As String
  2. sel = "SELECT * FROM ""SCHEMA1"".""CUSTOMERS"" "
  3.  
  4. Dim ds As New DataSet
  5. Dim da As New Odbc.OdbcDataAdapter(sel, sConnectionString)
  6. da.FillSchema(ds, SchemaType.Source, """SCHEMA1"".""CUSTOMERS""")
  7.  
  8. Dim dr As DataRow = ds.Tables("""SCHEMA1"".""CUSTOMERS""").NewRow()
  9.  
  10. dr("id_customer") = "00062"
  11. dr("n_doc") = "9999-99999999"
  12. dr("age") = "29"
  13. dr("gender") = "MALE"
  14.  
  15. ds.Tables("""SCHEMA1"".""CUSTOMERS""").Rows.Add(dr )
  16.  
  17. Dim CmdBuilder As New OdbcCommandBuilder(da)
  18.  
  19. Try
  20. da.Update(ds, """SCHEMA1"".""CUSTOMERS""") 'IN THIS LINE I GET THE ERROR MESSAGE
  21. Catch ex As Exception
  22. MsgBox(ex.Message)
  23. End Try

Why I get this error message and how can solve it?

Last edited by eWish; March 22nd, 2009 at 05:42 PM. Reason: Please use code tags
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
The worst things about C++ Steven T. Hatton answers 75 December 17th, 2006 08:35 PM
Someone - **please, please, please** help :-( .js problem milkyway answers 11 July 24th, 2005 12:13 AM
Someone - **please, please, please** help :-( .js problem milkyway answers 11 July 23rd, 2005 05:38 PM
FAQ update (roundup of pending requests - for comment) Richard Cornford answers 42 July 20th, 2005 02:38 PM
How to check if a named SPAN element exists (IE)? Mike answers 2 July 20th, 2005 02:33 PM