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

Forum Replies Created

Viewing 15 posts - 1,936 through 1,950 (of 7,398 total)
  • Author
    Posts
  • in reply to: Update A Column Using Csv #29007
    peterlaursen
    Participant

    I did not understand your last comment.

    To do this (if I understand) individual UPDATE statements must be executed against the original table. The content of the file will need to be parsed by a client to decide what and where to update. Most users would write a simple script doing this. You find an example in this discussion: http://www.webyog.com/forums//index.php?showtopic=4603. But also a Stored Procedure will do after import to a temporary table.

    My point is that there will be so many different situations that a general tool will not solve them all. Quite the opposite I think we will get complaints that “it does not do as I want it”. People will have other expectations that what such tool actually deos and may even damage their data!

    I asked you to describe with a simple example to describe what you want. Something like this:

    If table contains data

    (1),('a'),('x'),('g6h7b5')

    (2),('b'),('y'),('peter')

    (3),('c'),('z'),('webyog')

    and If PK is defined on 1st and 3rd column (?), what would then a single line in the CSV-file look like and what would the table look like after you did what you want?

    in reply to: Update A Column Using Csv #29005
    peterlaursen
    Participant

    But you can import complete rows without overwriting existing data using the 'Migration Tool' (ensure that table has a Primary key).

    In 8.1 (RC) we added an option to 'import from a file' directly without preconfiguring a DSN in the connection manager. But it is still an ENTERPRISE feature.

    Anyway: read through the old post I linked to and try to describe the problem equally as simple (what does the table look like and what does the file look like), and there will undoubtedly be a solution too!

    in reply to: Update A Column Using Csv #29001
    peterlaursen
    Participant

    It is bad 'netiquette' (it can be compared with spam) to post to a Forum with multiple threads with the same question. Actually it even makes it more difficult for people that want to help you if discussion goes in parallel in different threads. Also you will not get faster replies that way anyway.

    I replied in the other thread. Please continue there (and note that the link I posted has more pages).

    in reply to: Update A Column Using Csv #29003
    peterlaursen
    Participant

    Another use asked the same here:

    http://www.webyog.com/forums//index.php?showtopic=3842

    For his case we found a solution!

    in reply to: Update A Column Using Csv #29002
    peterlaursen
    Participant

    No – I cannot think of any way of doing this.

    You will have to write some kind of script/application that reads the file and generates UPDATE statements and sends to server immediately or saves to a file.

    Another way could (possibly) be to import to a temporary table and next write a Stored Procedure that generates similar UPDATES.

    in reply to: Sqlyog Database Synch And Connection Issues #28999
    peterlaursen
    Participant

    Actually there is not a connection between the two datases (or the machines running the databases), but between the SJA (SQLyog Job Agent) executable and each of the servers (in case Data Sync is running from another machine than the machines whre the MySQL servers are).

    Also Data Sync is not (a) command(s) executed by the server. A MySQL server cannot control another server (with the exception of what the rare Federated Storage Engine does). Managing data on a server requires a client.

    It is the client (SJA) that controls what is happening on the server and is doing so by sending rather simple INSERT, UPDATE and DELETE statement. What is not *rather simple* however is to decide *what* statements to send. SJA will retrieve information about data stored on both servers to find out this. When the need for a statement is found it is sent to the server at once and the server will execute it. It will progress through each table like that. So if connection to either server gets lost SJA cannot continue and will abort. And sync is not complete. But it can be started again as soon as connection is again available and will be faster this time (unless lots of data have changed in between)

    in reply to: Problems With The "table Data" Grid And Modifying Data #28993
    peterlaursen
    Participant

    The workaround is to execute a SELECT query not including binary columns (and not columns with spatial data either) and do operations from RESULT tab.

    in reply to: Csv Export Of 1->m Tables #28989
    peterlaursen
    Participant

    You will need to write a SELECT query where the server returns the result as you want it. Then you can use SQLyog CSV-port from RESULT tab.

    I do no fully understand your example. I would need some small dumps and a more detailed description (best a screenshot from Excel) of what you want.

    But a simple hint would be to to use concat_ws() function to generate a single result-column with data from more table-columns. Try to compare output of two simple statements

    Code:
    SELECT coloum1, column2 FROM sometable

    and

    Code:
    SELECT concat_ws(',',column1,column2) FROM sometable

    MySQL docs: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html

    in reply to: Application Crash #28988
    peterlaursen
    Participant

    A few more comments;

    1) You should also notice that this save diaologue (where the error occurs) is not (much) our code. It is a Windows standard (probably shipped with Windows in some system .dll) that is invoked by a Windows API call. Basically just a function call with parameters. You will find other programs use same dialogue. It is not reproducable with other applications?

    2) (maybe a silly idea) but I would consider to

    — run CHCKDSK on all drives (with -f or -r parameter)

    — use some utility to remove orphaned MRU (most recently used) entries from the registry (I use this http://www.macecraft.com). In particular if you have changed drive letters or a 'previous' is on a removable drive that is not attached

    in reply to: #28779
    peterlaursen
    Participant

    one more:

    4) Do you have the FLASH plugin installed? (note that IE and other browsers will require two different plugin versions)

    in reply to: #28778
    peterlaursen
    Participant

    Please tell then:

    1) On what OS (as detailed as possible) is MONyog running?

    2) Did you try different browsers?

    3) Did you try both viewing with a browser on the MONyog machine and a remote machine as well?

    in reply to: Application Crash #28984
    peterlaursen
    Participant

    OK .. thanks for the feedback! We will try to reproduce and debug this of course.

    in reply to: Application Crash #28982
    peterlaursen
    Participant

    1) what is 'latest version'? 8.05 or 8.1 beta? Please always refer to the exact version number (believe it or not – but sometimes users refer to a 2-3 years old version as the 'latest version'! 🙂 )

    2) Have you tried to reboot? It looks to me like an issue with Windows DEP (Data Execution Prevention) feature. A reboot will normally solve this! You should notice that this crash (as I understand) happens in a Windows Explorer dialogue and not in the SQLyog Window. Vista has lots of such issues (I did not experience a single in Windows 7 RC and also not in XP before SP3).

    in reply to: #28973
    peterlaursen
    Participant

    There is no option to use interactive mode. But as I understand this is a simple 'flag' or 'switch' that can be defined for a connection. If it is as simple as that it is a request we will consider. Please give us a few days of next week to research and discuss this!

    in reply to: #28971
    peterlaursen
    Participant

    'triggers under tables are more user friendly' .. maybe, but changing server functionalites client-side is a mess and will sooner or later lead to errors.

    In early MySQL 5.0 triggers were table objects. Now they are database object (what they also are according to SQL standards). This cannot be changed in my opinion. But we will discuss the other request(s) in detail.

Viewing 15 posts - 1,936 through 1,950 (of 7,398 total)