We have created a view in the mariadb. We want to access that view from Frappe. Does frappe supports this kind of functionality?
You can create a query report which pulls data from your view. Then you can examine the data in the report view.
As of Version 13, Frappe Framework only supports schema managed by DocTypes. Views are not supported.
Related
We want to connect a remote existing database from settings.py, can we use those tables directly using model without migrate from app.
We know about the legacy database connection but inspect.db command always asks to migrate the connected database.
Is using mysql connector is preferable or it is out of standard, please suggest.
Thanks, your help is appreciated!
I think what you are looking for is the managed meta option in your models. When you define your models, by default you have managed=True. If you want to use an existing database without Django interfering with migrations, you should use managed=False.
See this part of the doc:
[...] If False, no database table creation or deletion operations will be performed for this model. This is useful if the model represents an existing table or a database view that has been created by some other means. This is the only difference when managed=False. All other aspects of model handling are exactly the same as normal. [...]
(Warning: SQL Server expert, TFS Dashboard Widget Noob)
My workplace has a TFS setup (version 15.117.27024.0) where there are dashboards with widgets where we can use Shared Queries as a data source. No problems here.
Question: Is it possible to configure a widget so that the source query is a custom Stored Procedure in TFS_Warehouse?
Thanks in advance.
Jim
I am not aware of a way to return the results of a stored proc in the TFS_Warehouse or other DB directly from a widget.
We use Otto Streifel's Wiql Editor extension (source) which allows us to write WIQL queries instead of clicking our way through the GUI that is provided to create our shared queries. The syntax is similar to SQL, but it is more limited than a SQL stored proc would be. Even so, we have been able to write some robust queries to create some very useful widgets. (For example to break out how many hours we have planned/worked based on tags applied to our work items)
The only other solution I could think of would be to use a Embedded Web page widget that would call the stored proc and display the results.
A custom entity for storing email templates is created in my Dynamics CRM - 2011 on-premise instance. I can see the entity in CRM instance but not able to find it in SQL Server CCRM database. Any help on how to query the entity schema in DB?
I have to move all the templates stored to a new on-premise CRM instance. Is there a better way to achieve this?
Thanks.
You should be able to find two tables:
[YourOrganization_MSCRM].[dbo].[EntitySchemaNameBase]
[YourOrganization_MSCRM].[dbo].[EntitySchemaNameExtensionBase]
Copying data directly into the CRM SQL database is unsupported. In general, the only supported direct use of CRM's SQL database is to read from the Filtered Views and create custom indexes.
It would be best to copy the templates to the new instance in a supported way. Supported ways to import data into CRM include writing custom code against the SOAP or REST Organization Services, using an ETL tool that provides a Dynamics CRM Connector (such as Scribe or KingswaySoft on SSIS), and the Bulk Import Wizard.
Depending on how much data you're moving, the easiest way to go is probably to export to Excel and import into the new system via the Bulk Import Wizard.
Otherwise, the CRM 2011 SDK provides the DLL's and examples for writing C# to hit the SOAP service, as well as an example JavaScript library for using the REST endpoint (sdk.rest.js).
Where would I start in creating my Windows Workflow for Entity-Framework Database Generation from a Model? Where do I find the template for that? When I try to add a new item, Windows Workflow does not show up. MSDN doesn't have any documentation on how workflows work for generating to an Oracle database.
The Generate Oracle Via T4 (TPT) workflow just executes set of referenced T4 transformations. Just check the folder where this workflow is stored and there will be some Oracle specific transformation like CSDLtoMSL.tt and CSDLtoSSDL.tt - you need to change those two to use your new database naming convention.
In mySql Workbench there's a possibility to "sync" the model with the DB and vice versa. Is there a function like this in EF? I've added som entities and I'd like it to get reflected in the DB. Do I really have to regenerate the entire DB and loose data?
Thanks
Sadly there is no easy way AFAIK to do this today.
One way to handle this is to generate the DDL and then cut and paste the new sections into SQL Server Management Studio and run them there. If you want to maintain scripts for each release of the database you'll need to take an approach like this too.
See also: Database migrations for Entity Framework 4
PS The EF Power Pack: http://msdn.microsoft.com/en-us/data/ff830362.aspx may help. It says "The second useful feature related to model-first the ability to update an existing database and synchronize the model with it. This allows you to make changes to the model that can be deployed to the database without data loss."
if you are using the VS2010 then in Select your edmx designer ( designer showing tables) and right click it will show the update model option.