connection

Can't connect to IIS 7 management

Hello. I have Windows Server 2008 running on one of my computers, and I have IIS 7 running on it. It is hosting my web page just fine, but when I try to use the remote managment for IIS 7 or even if I try to connect and edit my website remotely using Visual Web Developer 2008, it can't seem to find the server. Remote desktop works just f...

Users can't connect remotely to MySQL

Problem Users from other IPs on the (Windows XP) LAN suddenly cannot connect to my local MySQL server. Background I've set up MySQL on my local Windows computer so that other computers on the network have access to the root account. I've added each IP as a host for root. Up to some weeks ago, things worked flawlessly and I could conne...

Are SQL Server 2000+ transactions connection dependent?

Case 1: I start a connection to the DB I BEGIN a TRANSACTION I close the connection What happens to the transaction? Case 2: I start a connection to the DB I BEGIN a TRANSACTION I start a concurrent connection to the same DB With the second connection I modify the contents of a table With the first connection I ROLLBACK the TR...

Connecting to SQL server2005 from ActionScript3

I want to connect to database SQL2005 from ActionScript3, where i need to execute query statements from actionscript! can any one tell me please the code to do that ???? i searched about this issue and the result did'nt help me as the code is not workinf so i got confused. ...

Good TCP connection library for Java?

I am looking for a good TCP connection library from Java with the following facilities: 1. Retry on failed publishes 2. Multiple connections Which library have you sucessfully used. EDIT: Based on the comment changed the question to reflect which type of connection library. ...

difference between shareable and unshareable connection in jdbc connection pool?

We notice something strange in our struts web application which was hosted on sun app server enterprise edition 8.1. The NumConnUsed for Monitoring of JDBC resources stays at 100 over connections even though there was relatively very low user activities. I try to do some research and found the following links http://j2ee-performance.bl...

How to use an array that is created in one class in a second class?

I have created an array in the implementation of my class loginController. Now I want to use this array (with its objects) in another class of my project. What is the right way to import it? ...

Java embedded applet page security, how to properly meet its recquirements?

If I have an applet embedded in a webpage and I want it to connect to server side software (also written in Java) how can I do this properly on a windows machine running local host? Would I have to run the java application from within the localhost directory and access the applet html from a browser (i.e. localhost/applet.html)? From wh...

Remote mysql connection

Hi, I'd been making a web on localhost and when I tried to move it on host it shows me lots of errors. Seems like it can't connect to my local database. Here's the code: $host = "myip"; $user = "root"; $pass = ""; $db = "mydatabase"; mysql_connect($host, $user, $pass); mysql_select_db($db); $on = mysql_fetch_row(mysql_query("SELECT COU...

Custom streaming to read BLOBS from MS-SQL - How should I handle the connection?

I have a custom stream that I am using with WCF for large BLOBs from the database. It reads the data in chunks. What is the best way to handle the connection for the stream? Should I just open it at the construction or open/close it with each chuck read? Thanks. ...

Oracle Datasource returning null connection

The oracle data source is returning null connection when the no of connection request is more. I have the implict cache enabled.The oracle specs says null is returned only is ConnectionWaitTimeout is set. I do not have a value set for ConnectionWaitTimeout in the cache properties. This is what the spec says about ConnectionWaitTimeout...

Best way to check if a TCP connection is active

Given a list of IP addresses how do I programmatically check if the local machine still has active TCP connections to these IP Addresses? I am using C#. ...

Separate Connection String For Different Environments

In my VB.NET windows application code I created my own AppConfig class that holds the connection string to a SQL server database. I am about to move this program into production and was wondering if there is an easy way to have the program switch between a development connection string and a production connection string based on whether...

Mysql Connection Class

Hi - I'm writing some php code, and I'm frequently accessing my MySQL database to read and update fields. My current code includes a class called dbconnnect, and I use it as follows: class edit_data extends dbconnect { //<some php code> parent::connect(); //<get info from database> parent::disconnect(); //<evaluate data> My questio...

Saving & Restoring Connections with XIFF

Hi, I'm modifying a piece of JavaScript code that uses XMPP + XIFF flash object to communication with MSN/Yahoo/GTalk via Jabber. The requirement of the web site is to enable page refreshes. However, the problem is the current implementation of XIFF does not allow saving and restoring of connection, but requires a new login every time...

Connecting to MySQL database with PHP

I have this little function do connect to a MySQL database: function connectSugarCRM() { $connectorSugarCRM = mysql_connect ("localhost", "123", "123") or die ("Connection failed"); mysql_select_db("sugar5") or die ("Failed attempt to connect to database"); return $connectorSugarCRM; } And then, to run a query, I'm doi...

Ruby Connecting to SQL Server 2005

I want to connect to a sql server 2005/db with ODBC through ruby using windows authentication. I have the gems dbi-0.4.1 and dbd-odbc-0.2.4 installed. What do I need to do for a connection string? So far I haven't been able to get it to work. DBI.connect("DBI:ODBC:Data Source=#{server};Integrated Security=SSPI;Initial Catalog=#{db}") ...

How to connect my laptop and desktop for file sharing and internet connection.?

Dear all,, Well i fear to post this question here.. But this is only because i am not able to find the answer to this question anywhere.. But if the administrator still thinks that this question is not worth putting here, then he or she can delete it.. But i would be obliged if that doesn't happen and i get the answer to my question.. A...

Delphi 7 ADO connection pooling outside of IIS

We have a Delphi 7 application that runs as an ISAPI extension in IIS6. The code use ADO to connect to a MS SQL 2000 database and performs many reads on the database (no writes). If I watch the audit login and logout events in SQL profiler I can see that numerous requests to the app result in only 1 audit login event. However, if I ru...

Perf problem with a stored proc - closing a connection too slow.

I have previously asked a question about a stored proc that was executing too slowly on a sql server box, however, if I ran the sproc in Query Analyzer, it would return under one second. The client is a .NET 1.1 winforms app. I was able to VNC into the user's box and, of course, they did not have SQL tools installed, so I cranked up ...