473,395 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

BADLY need help......PLZ PLZ Help

6
Hw to update a Record Directly without a SSH connection...

Error: "NO CNNECTON CAN BE MADE BECAUSE THE TARGET MACHINE ACTIVELY REFUSED IT"
Mar 15 '07 #1
3 952
AricC
1,892 Expert 1GB
Hw to update a Record Directly without a SSH connection...

Error: "NO CNNECTON CAN BE MADE BECAUSE THE TARGET MACHINE ACTIVELY REFUSED IT"
Are you trying to update a record in a database? You need to be more specific, probably posting code would be best so we can see what you are doing.
Mar 15 '07 #2
hepsi
6
Im doin a project where im trying to update the records tht r present in mysql db to postgresql db...
Nw inorder to carry out the information... we r using SSH...

When im trying to execute the project...
it is giving SSH not connected
or
No Connection could be made because the target machine actively refused it.


the foll is the code for upload_button click:




code to update the data with required fields into the post gre data base
Expand|Select|Wrap|Line Numbers
  1.  Dim myPgrConnect As New NpgsqlConnection
  2.         Dim myPgrCommand As New NpgsqlCommand
  3.         'myCon.ConnectionString = "Server=xxx; Port=xx; Database=xx; Userid=xx; password=xxx; Protocol=xxxx; SSL=xxxx; Pooling=xx; MinPoolSize=xx; MaxPoolSize=xx; Encoding=xxx; Timeout=xx; SslMode=xx;"
  4.         Dim strSQL As String
  5.         Dim record As String
  6.         Dim intRowsAffected As Integer
  7.         Dim ds As New DataSet
  8.         Dim myTable As DataTable
  9.  
  10.  
  11.  
  12.  
  13.         Try
  14.             If Plink.HasExited = False Then
  15.                 myPgrConnect.ConnectionString = "Server=xxx; Port=xx Database=xx; Userid=xx; Password=xxx; Protocol=x; SSL=xx; Pooling=xx; MinPoolSize=x; MaxPoolSize=xx; Encoding=xxx; Timeout=xx; SslMode=xxx;"
  16.                 myPgrConnect.Open()
  17.             End If
  18.         Catch ex As Exception
  19.             MessageBox.Show("Secure Shell is not connected", "Error Message...!!")
  20.             Return
  21.         Catch ex1 As System.NullReferenceException
  22.             MessageBox.Show("Error2: " + ex1.Message(), "Error Message...!!")
  23.             Return
  24.         End Try




Are you trying to update a record in a database? You need to be more specific, probably posting code would be best so we can see what you are doing.
Mar 15 '07 #3
hepsi
6
Yes updating a record into postgresql database
Mar 15 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Gerry | last post by:
As I'm not a PHP-prgrammer at all, I just need Help with this: I have had a guestbook-page in Europe and will now have to move it to a US based-server. This makes the time-function showing time...
3
by: Mike | last post by:
Hey guys I am pulling my hair out on this problem!!!!! Any help or ideas or comments on how to make this work I would be grateful! I have been working on this for the past 4 days and nothing I do...
5
by: Paul Reddin | last post by:
Hi, using ROWNUMBER() is affecting the plan of a view very badly... is there a way of writing the following view to ensure rownumber() is done as the last thing done? i.e after the calling...
2
by: Sam Samnah | last post by:
I am building a custome control and I need to access the information in the hidden field (HtmlInputHidden HIH) so that when a button is pressed the information in the hidden fields value is...
4
by: IcedCrow | last post by:
I have stumbled upon a serious problem and I hope someone can help me out. I have programmed a web service in VB.NET. When I use integrated security for the piece, of course it does not use...
3
by: Jerome Cohen | last post by:
AI am trying to call a third-party web service. this service expects an XML fragment that contains the request plus other parameter. adding the web reference created the syntax below(reference.vb)....
8
by: Seeker | last post by:
Hello, In using Solaris Pro Compiler to compile Pro*C code. I am getting this error: make: Fatal error in reader: parser_proc_online.mk, line 26: Badly formed macro assignment Based on other...
13
by: zam | last post by:
i need to do a project in vb for my degree any body ther who can realy help me. i mean having the source for !!!
2
by: na23sh | last post by:
can somebody help me on how to run a visual basic project with a visdata.On a user pc without installing visual basic 6?i have tried the package depolyment wizard but it didn't work?can you help me...
1
by: Tom P. | last post by:
It's kind of hard to explain (so if you need more just ask) and any help would be greatly appreciated. I am writing a side-by-side file manager. On each side I have a DropDownButton that holds...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.