i had written a code in t-sql that will create a table in sql server and insert data into that by joining two tables already present.
now i am developing a tool in visual basic in which i have to click on a command button and all done.My question is how to add that t-sql code into visul basic command object property text
i had written a code in t-sql that will create a table in sql
Share
I think you’re looking for the SqlCommand.CommandText property and if you look at this method SqlCommand.ExecuteNonQuery you’ll see how to use it.