connect to sql server

Ranorex Studio, Spy, Recorder, and Driver.
paracelsus
Posts: 25
Joined: Thu Feb 26, 2009 3:21 pm

connect to sql server

Post by paracelsus » Mon Mar 16, 2009 10:15 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Mon Mar 16, 2009 11:09 am

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