omacron
Technical User
- Feb 5, 2002
- 149
Hi
First want to say I am very new to VB (like 6 hours into learning it) and using VB 2010 Express. I need to connect to a MS SQL DB, that is not on my computer. If I use the Data Source Configuration Wizard the only options for the type of Database connection are;
Microsoft SQL Compact 3.5
Microsoft SQL Server Database File
Issue is with both is they do not allow me enter in the server IP/DNS or change to SQL authentication (witch I need to use).
Now doing some quick search I am able to connect to a database on my machine (not the one I need to connect to) with a quick test;
Issue is unless I am greatly mistaken I have to manually program in all data grids (etc...) instead of using the UI. This means a lot more work for me as I have to learn the code not just select it from a right click.
I am assuming its some library that is currently missing from the project but cannot seem to be able to find an answer.
thanks
First want to say I am very new to VB (like 6 hours into learning it) and using VB 2010 Express. I need to connect to a MS SQL DB, that is not on my computer. If I use the Data Source Configuration Wizard the only options for the type of Database connection are;
Microsoft SQL Compact 3.5
Microsoft SQL Server Database File
Issue is with both is they do not allow me enter in the server IP/DNS or change to SQL authentication (witch I need to use).
Now doing some quick search I am able to connect to a database on my machine (not the one I need to connect to) with a quick test;
Code:
Imports System.Data.SqlClient
Public Class Form1
Private sqlString As New SqlConnection("Data Source=localhost;Initial Catalog=StockManagement;Integrated Security=True")
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
sqlString.Open()
MsgBox(sqlString.State.ToString)
sqlString.Close()
End Sub
End Class
Issue is unless I am greatly mistaken I have to manually program in all data grids (etc...) instead of using the UI. This means a lot more work for me as I have to learn the code not just select it from a right click.
I am assuming its some library that is currently missing from the project but cannot seem to be able to find an answer.
thanks