database-connection

Resetting or refreshing a database connection

This Android application on Google uses the following method to refresh the database after replacing the database file with a backup: public void resetDbConnection() { this.cleanup(); this.db = SQLiteDatabase.openDatabase( "/data/data/com.totsp.bookworm/databases/bookworm.db", null, SQLiteDataba...

Question regarding ideal database implementation for iPhone app

So I have a question about the ideal setup for an app I am getting ready to build. The app is basically going to be a memorization tool and I already have an sqlite database full of content that I will be using for the app. The user will navigate through the contents of the database(using the uipickerview), and select something for mem...

How to deny accessing from OleDb Provider when Excel is opening?

Hi all I am using Microsoft.Jet.OleDb.4.0 provider to obtaint data from Excel files. Here's the connection string and it works properly: string conn = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=source.xls;Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\""; The problem is that I want whenever excel file was opened or to be using by a...

Am I closing this SQL connection in a C# function appropriately?

In an attempt to close my question on connections remaining open and exceeding the maximum pool, I'm trying tor rewrite the function that is used to connect to our database. The function exists within a homegrown compiled library. using reflector I can see the code looks like this: public SqlProvider([Optional, DefaultParameterValue(""...

How can we access the another permitted server's database in MySQL?

Is it possible to retrieval databases of anther permitted website's server. and the full data must be replicated and updated frequently to my server. ...

Why Oh Why won't VB.NET connect to this database?

Hi, First off, I can connect to both databases with SQL Server Enterprise Manager, so I know the servers are up and available. One of them is SQL1, the other is SQLTEST. In my program when I use the following connection string, it work connects just fine: conn = New DBConnect("Data Source=SQL1;Initial Catalog=SignInspection;Integrated...

input data into android database

I am currently working on a java program that inserts excel data into android database(sqlite). when i place the TestDB(sqlilte db) into c:drive it works. Connection con = DriverManager.getConnection("jdbc:sqlite:C:\\TestDB"); But it won't work on android(emulator) database. The database have been created in android. Connection con ...

connect to oracle (AIX unix version) from windows using c#

Hi, I have an oracle 9i db installed on IBM AIX unix. This server is a remote server. I can connect it through Putty and SQL DEVELOPER. REQUIREMENT 1) Want to connect to it from my windows application using c#. 2) Cannot install anything on oracle unix. So, how can i connect using c#? Please suggest some solution. Thanks ...

Named Pipes Provider, error: 40 - Could not open a connection to SQL Server?

Hi In our project user using NHibernate 2.1.1 with SQL Server 2008 with .net 3.5. I am facing strange problem with SQL Server. We developed windows service, installed it and it was running fine for sometime. Unfortunately by mistake when I stopped SQL Server, NHibernate throw exception System.Data.SqlClient.SqlException: A netwo...

Does Ruby on Rails' ActiveRecord support "disconnected recordsets" (like ADO.net)?

Using Microsoft's ADO.net, one can you query database -> disconnect database connection -> query/manipulate locally -> connect again (re-synchronize local with database). I've found value in this as overall it can minimize database hits. Does ActiveRecord support such a model/pattern? ...

How to connect to a SQL Server Compact from a .NET application?

I would like to create a WPF application that is using a local database. I have created a simple database and added it so I can see my database NameDB.sdf in my Solution Explorer. How do I connect to it from my application? I have tried with an empty application that just tries to connect to the database: ... using System.Data.SqlServ...

Why is this class member leaving a SQL connection open?

Further to my recent questions, I've now closed most of the connections that our web application was leaving open. However, the connection created by the function below remains open. Can anyone identify why it is not closing? public DataTable GetSubDepartment(int deptId) { DataTable dt = new DataTable(); using (SqlConnection ...

Distributed db's or not?

INFORMIX-SQL 7.32 (SE) Linux Pawnshop App. I have some users who own several pawnshops within a 100-mile radius. Each pawnshop app runs with SE. The only functionality these owners need are: ability to remotely login to any store in order to view transactions, running totals and consolidate daily totals at end of business day. This can ...

Why does this update lock the row in Oracle 10?

Here is the code (with server/passwords etc removed) public int SetUploadedInESIDatabase(string ID) { using (var oOracleConn = new OracleConnection()) { oOracleConn.ConnectionString = @"Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<ip>)(PORT=152...

Having trouble connecting C# executable to database file on remote computer.

Hello Friends, Using VC# I've created a staff management app that, upon its first run, is expected to query the user for the path to a (.mdf) database which will reside on a remote computer. A resulting path may be something like string dbPath = @"P:\remoteComputer\public\StaffTool\ExamplePersonnelDatabase.mdf"; Then I'm placing th...

Connecting to SQL Server very slow.

I have a standard php app that uses SQL Server as the back-end database. There is a serious delay in response for each page I access. This is my development server, so its not an issue with the live setup, but it is really annoying for working on the system. I have a 5 - 8 second delay on each page. I am running SqlServer 2000 Develop...

PHPMyAdmin cannot connect to MySQL

I installed the lampp sever on my local in linux OS, but its giving error while opening phpmyadmin. #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) ...

Does MySql support connection pooling for Java SE applications?

From the examples that I have read and from the documentation on MysqlConnectionPoolDataSource at http://www.control.auc.dk/~04gr733/filer/javadoc-DB-driver/com/mysql/jdbc/jdbc2/optional/MysqlConnectionPoolDataSource.html it seems that Java SE applications cannot use connection pooling. Is this true? Can I get connection pooling to work ...

PHP Can't Connect to MS SQL Express 2008

Hi all, I'm struggling to connect to my MS SQL Express 2008 edition from my PHP files, but it seems virtually impossible. I've found several guides/notes on teh intarweb solving the issues, but none of these have helped me any further. I've taken a script from another site and entered my database information, but I still get errors: ...

Cannot connect to Informix from ASP.NET application.

Hello folks. I've installed the trial version of IBM Informix Dynamic Server 11.50 on my development laptop, for use with an ASP.NET 2.0 app I'm writing. I have created a couple databases and filled them with sample data but I cannot connect. This is the relevant section of code: Dim facStr As String = System.Configuration.Configuratio...