Questions tagged [datasource]

Datasource is a name given to the connection set up to a database from a server. The name is commonly used when creating a query to the database. The database source name (DSN) does not have to be the same as the filename for the database.

A data source is any of the following types of sources for (mostly) digitized data:

  • a database (in the Java software platform, datasource is a special name for the connection set up to a database from a server)
  • a computer file
  • a data stream

Please see more here (Wikipedia entry for Datasource) and here (Java 6 Datasource interface documentation)

4483 questions
37
votes
4 answers

Externalizing Grails Datasource configuration

Grails 1.x allows using external configuration files by setting the grails.config.locations directive. Is there a similar approach available for externalizing the database configuration in Datasource.groovy (without setting up JNDI)? It would prove…
miek
  • 3,426
  • 2
  • 27
  • 30
37
votes
11 answers

How to connect to a MySQL Data Source in Visual Studio

I use the MySQL Connector/Net to connect to my database by referencing the assembly (MySql.Data.dll) and passing in a connection string to MySqlConnection. I like that because I don't have to install anything. Is there some way to "Choose Data…
JohnB
  • 15,593
  • 15
  • 91
  • 109
37
votes
2 answers

dynamically change Spring data source

I have a Spring application, i want to change the data source dynamically,ie. when input a DS URL, the Spring beans and all dependency will get updated automatically.I know this is somewhat strange, but anyway i want to achieve that. My Spring…
Simon Wang
  • 2,137
  • 7
  • 30
  • 47
36
votes
7 answers

How to pass main report data source to subreport (JasperReports)?

I'm using JasperReports and I fill the JRDataSource for ther report. Now, I want to pass the main REPORT_DATA_SOURCE to the subreport. How can I do this? As far as I know the REPORT_DATA_SOURCE is a consumable object, so it can only be used once,…
adis
  • 5,571
  • 5
  • 45
  • 70
36
votes
1 answer

Object persistence terminology: 'repository' vs. 'store' vs. 'context' vs. 'retriever' vs. (...)

I'm not sure how to name data store classes when designing a program's data access layer (DAL). (By data store class, I mean a class that is responsible to read a persisted object into memory, or to persist an in-memory object.) It seems reasonable…
34
votes
8 answers

Unable to find the requested .Net Framework Data Provider in Visual Studio 2010 Professional

Why am I getting "Unable to find the requested .Net Framework Data Provider" when trying to setup a new datasource in Visual Studio 2010 Professional? My stats: Windows 7 64bit 16gig RAM Visual Studio 2010 Professional SQL Server 2008 (server A,…
cbmeeks
  • 10,718
  • 18
  • 79
  • 134
34
votes
3 answers

Using a list as a data source for DataGridView

I've extracted the setting names and their respective values out of a configuration file into an ordered dictionary. The dictionary contains keys and values which are of the ICollection class. I want to bind that data and display it in a…
tf.rz
  • 1,287
  • 6
  • 17
  • 45
34
votes
8 answers

How to test a mocked JNDI datasource with Spring?

I am fairly new to Spring and wondering how to create JUnit tests that use a mocked datasource and how to use a JNDI context with that? Currently my application uses a JNDI context from tomcat to retrieve a connection and via that connection…
Marco
  • 12,916
  • 27
  • 97
  • 162
34
votes
3 answers

Spring Data JPA - Multiple EnableJpaRepositories

My application has multiple data sources , so i have created two data source configuration classes based on this URL . But while running the spring boot application am getting error Description: Field userDataRepo in…
Ansar Samad
  • 509
  • 2
  • 6
  • 12
32
votes
6 answers

Multiple Combo Boxes With The Same Data Source (C#)

UPDATE: This is now resolved, see answer below. On one of my forms (in a Windows Forms application) I have 3 Combo Boxes. These combo boxes need to display a list of prices (In text, with an integer back-end value). All of these combo boxes are…
Tom Glenn
  • 1,822
  • 4
  • 16
  • 26
32
votes
1 answer

Multiple data source and schema creation in Spring Boot

I'm using Spring Boot. I finally managed to setup two data sources, but now I'm facing another issue. with two data sources in place spring.jpa.hibernate.ddl-auto=create seems to stop working in my spring boot application, only…
Zveratko
  • 2,349
  • 3
  • 26
  • 53
29
votes
7 answers

Unable To set row visible false of a datagridview

I have a DataGridView where I set DataSource: taskerEntities te = new taskerEntities(); var OMsMasterDescriptiveIndicators = te.MyTable.Select(x => new lccls {Id = x.Id, name = x.name }).ToList(); MyGrid.DataSource =…
Amit Bisht
  • 4,355
  • 13
  • 47
  • 80
29
votes
7 answers

mySQL DataSource on Visual Studio 2012

I've been reading about mySQL DataSource and the ability to use mySQL with Entity Framework, but I can't really generate EF with mySQL without the use of the DataSource Dialog How can I add mySQL Database to such dialog? This is what I have done…
balexandre
  • 69,002
  • 44
  • 219
  • 321
28
votes
3 answers

Listing all Data Sources and their Dependencies (reports, items, etc) in SQL Server 2008 R2

I am new to SQL Server, and I am sorry if there is an obvious solution to my question but I can't seem to find it. I am looking to generate a report (or list) of all the data sources and their individual dependencies on an SQL Server 2008 R2…
28
votes
3 answers

Custom column names for DataGridView with associated DataSource

How can I setup custom column names for DataGridView with associated DataSource? Here is some code: class Key { public string Value { get; } public DateTime ExpirationDate { get; } } List keys = new List(); ...// fill keys…
Bobrovsky
  • 12,696
  • 19
  • 74
  • 122