Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Export as Batch Scripts

forums forums SQLyog Using SQLyog Export as Batch Scripts

  • This topic is empty.
Viewing 4 reply threads
  • Author
    Posts
    • #8322
      cseymour
      Member

      Hi all,

      How would I turn off the '' around the tablenames and fieldnames when I export a table and data to a batch script?

      Thanks.

      Chris

    • #15452
      Ritesh
      Member

      Can you explain a bit more?

    • #15453
      cseymour
      Member

      Sure,

      Here is what I am getting if I export a table to a script:

      drop table if exists `test1`;

      CREATE TABLE `test1` (

      `col1` int(11) NOT NULL auto_increment,

      `col2` int(11) NOT NULL default '0',

      PRIMARY KEY (`col1`),

      KEY `col2` (`col2`)

      ) TYPE=ISAM;

      This is fine if I import it to my test machine (MySQL4). However in Prod we still have MySQL3 and it does not seem to like the '' around the field names.

      I go in and manually edit the script now, but was wondering if there was a seeting somewhere to turn it off when the script is generated.

      Thanks.

      Chris

    • #15454
      Ritesh
      Member

      Which server are you connecting while taking the backup?

      SQLyog checks for the server version and if it is less then 3.23.x then it wont quote the object names with '`'

    • #15455
      cseymour
      Member

      Thanks Ritesh,

      I think I need to use the same version as my Prod machine on my desktop.

      Thanks again.

      Can't tell you how much sqlYog has helped me. Best money I have ever spent.

      Thanks.

      Chris

Viewing 4 reply threads
  • You must be logged in to reply to this topic.