How do I determine the number of pages in a Microsoft Extensible Storage Engine (e.g., Windows .edb) database?
I've looked at edb and ese documentation to see if the number of pages in an edb database is in the header, but I don't see this.
Does the edb header contain the number of pages in the database? If not, how could that be determined?
I'm not entirely sure why you need it to be in the header, but there is an API called JetGetDatabaseFileInfo if you haven't attached the database:
https://learn.microsoft.com/en-us/windows/desktop/extensible-storage-engine/jetgetdatabasefileinfo-function
There is also JetGetDatabaseInfo if you have already attached it.
Are you interested in file size? Or the number of pages that the engine thinks it is (JET_DbInfoSpaceOwned)?
Related
I haven't come across any documentation provided by Tableau in asking this question but I'd like to ask if anyone knows whether the info columns in the Sites or Users section are customizable for anyone with Server Administrator privileges. Mainly these columns show site/user metrics but I'm not sure if you can add your own columns to that list to track your own metrics.
Unfortunately, no. Even Admins do not have the ability to add/sort/change columns on these pages (or any other pages, I believe.)
You can always make this suggestion on the Tableau Ideas Forum though. Others can vote your idea up and Tableau will see it.
You can create your own custom admin views of information stored in the Tableau server repository. See this link. https://onlinehelp.tableau.com/current/server/en-us/adminview_postgres.htm
You could also use the server's Rest API to query information and display however you like. https://onlinehelp.tableau.com/current/api/rest_api/en-us/REST/rest_api.htm
If you're working in Python, there is an open source library that makes using the Rest API more convenient
https://tableau.github.io/server-client-python
I am new to alfresco and I am using alfresco community addition 5.0 for document management system.Upto now I don't have any problem.
now my doubt is how to move alfresco community from one system to another system without lose of data.
I would suggest you to look at the Backing up and restoring part of the Alfresco documentation.
To make it simple, you have data stored as three parts :
The database which can be backed up and dumped in an other postgresql of your choice
The contentstore which contains the files data of your system can be copied and pasted in your new system (of course with appropriated permissions).
The index which contains your indexed content to make powefull search. The transfert of this one is optional since it can be regenerated from the database and contentstore
Of course, you should do your backup and transfert with your alfresco stopped, since database, contentstore and index are related.
I have a decent-sized database on my local machine that has a lot of important data that cannot be re-made easily (locally-tested user profile informatino, blog posts, that sorta thing). It's around 50mb in size.
I'm getting close to making my app live, and I want to bring this database to MongoLabs. I know how to connect to MongoLabs and set up a new database there, but I can't work out (if it's even possible) how to import a database from my local machine to MongoLabs, nor can I find any documentation discussing this.
Questions are:
Is this possible to do
How do I do it?
If you open your database at mongolab.com and go to the Tools tab, you should see some helpful commands for migrating your data to your new database.
This support article also has more details:
https://support.mongolab.com/entries/20164381
I'd like to use a Google spreadsheet to display my database analytics
I'd like to be able to do summary queries on my Heroku Postgres database using Google Apps Script and then display and chart them in a Google spreadsheet.
Heroku offers a number of ways to connect to Heroku Postgres:
https://devcenter.heroku.com/articles/heroku-postgresql
Likewise Google Apps script offers access to a number of different external services
https://developers.google.com/apps-script/defaultservices
I've never attempted this before and so am interested in what is simplest.
JDBC seems possible but are there any other options?
As far as I can see, the only overlap between the two is JDBC which I have no experience with but feels like a bit of a heavyweight third protocol to use to get between the systems.
IS JDBC the best way to get the data across or is there something simpler I'm missing?
Set up a dataclip from dataclips.heroku.com with your desired data described as a SQL query.
Append .csv to the resulting URL
Use that URL on the google spreadsheet's importData function, like so:
=importData("https://dataclips.heroku.com/[your-dataclip].csv")
I prefer to use Skyvia for connecting Google Sheets and Heroku Postgres without coding. Here is how I do it: https://skyvia.com/data-integration/integrate-google-sheets-heroku-postgres. All I need is to specify the connections to Google Sheets and Heroku Postgres and select data to replicate. Skyvia will copy the specified Google Sheets data to Heroku Postgres and maintain this copy up-to-date automatically with incremental updates.
QueryClips is exactly what you need. This is its primary use case.
I'm looking to write an iPhone app that populates a UITable with information from a field in a database that is stored online, and when selected shows more information from the database.
For example, a list of names that when tapped will show a bio for the person, some basic stats, and a picture.
OR
Is it possible to use CoreData, and have it populate itself on start up with the information from the online mySQL database? This would give the best of both worlds - the uptodate nature of the web and the offline access...
I would suggest using something like PHP to talk to the MySQL database and creating your app to talk to the PHP via a web address. Bit of a security risk to have an app talk directly with a database due to the database not being behind a firewall and your database details being stored in the program and being sent across non authed means.