SQL statement to VB code

Tyecom

Well-known member
Joined
Aug 8, 2007
Messages
78
Programming Experience
Beginner
Can someone help me with converting the following SQL statement to VB.Net code:

BACKUP DATABASE eFB TO DISK = 'D:\EFB\EFBSave.bak'

WITH DIFFERENTIAL;

I have a .Net application that has a DataGridView and I want to back up the SQL Database. As you can see, I have the SQL statement, but don't know how to correctly convert it into VB.Net code.

I believe the statement will begin with the Dim statement. Is this correct? If you are willing, please provide a brief explanation of the statement. I'm really trying to understand SQL strings.

Thank you in advance
 
Back
Top