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)

4740 questions
45
votes
9 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
  • 11,248
  • 22
  • 85
  • 136
45
votes
2 answers

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…
44
votes
6 answers

What's the difference between data source and delegate?

I have a fundamental question related to Cocoa frameworks design patterns. What's the difference between delegate and data source? Both of them could use @protocols declaration, but some classes or frameworks are using delegate, and some others are…
Jesse Armand
  • 1,842
  • 3
  • 17
  • 26
43
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,901
  • 7
  • 51
  • 71
41
votes
3 answers

React-Native Updating List View DataSource

I have an iOS app I am making with react-native. The Game class contains a ListView component. I set the state in the constructor and include a dataSource. I have a hardcoded array of data for right now that I store in a different state property…
Brandon M
  • 933
  • 1
  • 8
  • 8
40
votes
4 answers

Add a spinner when Mat-table is loading?

I load the data in my material table like that : ngOnInit(){ return this.annuairesService.getMedecins().subscribe(res => this.dataSource.data = res);} I want show the spinner when is loading : I try : …
Newbiiiie
  • 1,401
  • 3
  • 14
  • 33
39
votes
13 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
  • 18,046
  • 16
  • 98
  • 110
38
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,347
  • 6
  • 18
  • 47
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,446
  • 2
  • 29
  • 31
37
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,982
  • 4
  • 16
  • 26
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,235
  • 7
  • 36
  • 48
36
votes
5 answers

Exception when creating datasource with PostgreSQL driver in Spring Boot

I'm trying to create a non-web application using Spring Boot following a MKyong's example, but I got the following error: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/…
Pablo Lozano
  • 10,122
  • 2
  • 38
  • 59
36
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,663
  • 6
  • 35
  • 64
35
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
  • 15,101
  • 33
  • 107
  • 174
32
votes
1 answer

Logging HikariCP Spring boot

i set my properties in my application.yml spring.datasource.hikari.connection-timeout: 30000 spring.datasource.hikari.maximum-pool-size: 10 spring.datasource.hikari.idle-timeout: 600000 spring.datasource.hikari.minimum-idle: 10 Spring is…
resla95
  • 1,017
  • 2
  • 11
  • 18