Question : Load updates from Sql text files

Salam

I have updated files in sql server files (.sql) , that I want from within my vb application to loaded into sql database directly. How Can I do That.

Answer : Load updates from Sql text files

You can use the SQLCommand object to run the query. An example is here

Dim dbcon As New SQLClient.SQLConnection(connectionstring)
dbcon.Open
Dim dbcmd As New SQLClient.SQLCommand
dbcmd.connection = dbcon
dbcmd.commandtext = "your sql query here"
dbcmd.executenonquery

dbcmd.dispose
dbcon.dispose
Random Solutions  
 
programming4us programming4us