my database get data from VB.net every second. The problem is when VB send data to my mysql workbench, MySQL can't automatically show this data in result window. So I must click refresh tab in result grid every second. Is there any query to make it refresh automatically when the data come? because I need to know when the time data arrive in my database. I try use timestamp but timestamp just record the tima when I clicked the refresh button. Thanks
Take a look at the correct answer here. It won't work through MySQL Workbench, but will provide a data refreshing capability from the command line. The answer is for a Windows based system, so if you're running Linux/Unix, adjust the parameters appropriately.
Related
Been struggling with this on a few Crystal Reports, and it's super evident when testing inside of the CR editor.
My report has one database connection (OLE DB to a a SQL Server). On the vast majority of my CR's, when I hit F5, and log into the SQL server for a data preview, the rest of the report will follow whatever database I select.
On some reports, it does not--and the tables in the underlying connection are stuck to a specific database.
Is this a setting within Crystal Reports for the tables below a connection to have their own "Catalog"?
I've found I'm able to correct this somewhat by changing each of the tables Catalog's manually, but I use these CRs against multiple databases.
Has anyone encountered this, and hopefully found a way to fix it without re-creating the report from scratch?
Try to verify the database. If this doesn't help try to update the connection to ODBC and back to OLDE DB.
Something else to try would be to click on Database in the menu bar, then click "Log On or Off Server". This will allow you to select a database server that the report is connected to and then Log Off from that connection, repeat this for all connected databases. Then click Database on the menu bar again and then click "Set Datasource Location" to update the report with the database you would like to use.
This usually works for me:
right click on database fields and left click on set datasource location.
some times you will need to update every table.
but most of the time - after making the connection to database you can update all tables automatically
In Google Cloud SQL, is there a way to export a single MySQL database (not the entire server) and then import that data into a different existing database on a different Cloud SQL Server, all through the console?
I know that this wouldn't be very difficult to do through the command line, but I'm looking for a Console-only solution. The things I can get to work are:
To restore an entire server
To restore a single database as a new database in an existing server
but neither of those are what I'm looking to accomplish. I want to overwrite a database in one server with the data from a database in another.
If I understood you correctly, this is what you can do:
Go to the first Cloud SQL instance
On the top there should be a button saying "EXPORT"
Select a bucket, and click on "Show advanced options".
Select the database(s) you want to export
Go to the second Cloud SQL instance
Click on the "IMPORT" button next to "EXPORT"
Select the file that you exported
I think that's what you want, if it's not, please reply so I can understand better.
My company is using Crystal Reports 2008 for basic reporting needs and right now we currently keep 2 different test servers.
I made a report from a stored procedure on Server1 with the parameters all labeled and set prompt text exactly how I wanted it. When we needed to change it to point to Server2's SP instance (via Set Datasource Location), I changed it but when I saved the report all of the parameter text dropped off.
Usually I wouldn't ask this, but these stored procs have over 50 parameter fields (customized with hard-coded dropdowns) so starting from a blank one for each of these would be painful.
Has this happened to anyone? Is there a setting I'm missing somewhere that may clear the prompts on save?
Any help is much appreciated - thank you!
Try this steps
Change the command again.
Log off then login to the DB.
Verify the DB.
I'm new to Crystal Reports/Crystal Server. Hope someone can enlighten me.
In SSRS, there's a thing called Shared Data Source wherein you can configure a data source like the server and database settings. This data source can then be used by multiple reports. This is very convenient especially if you would change the server name (ex: Production to UAT server) after some later time because you need to change it only on one place without modifying all the reports.
In Crystal Server, is there any equivalent? If not, what are the alternatives?
BTW, I'm using SAP Crystal Server 2013 and Crystal Reports 11.
Thanks in advance.
Edit: Saw this under Database > Set Datasource Location...
Can I save Datasource in Crystal and point all my reports thru this?
You can change data source by using Database-Set Datasource location from menu bar. From there it is pretty simple to change a reports datasource as long as you are changing to a database with same structure. If tables or fields don't exist you will receive an error. If field types used in the report do not match new data structure a mapping menu will appear.
So for example... I have several ODBC data sources which point to same server but different directories. Each directory has identical database structure but for different departments so all different data. I have setup each to be a favorite connection in database manager. I click database from menu bar, select Set Datasource. Select the current datasource. Select the new datasource and click update!
Very straight forward except for the items I mentioned in first paragraph.
Actually I built a GUI to show the result of my program. When I click on the buttons, they need to read the input from a folder, which I choose for them, but I want to have a database to store all the data and load them just one time when I click on the button, not for all the buttons.
I can give an example to show what I want to do: For example I can put a button just for loading the program and reading the input. Then, when I press any button, they don't need to read the data from the folder any more.
I'll appreciate that anyone can help me.
If you want a real local database, I'd use SQLite. It can be merged with matlab using mksqlite.
However, as pointed out by #eitan-t, you might not need a real database. It's enough to store your data using some Matlab's own type, like an array of stuct's.