database-connection

Hibernate 4.3.5 ignores v$session.program configuration property

懵懂的女人 提交于 2019-12-25 02:46:51
问题 I previously used hibernate 3.2 and boneCP but I just upgraded to hibernate 4.3.5 and the Hikari connection pool to connect my java application to my oracle database. I set v$session.program to the program name I want and add it to the hibernate configuration. I've created my own hibernate configuration class that extends the Configuration class provided by hibernate. public class MyConfiguration extends Configuration { private static final long serialVersionUID = 1L; public MyConfiguration()

Fill ListView control with ADODB.Connection Query Results?

巧了我就是萌 提交于 2019-12-25 02:43:37
问题 This is my first time trying to connect to a AS400 system, and somewhere along the lines I am failing. Below is my current code I have put together based off a few sample applications. Currently my code is failing at recordList.Open() with message: Execption Source: Microsoft OLE DB Provider for ODBC Drivers Message: ODBC driver does not suppor tthe requested properties. Data: System.Collections.ListDIctionaryInternal I'm attempting to query the AS400, and use my results to fill a Windows

Button that makes changes to information within database

喜你入骨 提交于 2019-12-25 02:22:32
问题 I am writing PHP code for a web page that displays the first and last name of someone and the prayer request that was submitted for them. The idea of the page is that an admin can come in and edit the prayer request to correct typos, misspelled words, etc. I am getting the database to populate the fields no problem. The problem I am having is that when I click the "Approve Prayer Request" button I receive a "page not found" error and the info that I edited does not update within the database.

unable to import MySql.Data.MySqlClient

有些话、适合烂在心里 提交于 2019-12-25 01:47:29
问题 I have created a website that uses a MySQL database, but when i put it online, it doesn't work anymore. in my class connection.vb that i use for my connection to my database i get the following warning: Namespace or type specified in the Imports 'MySql.Data.MySqlClient' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. and it says that the

Limit ConnectionTimeout for Oracle Database

我与影子孤独终老i 提交于 2019-12-25 01:44:18
问题 How can I limit timeout for connecting to Oracle Database? I use devart dotConnect Express Edition on data access layer. I tried add Connection timeout=30; to connection string but it doesn't give right result (even a little weird, first time it really limits to 30 seconds, but not on all connection attempts). Then I find out that Connection Timeout Time (in seconds) to wait while trying to establish a connection before terminating the attempt and generating an error. A value of 0 indicates

How create multiple db context instances by connecting strings?

北慕城南 提交于 2019-12-24 20:25:48
问题 In C#, MVC code first application I have public class CarContext : DbContext { } class in first version of application . And connection string is like <add name="CarContext" providerName="System.Data.SqlClient" Integrated Security=true; connectionString="Data Source=Dragon; Initial Catalog=CarDBv1;"/> When I run application, first version of database is created - CarDBv1 . Then I edit my CarContext class, for example, add new table, change any property etc., also change version of application

Connect To Oracle DB Via JDBC Driver

血红的双手。 提交于 2019-12-24 20:16:36
问题 I'm trying to connect Oracle database using this tutorial. It is working when I use command line: java -cp c:\jdbc-test\ojdbc6.jar;c:\jdbc-test OracleJDBC I have put ojdbc6.jar in the same folder with OracleJDBC.java. Now I need to run it on Eclipse, but it gives me an error: Output: *Where is your Oracle JDBC Driver? java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java

Change Lightswitch internal database to external

北城以北 提交于 2019-12-24 19:30:02
问题 I have been developing an application in Visual Studio Lightswitch (Silverlight client in VS2010 SP1 if it makes any difference), and so far have done all the database development in the Lightswitch designer. I now want to use an external database, but don't want to recreate the whole app, or even just the screens. I have scripted the database, and have created a copy in SQL Server, but can't find out how to get Lightswitch to use this external database without starting the whole thing again.

Closing/Pooling MySQL ODBC connections

旧巷老猫 提交于 2019-12-24 19:08:47
问题 I am rebuilding a system that has developed over the past five years, initially started with Classic ASP I am now moving the whole thing to ASP.NET (using VB.NET) The system has been plagued by a persistent problem of having too many data connections open, resulting in periodic "max_connections is exceeeded" errors. Having asked my server hosts many times about this, I am still having troubles so thought I'd open it up to SO. I am currently opening connections as follows: Dim sql = "SQL

How to connect multiple database,servers in mysql and query from both tables of each other?

混江龙づ霸主 提交于 2019-12-24 15:18:24
问题 I am looking forward to connect two different database from different servers. Also, i would want to run a query that fetches data from both the database into a single result. Am doing this in PHP script with mysql. here is how am looking forward to do it [ without success :) ] $dbh1 = mysql_connect('server1', 'uname', 'pwd')or die("Unable to connect to MySQL1"); $dbh2 = mysql_connect('server2', 'uname', 'pwd') or die("Unable to connect to MySQL2"); mysql_select_db('db1', $dbh1); mysql_select