database-connection

Remove selected items in DataGridView (and DB)

Hi, I have a DataGridView connected to a Database. It is filled like this: Me.KeywordsTableAdapter.Fill(Me.DbDataSet1.keywords) I can see all the data inside DataGridView. Now I can select something and if I press on DELETE (Keyboard) the entries are gone (AllowUserToDeleteRows = true), but they are still in the Database (mdb file) ...

Inter-database communications in PostgreSQL

Hi, I am using PostgreSQL 8.4. I really like the new unnest() and array_agg() features; it is about time they realize the dynamic processing potential of their Arrays! Anyway, I am working on web server back ends that uses long Arrays a lot. Their will be two successive processes which will each occur on a different physical machine. E...

MySql database connectivity with cocoa

Hi all, I am trying to make a cocoa application which will have form like fields and will be used to store and retrieve values from table in MySql database at some local linux server. I want to know that is there any connectivity tool in cocoa which I can use or I have to design API for it?? Thanks, Miraaj ...

DB connection from Sun webserver

Hi whats the difference between the database connection made from a stand alone code and that made from a web application deployed in sun java web server. The code used to connect to the database, when run as separately the db connection is successful. But the same code inside my web application when deployed is not able to make the ...

Web app stress test

I am using pylot to stress test a web app I created. The test simulates 100 users logging in the app and the test lasts 200 secs. On average, approx. 4800 requests are made to the server and same number of connections to MySql, each of which executes 5 queries so we are talking about 24K queries during the test. The queries are simple a...

Scope of global temporary table relative to ADO.NET database connection?

SQL Server books online states the following about visibility (scope?) of temporary tables: Temporary Tables You can create local and global temporary tables. Local temporary tables are visible only in the current session; global temporary tables are visible to all sessions. I want to understand how the scope of the global...

birt connection db2

I have a problem in the connection between db2 and birt. I found an answer that said: This may have nothing to do with BIRT specifically. Perhaps your query to retrieve the data. Have you tried using the jdbc driver stand alone in a simple Java program to try and retrieve the data? This may be easier to debug (as you can...

SQL Server 2008 SSMS connection and http connection string?

I have a SQL Server 2008 on a server which goes out on the internet through a domain name computer.example.com, I want to develop a .net app on my PC and to connect to that database through SSMS - to create tables and so on... And I still want a connection string which can be accessed from anywhere - I'm thinking at a http ...

How to use Data Connection created in Visual Studio in code?

Is it possible to access the Data Connection added to the project in the code? I know that it is possible to access DataSets created using visual designer but I would like to access the connection only. Edit: It is possible to add Data Connection to the project in VS2008 via Tools > Connect to Database. I would like to access this co...

Is my DB connection closed? (Linq to Sql)

Hi, I'm using Linq to SQL and read in a blog post about closing database connections as soon as possible. As an example, they showed a variable being converted to a list (using .ToList()) instead of actually returning the Linq query. I have the below code: public static bool HasPassword(string userId) { ProjDataContext db = new...

SubSonic - Is it necessary to/how to explicitly close the database connection?

Traditionally when using a DbCommand when retrieving data from a sproc, something like the following is good practice: DbCommand cmdDbCommand... dbGetData = DatabaseFactory.CreateDatabase("MyDatabase"); cmdDbCommand = dbGetData.GetStoredProcCommand("MySproc"); . . . try { ... } catch (System.Exception ex) { if (cmdDbCommandcmdDbComm...

vb.NET 2008: How to use a database connection through multiple forms

Hi, I'm testing database programming in vb.NET 2008 at the moment and try to find a way to use a database connection in different forms, so e.g. I put the the database-connection-component into one of the forms. I know, I could access it by e.g. form1.databaseconnection.xxx, but is this the best way or can I "put" the connection into ...

How can I display a database open dialog?

Is there a way to display database open dialog from SQL server in my .NET application (the same way I can display a file open dialog, or font dialog) ? ...

What exactly this error is?

Database i am using is MySQL 5.1. I specified, i believe, right connectionstring in my web.config. but when i run my web app. it throws this exception:- MySql.Data.MySqlClient.MySqlException: The user specified as a definer ('root'@'%') does not exist Any help. Why am i getting this? ...

MySql timeouts - Should I set autoReconnect=true in Spring application?

After periods of inactivity on my website (Using Spring 2.5 and MySql), I get the following error: org.springframework.dao.RecoverableDataAccessException: The last packet sent successfully to the server was 52,847,830 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/...

How to check if a database connection is still open in Ado.Net?

Is there a way to check if a database connection is open? I am trying to check the connectionState but it shows ConnectionState as Open even when database is down. private bool IsValidConnection(IDbConnection connection) { return (connection != null && connection.State == ConnectionState.Open); } ...

Web application: keep DB cursor or recreate?

Hello, Should I initialize the database cursor once per each Apache thread, or should I initialize one in every function available to HTTP clients? What happens when the client terminates the connection (i.e. user closes the browser tab)? Does the server-side function that was processing the request continue normally until it returns, ...

Using a singleton database class in functions and multiple scripts(PHP) - best use methods

I have a singleton db connection which I get with: $dbConnect = myDatabase::getInstance(); which is easy enough. My question is what is the least rhetorical and legitimate way of using this connection in functions and classes? It seems silly to have to declare the variable global, pass it into every single function, and/or recrea...

How can I get Weblogic to connect to a RedBrick database?

I am trying to get Weblogic 9.2.3 to talk to a legacy RedBrick database and am having trouble. I have the redbrick.jar file from the software installation and have added to my APP_RUNTIME_CLASSPATH and my MANIFEST_CLASSPATH. This is my jConnect template line: <url>jdbc:rbw:protocol:${DB_LT_SERVER}:${DB_LT_PORT}/${DB_LT_NAME}</url> <dr...

Jetty 7 + MySQL Config [java.lang.ClassNotFoundException: org.mortbay.jetty.webapp.WebAppContext]

I've been trying to get a c3p0 db connection pool configured for Jetty, but I keep getting a ClassNotFoundException: 2010-03-14 19:32:12.028:WARN::Failed startup of context WebAppContext@fccada@fccada/phpMyAdmin,file:/usr/local/jetty/webapps/phpMyAdmin/,file:/usr/local/jetty/webapps/phpMyAdmin/ java.lang.ClassNotFoundException: org.mort...