Hello Again,
I added referance of SQLDMO, but I couldn’t satisfy for listing the SQL Servers by using the Combobox. I will continue to my operations with TEXTBOXes.
I have done the ADO Connection that I wanted to do by the simple way with the Code Block which is shown at the following lines.
Codes
Private Sub CommandButton4_Click()
'TextBox3.Text = "Baglanti Sorgulaniyor ..."
Dim Baglanti As New ADODB.Connection
'Dim KayitSeti As New ADODB.Recordset
Dim Firma As String, Server As String, Database As String, Kullanici; As String, Parola As String
Firma = Format(Sheets("SETUP"

.Range("B5"

, "000"

Server = Sheets("SETUP"

.Range("B1"

.Value
Database = Sheets("SETUP"

.Range("B4"

.Value
Kullanici; = Sheets("SETUP"

.Range("B2"

.Value
Parola = Sheets("SETUP"

.Range("B3"

.Value
'Sorgu = "SELECT CODE,DEFINITION_ FROM LG_" & Format(Sheets("SETUP"

.Range("B5"

, "000"

& "_CLCARD " & "ORDER BY DEFINITION_" & ""
Baglanti.Open "Provider=SQLOLEDB; Data Source=" & Server & "; Initial Catalog=" & Database & "; User ID=" & Kullanici; & "; Password=" & Parola & ";"
'KayitSeti.Open Sorgu, Baglanti
'Cells(8, 1).CopyFromRecordset KayitSeti
'KayitSeti.Close
Baglanti.Close
Set KayitSeti = Nothing
Set Baglanti = Nothing
End Sub
thanks and have a nice day.