This code snippet below gives me a warning underline on this piece of code "CREATE DATABASE " & datasetnmTB.
The warning message is:
Operator '&' is not defined for types 'String' and 'System.Windows.Forms.Text
I read through similar errors in the knowledge base but haven't been able to successfully overcome this.
Dim sql As String = "CREATE DATABASE " & datasetnmTB & " ON PRIMARY" + "(Name=test_data, filename = 'C:\program files\maximum insights - cleaner\dataset\mydb_data.mdf', size=3," + "maxsize=5, filegrowth=10%)log on" + "(name=mydbb_log, filename='C:\program files\maximum insights - cleaner\dataset\" & datasetnmTB & "_log.ldf',size=3," + "maxsize=20,filegrowth=1)"