Hi
Does anyone know how to connect to a SDE/SQL database. I have tried 2 different ways of connecting to see
ConnStr1 = "SDE:" & GISServer & ",5151,sde," & GISUser & "," & GISPassword & ", sde.ldr." & rs!LayerFileName
ConnStr1 = "SDE:server=" & GISServer & ";Port=5151;DATABASE=" & GISDatabase & _
";User=" & GISUser & ";Password=" & GISPassword
Both do not work and return false when trying to connect
I can connect via MSSQL, however it does not seem to be able to read the projection when using this method. I assume it is because the files required are named as follows: SDE_geometry_columns and SDE_spatial_references and the fields are different to the straight SQL database
ConnStr = "MSSQL:server=" & GISServer & ";DATABASE=" & GISDatabase & _
";UID=" & GISUser & ";PWD=" & GISPassword
strSQL = "Select * from ldr." & rs!LayerFileName
Regards
Colleen Crawford