If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Problem loading a table with UUIDs from an unloaded database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-10, 13:37
larryiskow larryiskow is offline
Registered User
 
Join Date: Nov 2010
Posts: 2
Problem loading a table with UUIDs from an unloaded database

I am using Sybase Central (Tools, SQL Anywhere 11, Unload Database...) to unload my database. I am using the Sybase Central default settings. When I attempt to reload my database (using Interactive SQL to run my reload script), the tables containing UUIDs give me the error: "The data on line 1 could not be imported" "Cannot Convert '0x....' to a unique identifier" and I receive SQLCODE=-157 ODBC 3 State="07006".

Any thoughts on this?
Reply With Quote
  #2 (permalink)  
Old 11-18-10, 09:32
larryiskow larryiskow is offline
Registered User
 
Join Date: Nov 2010
Posts: 2
Actually, I believe I may have found the problem. It appears to have something to do with using Sybase Central's unload feature. I'm using Sybase Central's menus to run Tools, SQL Anywhere 11, Unload Database... When I got to the screen that says "Select the Server or Local Computer", I would select "Save the data files on the local computer using OUTPUT statements", and also selected "Use INPUT statements to reload the data from the local computer". One or both of the selections appears to have caused the problem. When I instead selected "Save the data files on the server computer using UNLOAD statements", and also selected "Use LOAD statements to reload the data from the server computer", and then used Interactive SQL to run the reload script that was generated, this appears to fix the problem.

I think the first set of selections I used should have worked, but didn't. I guess it has something to do with my database having UUIDs. The errors I received related with running Interactive SQL on the reload script, and said that it couldn't reload UUID fields.

Last edited by larryiskow; 11-18-10 at 09:34. Reason: Remove some unnecessary info
Reply With Quote
Reply

Tags
central, load, sqlcode -157, state 07006, sybase

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On