connection

How to change Crystal Reports connection string using OLE DB in vb.net?

孤者浪人 提交于 2019-12-02 06:45:41
问题 i have a "Connection.vb" where all my Connection string stored and used by the entire program. i'm new to Crystal Reports.. and i want to changes its connection string based on the connection string i made... im using MS SQL 2008.. SQL Server Native Client 10.0 OLE DB Provider.. and here is my connection string. "Provider=SQLNCLI10;Server=....\SQLEXPRESS;Database=Blah;Trusted_Connection=yes" i tried to google it.. but they are using different language, different database, and complex examples

Azure hybrid connection Manager does not work

橙三吉。 提交于 2019-12-02 06:16:00
问题 Requirement I have an On-Premise SQL Server and an Azure webApp Service that needs to talk each other. I installed Hybrid Connection Manager on another computer which is in the same LAN as the SQL server. Let's refer this computer as the Connection PC . The working part Installation and configuration was straight forward, status of the hybrid connection showing as connected. Tested the WebApp on localhost, it worked fine. Which means nothing wrong with the asp.net code SSMS on the connection

detect if machine is online or offline using WMI and C#

╄→гoц情女王★ 提交于 2019-12-02 05:51:27
问题 I use vs2008, winxp, in LAN network with Win2003 servers. I want a application installed in winxp for detect if win2003 machines is online or offline , and if offline when boot it. I have this references, any more references, code samples and best practices ?? http://danielvl.blogspot.com/2004/06/how-to-ping-in-c-using.html http://snipplr.com/view/2157/ping-using-wmi-pingstatus/ http://dotnoted.wordpress.com/2005/01/15/the-popular-c-ping-utitility/ http://www.visualbasicscript.com/Ping-WMI

trying to connect to remote mysql from .asp page

爱⌒轻易说出口 提交于 2019-12-02 05:48:09
I am trying to connect to a remote MySQL database from Classic ASP page, when I write VBScript code in it the website is giving HTTP 500 Internal Server Error. I checked with the host they are saying its not an error from their end. Please help me. <% dim myConnection dim connectString username = "bla" password = "bla" database = "bla" host = "bla" Set myConnection = Server.CreateObject("ADODB.Connection") Set RSTitleList = Server.CreateObject("ADODB.Recordset") connectString = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER="&host&"; DATABASE="&database&"; UID="&username&";PASSWORD="&password&";

Connect iOS app to Mac app over wifi? Similar to iTunes Remote?

做~自己de王妃 提交于 2019-12-02 05:14:16
I'm wondering if it's possible for me to connect an iOS app with a Mac app over wifi, in a similar way to remote and iTunes, where it pairs the devices up so they can communicate with each other? Cyprian Yes you can. Use Bonjour for search and discovery. It's easy and will work through the wifi. EDIT Look at this answer for code samples https://stackoverflow.com/a/3242187/277021 来源: https://stackoverflow.com/questions/8555241/connect-ios-app-to-mac-app-over-wifi-similar-to-itunes-remote

Handling a null Connection in finally

流过昼夜 提交于 2019-12-02 05:08:14
问题 I establish a database connection. I then try to make the connection and return if there is an exception. Further down in the code I have a Finally block that I intend to use as a catch all to close the connection. Connection con = null; try{ try{ con = connectDB(); } catch{ return; } ...code catch{ return; } finally{ con.close(); } However, if the initial connect fails, it jumps to the Finally block where my con.close() throws a null pointer exception. What is the best way to get around this

How to send data from service to activity?

匆匆过客 提交于 2019-12-02 04:44:48
I'm beginner in Android development. I try to create kind of MusicPlayer, which uses Service for playing music. When I click buttons in MainActivity, I call startService with Intent, which includes signal for action, such as play, pause, stop, etc... But I want to send data back from service to activity. For example, when current track has stopped and begin to play the next one, MainActivity got to receive track name and author name. Or when last track in the playlist is stopped, button "Pause" on the Activity got to changed to "Play". I need to send data as map. Like "title: value", "playing:

How to connect to SQL Server 2005 database through Ruby

给你一囗甜甜゛ 提交于 2019-12-02 04:32:24
How to connect to SQL Server 2005 database through Ruby in Windows I have luck using FreeTDS and TinyTDS on Linux. I prefer that path because messing with ODBC was a pain. In addition, I recommend using the Sequel ORM, because it helps remove the task of dealing with different flavors of SQL, allowing us to concentrate on programming, not writing queries that are tied to a particular DBM. David Mullet " Ruby, ADO, and SQLServer " is an example using Ruby and ADO to connect to and query an SQL Server database. And " Using Ruby & SQL-DMO to Automate SQL Server Tasks " demonstrates how to use

Cocoa NSOutputStream send to a connection

你。 提交于 2019-12-02 03:49:27
I am new to Cocoa, but managed to get a connection (to a FTP) up and running, and I've set up an eventhandler for the NSInputStream iStream to alert every response (which also works). What I manage to get is simply the hello message and a connection timeout 60 sec, closing control connection. EDIT: I guess my question is "without closing->opening what would be an non-terminating way of flushing the outputStream? After searching stackoverflow and finding a lot of NSOutputStream write problems (e.g. How to use NSOutputStream's write message? ) and a lot of confusion in my google hits, I figured

Named pipes between Java and C/C++ programs

你离开我真会死。 提交于 2019-12-02 03:48:10
问题 I think of using in windows a named pipe to communicate between two apps written in Java and C. Normally i use socket connection to do this, but now i have to cancel this idea and find a new solution. I read that named pipe in java can be visible only inside JVM-is this true? Is there a way to establish named pipe between two apps wriiten in different language? If not, what kind of technology do You advice? 回答1: In order to create a Windows named pipe in Java, you'd have to resort to using