schema

Most Efficient Schema For This OR That, or This AND That

I'm trying to write an XML schema that allows XML to be expressed in the following ways: pets can containt both cat and dog elements: <root> <pets> <cat /> <dog /> </pets> </root> pets can contain just cat or dog elements <root> <pets> <cat /> </pets> </root> ----------- <root> <pets> <dog /> </pets> </ro...

Normalization Help

I am refactoring an old Oracle 10g schema to try to introduce some normalization. In one of the larger tables, there is a text field that has at most, 10-15 possible values. In my mind, it seems that this field is an example of unnecessary data duplication and should be extracted to a separate table. After examining the data, I cannot...

'The SELECT permission was denied on the object ' when working with views on separate schema

Note: This is a community wiki entry and is mainly to document a problem together with its solution. I was hardly able to find information on the net to solve this. Hope it helps someone! I have a SQL-Server 2005 DB with the data tables being on the dbo schema. For a new component on the project, I created a new data access layer (us...

Can an XML Schema defined tag have different constraints based on data type?

I'm working on a custom XML format that involves a formatted list of points. We would like to support multiple types of coordinates systems, such as Cartesian and Spherical. Can this be done? Example: <point type="cartesian"> <c1>5.0</c1> <c2>5.6</c2> <c3>9.1</c3> </point> <point type="spherical"> <c1>5.0</c1> <c2>5.6</c2> <c3>9.1</c3>...

Is there a standard schema for video metadata?

I am looking for a schema to hold video metadata such as Title, Source, Description, Transcription, Copyright date, URL, etc. It would be used to store information about the video in a database and make that searchable. Is there a standard XSD or other schema for this type of data? ...

How to get the table schema dynamically using Subsonic 3.0?

I have a page and it lists bunch of tables in a drop down list. I need to load up a list of columns in the database dynamically. In Subsonic 2.0 it could have been done by Subsonic.Schema.BuildTableSchema but not sure how to do it in 3.0. I tried using the code below but does not work .. SubSonic.Schema.DatabaseTable D = new SubSonic.S...

Database schema design for a simple SQL Server 2008 database

I posted this at ServerFault and was told this would be a better spot for it. I have some experience as a developer but am a complete novice when it comes to SQL administration and database design. I'm converting my company's ordering and quoting process from a excel spreadsheet to something a little more robust using an ASP.NET applic...

visual studio DataSet designer with stored-procedures ? what is this icon

What does this icon mean is Visual studio, visual Data Set designer. I have several stored procedures. can you help me understand, why the one on top of the list has a small "check mark" why I can't delete it if I need to. This is not the case with the rest. Why is this "special" ? Thanks ...

XSD: How to redefine the data type of a simpleType eg. from xs:string to xs:integer

I am trying to extend and tailor an external xsd schema (of the fixml standard). I need to change the data type of some of the elements, without touching the original schema, but by redefining it; but have been finding it exceedingly cumbersome. What exists: fields-base.xsd <xs:simpleType name="LastUpdateTime_t"> <xs:restr...

Does Anyone Use Address Line 2

So it's a standard in basically every address form out there and I'm questioning why? Address Line 2. It's in every form that asks for address details. It's never actually seemed necessary to me. It requires another field in the database and all the goofy maintenance that goes with it. Every time you use an address, you have to concaten...

Delete all db schema in test teardown using nhibernate

Hi All I am looking for the best way to delete all schema changes(all tables really) made when unit testing. I am using fluent to map my entities and create the schema in the Setup of my tests. I want to be able to delete the schema changes at the end of the tests in the Teardown. I am using nhibernates SchemaExport to generate the sc...

libxml2 - validate XML document against schema. Retrieve schema url from the actual XML file.

Hi, I need to validate a xml file against DTD schema. I found out that I need to pass the source of schema file for validation. Is that possible to make libxml2 find the declaration of schema in XML file and do the validation on its own, or do I have to retrieve the declaration manually? Thanks in advance Michal ...

google analytics database

does anybody know how data in google analytics is orginized? Difficult selection from large amounts of data they perform very-very fast, what structure of database is it? ...

Generating C# classes from XML schema that use JAXB (Java Architecture for XML Binding)

I have a number of XML schema that use JAXB (Java Architecture for XML Binding) markup, similar to the following: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" jxb:version="1.0"> <xs:element name="H"> <xs:annotation> <xs:appinfo> ...

Maintaining Consistency Between JavaScript and C# Object Models

I'm working on an ASP.NET web application that uses a lot of JavaScript on the client side to allow the user to do things like drag-drop reordering of lists, looking up items to add to the list (like the suggestions in the Google search bar), deleting items from the list, etc. I have a JavaScript "class" that I use to store each of the ...

Forcing English exception messages

When xml schema validation fails .Net throws some exception. Based on parsing this exception I know how to do some stuff. The problem is that this exception is localized, e.g. on a Japanese machine it is in Japanese. I do not want to build my application so it will parse every error in any language. I am an add-in to some other system...

Oracle Data Versioning/Partitioning Strategies/Best Practices

Hi there, not sure if the subject entirely conveys what I'm trying to achieve, but let me explain: We are building an application that uses Oracle as storage backend. Each year, last years dataset will be "Archived", and a new instance created and populated from scratch. What are the options to do this within the same schema? Keep ve...

getting request timeout exceptions from a asp.net application using the Oracle client with multiple schemas

We have an asp.net application that uses the Oracle client. In the connection string, we specify the 3 basic attributes: data source, User Id, and Password. We are using connection pooling. Our data resides in 2 different Oracle schemas. Most of the requests are for data from Schema1. The timeouts are coming from calls for data from...

Is there a good workaround to the Oracle IMPDP REMAP_SCHEMA issue with triggers (ORA-39083, ORA-00942)?

One can use the Oracle data pump import tool (IMPDP.EXE) to import one schema into another using the REMAP_SCHEMA option. However there is an issue in that triggers are not properly remapped. This leads to the trigger not being created at all with an error as follows: ORA-39083: Object type TRIGGER failed to create with error: ORA...

How to define a sequence of elements with same name but different types in XML Schema?

Hi! Just to be concise I want to obtain something like this: <root> <field value="..." text="...">fixed_value1</field> <field value="..." text="...">fixed_value2</field> <field value="..." text="...">fixed_value3</field> <!-- in some cases we can choose the «fixed_value» among different ones --> ... <field value=...