how to bulk insert 255 columns from excel to SQL using VBA
问题 I have to bulk insert from Excel to SQL using VBA I have written a function for that, but it is not working due to string max length. Can anyone help? below is the code I have written: Dim cn As Object: Set cn = CreateObject("ADODB.Connection") Dim ProjectName, SourceType As String ProjectName = ThisWorkbook.Sheets("Doorset Schedule").Range("B8") SourceType = "Production Schedule" ''You should probably change Activeworkbook.Fullname to the ''name of your workbook strCon = "Provider=Microsoft