Page 1 of 1

connect to sql server

Posted: Mon Mar 16, 2009 10:15 am
by paracelsus
I tried an other code:

Code: Select all

Dim connetionString As String = "Data Source=ServerName;Initial Catalog=posta;"
Dim connection As SqlConnection = New SqlConnection(connetionString)
Dim command As SqlCommand
Dim adapter As New SqlDataAdapter
Dim ds As New DataSet
Dim i As Integer
Dim sql As String

connection.Open()
If running got to the "connection.Open()" line, I got the following error message:

Declaration expected. (BC30188) - C:\Documents and Settings\bbako\Desktop\posta\posta1\posta1\Recording1.vb:30

Posted: Mon Mar 16, 2009 11:09 am
by Support Team
Please, post only Ranorex specifc questions in this forum. It's important to understand that we cannot support questions that do not relate to the Ranorex framework.

Thanks!

Regards,
Alex
Ranorex Support Team