' Create the Connection and Recordset objects.
Set conn = New ADODB.Connection
Set rs = New ADODB.Recordset
Dim val As String
val = Range("B5").Value
' Open the connection and execute.
conn.Open sConnString
Dim item As String
item = "INSERT INTO [IndustrialComp].[dbo].[Header]("
item = item & " [server_name] "
item = item & " )Values("
item = item & " '" & val & "')"
conn.Execute item
' Create the Connection and Recordset objects.