|
-
Jul 12th, 2012, 01:40 AM
#1
Thread Starter
New Member
Connecting to a remote SQL database
Hey, not sure where to post it on here but sorry if it's in the wrong spot.
Anyway, I am trying to connect to a SQL database through a visual basic app.
I can't even get it to connect, any idea on what could be wrong?
It just hangs and then after a minute closes.
Here is what I have,
Code:
Dim oSqlConn As New SqlConnection
oSqlConn.ConnectionString =
"Data Source=118.139.179.54;" & _
"Initial Catalog=gunderak;" & _
"User ID=gunderak;" & _
"Password=XXXXXXXX"
oSqlConn.Open()
Cheers.
Last edited by gunderak; Jul 12th, 2012 at 01:51 AM.
-
Jul 12th, 2012, 01:43 AM
#2
Thread Starter
New Member
Re: Connecting to a remote SQL database
Also does anyone have any idea how to actually do query's such as insert or drop etc?
Last edited by gunderak; Jul 12th, 2012 at 01:50 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|