datasource

How Can I Prevent SSRS query of XML data from Always Returning an Empty Row?

若如初见. 提交于 2019-12-10 16:27:45
问题 I am trying to create a dataset from an XML file in SSRS 2008. Below is a simple piece of XML that shows my problem: <Company> </Company> When using the following as the Query it returns a single row with empty fields for the ID and the Name. Company{}/People{ID(String), Name(String)} As you can see there is no <People> element present in the XML and therefore I was expecting it to return an empty dataset (i.e. one with no rows). Does anyone know of a way to return an empty dataset in these

maven tomcat7:run configure datasource

僤鯓⒐⒋嵵緔 提交于 2019-12-10 16:10:40
问题 I have a multimodule maven project, and I want to use it with tomcat7 maven plugin and start it with: mvn tomcat7:run But I can't figure out how to configure a jndi datasource. I've tried to put in my pom.xml : <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0</version> <configuration> <contextFile>tomcat/context.xml</contextFile> </configuration> </plugin> and in the context.xml : <?xml version="1.0" encoding="UTF-8"?> <Context>

Using DataSource to connect to SQLite with (Xerial) sqlite-jdbc driver

萝らか妹 提交于 2019-12-10 13:47:47
问题 Java Tutorial says there are 2 ways to connect to database thru JDBC: with DriverManager class (old, not recommended) and with DataSource class. I undestand how to do it with DriverManager: Connection con = DriverManager.getConnection("jdbc:sqlite:mytest.db"); ... But I cannot find how to use DataSource for SQLite thru JDBC. Does SQLite (or JDBC driver providers for it, I don't know how to call it correctly) support using DataSource at all? I am using xerial/sqlite-jdbc driver to use SQLite

Error when attempting Grails start up, following JDBC setup

别说谁变了你拦得住时间么 提交于 2019-12-10 12:14:26
问题 There is a potential that I should be reusing an existing question of mine. Connecting a groovy application to SQL server Express BUT this seems to be a bit different. The question was brought up while configuring a test application, now I am doing the real thing and this is the time that it goes really wrong. As you can see the Jar file is in my lib and classpath my datasource is configured as below (pretty much a copy paste job from my working example) dataSource { username = "sa" password

ConnectionManager getDataSource undefined method

风流意气都作罢 提交于 2019-12-10 12:01:18
问题 Using cakephp 2.3.8 I am attempting to setup a connection to a custom couchbase datasource I have made within another datasource. The datasource I am attempting to load functions properly on the rest of the site when being loaded via a model. I want to use the connection manager to load this datasource. This is what I have so far: database.php file: public $queriesCB = array( 'datasource' => 'CouchbaseSource', 'username' => 'queries', 'password' => '', 'bucket' => 'queries', 'prefix' => 'q_',

Using a list in my ObjectDataSource on my report for the DataSource of a Telerik Chart in report

本小妞迷上赌 提交于 2019-12-10 11:54:47
问题 Hey there I'm trying to use a list (Loans) within my ObjectDataSource (objectDataSource1) object on a report, as the DataSource for my Telerik chart on the same report. The majority of the tutorials I have looked at all show the report querying their database with a SQL string. I feel I'm over looking something silly. I've also posted on Telerik and haven't got a response quite yet. What I want to do is something like this: chart1.DataSource = objectDataSource1.Loans; Or to be able to just

What Statistics Framework / Tools use with data from different sources

天大地大妈咪最大 提交于 2019-12-10 11:51:58
问题 I got many datasources (postgres database, logfiles) containing statistic data or containing data from which you can calculate statistic data. Im searching for a application where you can design new reports / outputs (graphs, tables etc) without using a programing language but using a gui. You should be able to save these queries and rerun them later. A webaplication (or a webservice) would be better than a offline app. Thanks! 回答1: No programming language? Well that takes out most of the

Refresh DataSource using Spring+dbcp

青春壹個敷衍的年華 提交于 2019-12-10 11:26:51
问题 I'm using Spring with DBCP and need to refresh my datasource when some configuration on operation environment changes, without restart all application. If I do it with no use of DBCP, I force this refresh closing current opened datasource in use and Start a new instance of DataSource. Using DBCP+Spring, I can't do that. Somebody knows if it is possible? 回答1: I don't think there is such a support in plain DBCP, mostly because database connection properties are very rarely changing during the

Microsoft Word Mail Merge Data Source auto location

萝らか妹 提交于 2019-12-10 11:15:09
问题 I have written an Excel > Word Mail merge where the word document is the mail merge template. At the moment the location of the excel file (data source) has to be hard coded. I want to be able to move the files about the network, as long as they are in the same folder as each other, so it recognizes the data source is still the excel file. I currently have this piece of code which i thought would work. When the word document is opened at any point, it will re-create the data source by looking

Why isn't this Linq query on Dictionary<TKey, TValue> working as DataSource

断了今生、忘了曾经 提交于 2019-12-10 10:35:38
问题 I have the following in VB: Dim sources = From source In importSources Select New With _ {.Type = source.Key, .Source = source.Value.Name} dgridSourceFiles.DataSource = sources When I debug, sources shows an in-memory query and has 2 records within. Yet the datagrid view will not show the records. So why won't this work? suggestions can be either VB or C#... Update When I use: Dim sources = (From source In importSources Select New With _ {.Type = source.Key, .Source = source.Value.Name})