I am using VB 2017 and SQLEpress. I think something is wrong with the code from the button click. Please, I need help with this matter. Thank you in advance.
Code:Imports System.Data.SqlClient Public Class Form1 Private Sub BtnCreateTb_Click(sender As Object, e As EventArgs) Handles BtnCreateTb.Click Call Main() End Sub End Class Module Module1 Sub Main() ' Define your connection string (update this based on your server and database) Dim connectionString As String = ("Server=localhost\SQLEXPRESS;Database=master;Trusted_Connection=True;") ' Define the SQL command to create a new table Dim createTableQuery As String = " CREATE TABLE Employees (




Reply With Quote
