I am trying to figure out a way to connect 2 users within my VB.Net application.The goal would be to send strings/integers/booleans from one computer to another that could be translated on the other side. The effect being a multiplayer game, or a chat box or anything of the sorts.If I wanted to connect to a computer here in the office, I couldn't because I can only connect to the shared IP and not the local IP's...
I'm trying to write a method in VB.net so that when I click a button it queries the database and returns all the values which match a textbox which is located next to the button. I have no idea how to do this, I assume in the onclick method for the button I will need to pull in the value from the textbox, connect to the database and display the results to a gridview?
i have to do a hospital mangment system by VB.net and connec it with a DB and i do that by using Wizard ,the problme is that i dont know how i can validat the data thet the user will enter it and i don't know how to give each patient and staff member a uniqe ID and send it to the DB?
I got vb.net 2008 express and sql server 2005 and 2008 express editions whic I downloaded from microsoft website.Now I just want to connect vb.net with sql server 20o5 or 2008.I am using a connection string as
PubConnstring = "Data Source=RAMANSQLEXPRESS;Database=FirmTest11;Trusted_Connection=Yes" 'Create your connection object Dim objconnection As ADODB.Connection Dim strSQL As String
[code]....
Getting Error : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.
I am having a problem with my 64-bit Windows 7, where a program I am creating in class (well, a group of us are creating) will not run on my 64-bit Windows 7.I know that problem stems from the Microsoft Jet OleDb connector, and that it's only for 32-bit windows and does not work with my 64 bit (and is not even listed in the Data sources page of the admin tools in 7).So, what can I do to resolve this problem? is there any way for me to connect to the database?I know the connection string is on this line:
I'm having problems connecting to a database. I have sql server 2005 express installed on my PC, and i am using the following to code to connect to it.
Dim nwindConn As SqlConnection = New SqlConnection("Data Source=localhostSQLExpress;Initial Catalog=northwnd;" & _ "Integrated Security=SSPI")
I have to buttons that I'm trying to connect to. The names are: Search and Schedule. When I'm debbugging, and I try to click on one of the buttons to go to the form that I'm not on, it tweeks out. Here is the code I'm using:
The system cannot find the file specified and then it has tips on how to fix it, but none of them help. Am I just coding it wrong or what? I'm using VB 2010 Express.
Ok I'm finally getting to put on big boy pants and have now moved beyond doing everything in Access (yay me).o here is the problem, can't connect to the Server. created a test button on my form, which is what I usually do with Access so Ican be sure everything is where it needs to be pointing.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim connetionString As String
Dim objConn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;" & "Data Source=C:\popsCatering\popsCatering.db") Dim objCmd As New OleDb.OleDbCommand("INSERT INTO personalInfo (Name) VALUES ('test')", objConn) objConn.Open()
[code]....
when i try to debug i get this error:
OleDbException was unhandled Could not find file 'C:popsCateringpopsCatering.db'.
however i'm confident that the file exists and that the path is correct?
Dim con As New System.Data.SqlClient.SqlConnection con.ConnectionString = "Server=iraq\sqlexpress ; Database=stats ; Trusted_Connection=True ;" Dim com As New System.Data.SqlClient.SqlCommand com.CommandText = "insert into users values('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "')"
[Code]...
There are new events happen when i adjust the connection string
con.ConnectionString = "Data Source=.SQLEXPRESS;AttachDbFilename=C:Documents and SettingsAdministratorMy DocumentsVisual Studio 2005WebSitesWebSite2App_Datastats.mdf;Integrated Security=True;User Instance=True"
I want to connect to IBM mainframe thru VB.net and run jobs present in mainframe directly through VB.net and view the output back.... how to connect to IBM mainframe and run jobs directly through vb.net....
im trying to connect mysql from vb.net in visual basic 2010. i wanted to query the db just to get 1 return is response to my proID once i click the button. it successfully show connection has been establish but i cant seems to run any sql query on it. what might have been wrong? this is the error i got from immediate window.A first chance exception of type 'System.InvalidOperationException' occurred in MySql.Data.dll.lets assume num is 1001 from the keypress event.
I am a wannabe programmer but quite new, started with VB.net about 1 month ago.I write on this forum because It's the first time that I'm actually stuck. The problem is I cannot find a way to connect to SQL server database I have created and saved earlier on my HD using visual express 2010. I want to find a way to connect using code, not by click and drop. I just hope you won't find my issue too trivial to even answer it.The project is very simple, it just consists of a button that should connect to the db on click.[code]
I have a function that works perfectly when I am connecting to a SQL Server on another machine as shown below:
vb.net
Public Function OpenDatabaseConnection(ByVal DB As String, ByVal Server As String, ByVal UID As String, ByVal Password As String) As Boolean OpenDatabaseConnection = False[code].....
This works every time without an issue. But now I am trying to do some testing on a local version of SQLExpress 2005 on my machine and this fails with the following error:[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
I have tried server names of local, (local), localhost, (localhost), the ip address of my machine. I am using my own user name which has complete rights to the process, so is someone out there able to help me out as to why I would be getting this error? Is something different?
I have this connection string (IP and port number changed)Public ConnectString As String = "Data Source=207.167.717.614,8711;Network Library=DBMSSOCN;Initial Catalog=TableName; User=User; Password=Password;"It does not all a connection, i've opened this port for port fowarding and have unlocked the TCP port of the firewall what else could be wrong?
i have problem with connecting Vb.Net with MSSQL database i have a shared host for windows server and i have to insert each ip trying to connect with the MSSQL database through my program and its impossible to insert each ip to the Whitelist so while i was thinking for a solution an idea came to me that i can change the ip address of any user for the program to a unique ip such as ( 174.162.45.23 ) and i whitelist this ip i do this or a solution for this problem because i cant continue my project with this problem
I can get Visual Studio 2010 Professional to connect to a DB2 UDB database but I don't see any tables. I can hand code the sql and get data returned but I want to be able to drag and drop and use the power of the Studio. I've tried OLE and ODBC connections but I'm still missing something in the set up.
i am trying to connect to 10 mysql servers and get aprox. 5000 rows. If i make the test from local network it works but if i take the test using mysql servers (same version) from different city it shows me the error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding".[code]
How can I connect to a Crystal Reports 4.6 report that connects to SQL Server 2005 as a data source, using Visual Basic?I don't want to specify the connection string in the report. I want to pass the connection from VB. Is there any way to do this?
I am bignner in vb.net and i have develo[ed a small application of vb forms in which i have use a service based sql server databas(.mdf)i want to make its msi installer last time i have made it and after installation application giving error for connecting to sql server
I currently have an internal system that I need to link up to an API offered by a company. I am not looking for hand-holding on this, I really need to understand where and how to get started really.
Here is the developer resource for the API I am looking to work with:[URL]..Further, my systems are currently in ASP/ASP.NET & SQL, and I'm familiar with VB so I would rather stay that direction instead of C#.
Public Sub Connect(ByVal server As String, ByVal port As Integer) Dim IP As IPAddress = IPAddress.Parse(server) Dim EP As IPEndPoint = New IPEndPoint(IP, port)
[Code]....
The socket is declared like this, at the top of the code:
Dim sock As Socket
What is wrong here? It says Object reference not set to an instance of an object, which is a NullReferenceException.