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
32
votes
8 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,870
  • 14
  • 54
  • 83
32
votes
4 answers

Database or List of English First and Last Names

I've come across a few smaller lists/sets of names but I was wondering if there is a free data source out there that can provide a list of names (comma delimited or in a sql structure)? I've found these two…
A.O.
  • 3,733
  • 6
  • 30
  • 49
31
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
  • 13,789
  • 19
  • 80
  • 130
30
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…
30
votes
4 answers

Spring Boot "PSQLException: FATAL: sorry, too many clients already" when running tests

I have a Spring Boot application that provides a REST API to front-ends. I am using jOOQ and Postgresql. I am currently getting this error when executing all integration tests locally (around 1000 tests, this starts happening after executing 700-800…
Egemen
  • 2,178
  • 5
  • 22
  • 32
30
votes
28 answers

VB.NET: Clear DataGridView

I've tried - DataGridView1.DataSource=Nothing and DataGridView1.DataSource=Nothing DataGridView1.Refresh() and DataGridView1.RefreshEdit() None of them works.. I've written a method that sets the DataSource of the DataGridView when executed. but…
Bibhas Debnath
  • 14,559
  • 17
  • 68
  • 96
30
votes
3 answers

c# Hide a property in datagridview with datasource

I think there must be an attribute to hide a public property from the datagridview. But I can't find it.
Someone
29
votes
4 answers

ERROR : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

While connecting .NET to sybase server I got this error message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified This has worked properly before. System DSN with same details worked and data connection…
Amrita
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
  • 73,608
  • 45
  • 233
  • 342
28
votes
2 answers

Spring Boot 2.0.0 , DataSourceBuilder not found in autoconfigure jar

We are upgrading our existing Spring Boot (1.5) application to 2.0.0. We connect with multiple databases and use the org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder class. I added the dependency: compile group:…
28
votes
6 answers

Ubuntu Tomcat7 java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory

I'm trying to set up a JDBC DataSource in Tomcat 7 under Ubuntu 12.X, so I added the following to the context.xml file:
Edo
  • 323
  • 1
  • 3
  • 11
27
votes
2 answers

Get a reference to currently active dataSource in Spring Boot

I want to implement db data init via DataSourceInitializer. I have these as methods just below my Spring Boot main method, but it seems that it doesn't get executed at all (I tried with intentional removal of characters just to trigger an error…
developer10
  • 1,450
  • 2
  • 15
  • 31
26
votes
4 answers

intellij idea data sources doesn't see existing table in the database

intellij idea data sources doesn't see existing table in my mysql database, while Netbeans see it. i've created a table in the database. When i create connection in intellij idea data sources, it sees my scheme, i do select it in "schemas and…
WebComer
  • 1,131
  • 2
  • 19
  • 31
26
votes
2 answers

attempt to insert nil object from objects[0]?

In my application I have a UITableView and some buttons that the user can click to sort the array to the order based upon some NSDate's or ints. So this is my method to try to sort my UITableView: - (void)sortStats:(id)sender…
SimplyKiwi
  • 12,376
  • 22
  • 105
  • 191
25
votes
1 answer

Get the hostname from a DataSource class

Is there a way to get the hostname from the DataSource type in java? I mean, I have a DataSource object (DS), which is annotated to get the JBoss datasource. Anyway, I want to get the hostname used in that DS. Debugging, i can see it this way: I get…
Ron
  • 2,215
  • 3
  • 22
  • 30