|
-
May 2nd, 2002, 09:20 AM
#1
Thread Starter
Fanatic Member
Cannot Open SQL Server
I hava this sentence
With Reporte
.ReportFileName = strRuta(3) & "Ganadores.rpt"
.Action = 0
End With
a) I use crystal and i can see data on the report
b) The Table has data
c) In my APP i open the server, the database and work with tables (specially with the one that the report use), see data, modify,etc.
d) Why, why when i run the sentece above i got the following error: CANNOT OPEN SQL SERVER
-
May 2nd, 2002, 09:30 AM
#2
can i please have your code that you are using to connect to the database to fill your report with data?
-
May 2nd, 2002, 09:38 AM
#3
Thread Starter
Fanatic Member
Private Sub LeerInicio()
strRuta(3) = LeerIni("Path", "Reports", App.Path "\concurso.ini")
txtservidor = LeerIni("DataBase", "Server", App.Path "\concurso.ini")
txtdb = LeerIni("DataBase", "DB", App.Path & "\concurso.ini")
End Sub
Private Sub Conexion1()
Call LeerInicio
sqlstring = "Provider= SQLOLEDB;" _
& "Data Source=" & txtservidor & ";" _
& "Initial Catalog= " & txtdb & ";" _
& "UID=concurso;" _
& "PWD=concurso;" _
& "Connect Timeout=35;"
Set cnCaribe = New ADODB.Connection
cnCaribe.Open sqlstring
cnCaribe.Execute "SET QUOTED_IDENTIFIER ON"
End Sub
-
May 2nd, 2002, 09:40 AM
#4
are you having a problem connecting to your database via a crystal report? or via ADO for a recordset?
-
May 2nd, 2002, 09:47 AM
#5
Thread Starter
Fanatic Member
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
|