Does this file exists? I'm tired of the 'Could not find schema information for attribute' messages.
Thanks
One does exist for Entlib 5.0 - it gets installed as part of Entlib 5. Since the Entlib elements don't have XML namespaces, you'll need to explicitly turn it on in VS though (right click on the config file, select "Properties", click on the "Schemas" field, and you'll be able to turn on the schema validation.)
It won't work on everything - Entlib has a highly customizable configuration schema and not everything is representable in XSD, but it's about as good as you're going to get.
There is no EntLib XSD file. Producing one is tricky as config is dynamic. See discussion here.
http://entlib.codeplex.com/Thread/View.aspx?ThreadId=10712
Related
We exclusively use appsettings.json (and environment specific versions) to configure Serilog. I'd love to have intellisense when configuring Serilog in those files.
Does anybody know if they have a schema or if someone has created one and shared it?
I looked in the MySQL documentation but I didn't find an answer to my question :
I would like to know if MySQL could "check" if a field filled with XML is well formed.
Of course I would give to MySQL a XSD to verify the XML and I will use Spring MVC to manage the server's side of things.
I know it is not something I should do BUT I HAVE to do this in a school project.
rXp
No, MySQL does not provide build-in functions for that. You have to query the document out of the database and use your programming language of choice to validate the XML document against a XSD.
I know this question has been asked before and I've been doing some research on using a single package with multiple configurations.
An example of this might be: A package that has an FTP control in it.
We might have two or three different FTP sites to connect to, but we only need one package. What I'm looking for is to run that package with three different configurations.
Example configurations:
- Username
- Password
After doing some research on the use of a configuration table, I'm still confused as to whether or not the standard configuration table would work with this scenario or not in SSIS (2008 R2). The article I found that I'm confused by is:
SSIS TABLE DRIVEN PACKAGE CONFIGURATIONS WITH ROW LEVEL FILTERING
If I read the article, some of it makes sense but I'm still not entirely certain that I would need a custom solution to do this or not.
What I'm after is this: I am designing a three tier architecture (three layers of packages).
The first layer will always do file acquisition, file preparation, and translations to a common XML format based on a provider's proprietary format, whatever it may be.
The second layer would take the common format and transform that into a "destination format" and then the third layer would take the destination XML format and insert it into the database.
My thoughts are to possibly use a table to configure the second and third layers and have the top layer using an XML configuration file since it will change based on the provider. Any thoughts on this would be appreciated.
I highly recomend this book and the package configuration framework contained therein:
Microsoft SQL Server 2008 Integration Services: Problem, Design, Solution
ISBN: 978-0-470-52576-0
For me, this book took all the mystery out of package configuration with easy to understand step by step set up and examples. It presents a robust beginning to end solution that I was able to implement in less than a day. Code download link here.
The authors do an excellent job of walking you through package configuration theory and practical setup as part of their larger package management framework.
I would like to second their recommendation to make a "Template Package" from which you build all other packages. The template has all the SSIS PDS goodies already in it so you only need build those once.
One of the most useful features is their approach to package configuration which stores all your configurations in one table in sql server and shows you have to access these at the system, application, and package levels for a layered configuration approach that I find most useful for situations like the one I think you are describing.
Setting up a general configuration as part of the template package once and then tweaking it from there as needed has saved me hundreds of hours in development time.
Not to gush on about this solution, but I found it particularly useful for Username and Password configurations as these are two of the core examples in the book. It can be a bit tricky to simultaneously configure the package with a Username and Password while simultaneously giving these two key pieces of data an adequate level of security.
For example: If you are interested in keeping Username and password secure, you would almost never want to just store these in package scoped variables. This book shows you how to add Username and password as configurations, keep them secure, and how to easily keep them up to date.
Although hopefully when your packages run in production (at least) you are using a Service account where the password never expires (all the more reason to keep those credentials secret and safe) and not your own user credentials.
I trying to open (using 4d v12) the database with the extension .4dc (in addition there are files with extensions .4dd and .4dr).
The result is an error: You cannot convert compiled database.
Perhaps this is an old version of the database, but I could not find anything that could convert it to a newer version.
My goal is to obtain information from the database. But the problem is that I'm not good at 4d. And I don't know how to open the .4DC as part of an application.
Please help me if you know how to do it.
The .4DC is the compiled structure file. It contains the code of all of your methods and defines the structures (tables, fields) in your database. The .4DD is the actual data file. It contains the values that are stored in the database. The .4DR is the resource file.
You can't edit or convert a .4DC because it is compiled. What you need is the .4DB. It does the same thing as the .4DC (contains methods and db structure), but you can upgrade it and open it interpreted so you can edit the methods and change the database structure.
You can open the .4DC as part of an application, but you won't be able to upgrade it or edit any methods. If you are opening it with the 4D IDE you'll need the same version as created the .4DC in the first place.
You might also try the 4D knowledgebase for more info: http://kb.4d.com or read the documentation: http://doc.4d.com/Home/home.en.html
Good luck!
the .4DC is the application, it's only used to run it. As said it's compile in machine language (0 and 1) so it won't help you out. It's good to use the application, that's it.
the .4DD is the actual database behind the application.
So if you want to access only datas, you should look to this .4DD
There are also ODBC drivers that exists for 4D.
I'm planning to write an tool which would import dbml file and spit out an MDL file for migration purposes and such. To do this, I obviously have to read this dbml file into some kind of semantic model to do transformations.
I tried to use XmlMappingSource, but first it failed because it expects the XML namespace of a file to be http://schemas.microsoft.com/linqtosql/mapping/2007, whereas I had http://schemas.microsoft.com/linqtosql/dbml/2007. After I changed the namespace to read .../mapping/2007, XmlMappingSource started to complain about all kinds of unrecognized attributes.
Is there any object model to represent the structure of a dbml file?
Being no expert, but having had somewhat of the same problem...
When validating dbml files, XmlMappingSource uses (I think...at least close ;-)
DbmlSchema.xsd, so perhaps either tamper with the existing one, or make you own
mappingsource?
This article may help (or may not...not quite sure I get your question)