datasource

Issues connecting to more than one oracle datasource using grails

房东的猫 提交于 2019-12-12 04:53:47
问题 If this is a duplicate, please forgive me. I have searched and searched. But I have something that's been bugging me for the past couple of days. I have researched and haven't found a solution that solves my issues. I'm working on an application that will need to access multiple databases. If I do just one database and inject it into the code with a datasource object, it does just fine with whatever database I use. But if I try to add another datasource, that's when the problems start. I have

Sybase 15.7 on Red Hat Enterprise Linux Server release 6.4 (Santiago)

梦想的初衷 提交于 2019-12-12 04:40:35
问题 I am migrating to Red Hat from Solaris. Previously on Solaris, we connected to Sybase datasources through Java by passing an interfaces file location to a JDBC library. When I checked the Sybase documentation, they only list interfaces files as an option for UNIX and Windows... Does anyone know what the equivalent is for Linux? I know our datasources have been transfered over, because when i connect with: isql -S <server> -U <user> -P <password> I can connect to the database. Unfortunately

Vb.Net crystal report from dataset

主宰稳场 提交于 2019-12-12 04:38:32
问题 I am using Vb.Net 2010 to develop project that has crystal reports. I connect to sqlserver and fill my dataset using the function Adapter.Fill(dataset,"tableName"). My concern now is how can I display the data in my dataset or datatable in crystal report? 回答1: here my code using 2 tables authors and titleauthor 'Build a SQL statement to query for the authors table Dim sqlString As String = "SELECT * FROM authors" 'Retrieve the data using the SQL statement adoOleDbDataAdapter = New

Is it possible to set listbox datasource to List<Tuple<string, string, int>> Item1 only?

点点圈 提交于 2019-12-12 04:37:43
问题 I have public static class GlobalVariables { public static List<Tuple<string, string, int>> PopFile; } and I'm trying to use PopFile as a datasource to listbox listBox1.DataSource = GlobalVariables.PopFile; The problem is that it obviously adds ([string], [string], [int]) to the listbox but I want to add only the first items of tuples. Is that possible? I could use foreach (Tuple<string, string, int> i in GlobalVariables.PopFile) { listBox1.Items.Add(i.Item1); } but I'd prefer .DataSource.

Can you determine which database vendor is used from a SQLException?

混江龙づ霸主 提交于 2019-12-12 04:35:59
问题 I'm assuming the simple answer is no , but wondering if one of the Java ninja's out there might know of a clever hack... More specifically my problem is I am trying to create automation that can extract/restore a database from some other data format (xml, another database vendor, json...). I am trying to limit the scope of vendor specific code to an *Adapter class. The interface is: public String escapeName( String name ); public ColumnMetaData columnMetaDataFromResultSet( ResultSet resultSet

how can i using openshift environment variables in hibernate.cfg.xml

别来无恙 提交于 2019-12-12 04:24:12
问题 I am using Hibernate on OpenShift now. In hibernate.cfg.xml When I use: <property name="connection.url">jdbc:mysql://10.143.140.62:52016/yoodp</property> It works. But when I use: <property name="connection.url">jdbc:mysql://${env.OPENSHIFT_MYSQL_DB_HOST}:${env.OPENSHIFT_MYSQL_DB_PORT}/${env‌​.OPENSHIFT_APP_NAME}</property> or <property name="connection.url">jdbc:mysql://${OPENSHIFT_MYSQL_DB_HOST}:${OPENSHIFT_MYSQL_DB_PORT}/${OPENSHIFT_APP_NAME}</property> It doesn't work. How can I fix it?

How to use 2 UIPickerViews in the same view controller? [duplicate]

本秂侑毒 提交于 2019-12-12 04:15:23
问题 This question already has an answer here : How to distinguish between multiple uipickerviews on one page (1 answer) Closed 2 years ago . My code below uses a UIPickerView and works perfectly. However I do not know how to repeat this process for 2 different picker views that each contain separate information. l2 and pl2 are the 2nd picker view and label. import UIKit class ViewController: UIViewController, UIPickerViewDataSource, UIPickerViewDelegate{ @IBOutlet var l: UILabel! @IBOutlet var pl

Grails 3.x multiple datasources

我们两清 提交于 2019-12-12 04:07:34
问题 Back in Grails 2.x world I could create multiple dataSources in an environment: development { dataSource { ... } dataSource_new { ... } } and reference them in the controller: def db = new SQL(dataSource_new) and everything worked awesome. In Grails 3.x, everything is not awesome: development: dataSource: ... dataSource_new: ... and calling def db = new SQL(dataSource_new) throws: Ambiguous method overloading for method groovy.sql.Sql# Anyone have success with this (or can point out what's

Cannot import correctly maven properties with PropertiesFactoryBean and PropertyPlaceholderConfigurer in spring

僤鯓⒐⒋嵵緔 提交于 2019-12-12 03:39:53
问题 I'm facing problems with a jdbc dynamic properties configurer. I try to explain what exactly the problem is. When I do mvn clean install and right after I deploy the applications in my server (Weblogic 10.3.3), everything is correct, and all the applications work fine. But, every morning, when I try to redeploy the same applications, it was shown an error message like this: Error creating bean with name 'path.to.my.bean.JDBCPropertiesFactoryBean#6015a10' defined in class path resource [spring

Deploying SSRS RDL files from VB.Net - Issue with shared datasources

谁说我不能喝 提交于 2019-12-12 03:34:52
问题 I am currently developing a utility to help automate our report deployment process. Multiple files, in multiple folders, to multiple servers. I am using the reportservice2010.asmx web service, and I am deploying my files to the server - so most of the way there. My issue is that I have shared data sets and shared data sources, which are deployed to individual folders, separate to the report folders. When the deployment occurs the web service looks locally for the data source rather than in