|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 6,657,
Visits: 5,680
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:29 PM
Points: 182,
Visits: 952
|
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 6,657,
Visits: 5,680
|
|
Honestly, I haven't actually worked Visual Basic Express, just Studio 2005. Google has lots of information about SQL Server Express and the SMO object, but I can't seem to find anything about using SMO with Visual Basic Express. Since SMO is supposed to be included with SQL Server Express, though, and since SQL Express is supposed to be usable with VB Express, I would say "yes" with a caveat. As long as you can create the appropriate references, import the SMO objects and are using Visual Basic Express 2005, that you should be able to do this project using that tool. Now you've got me wondering, though. I'm going to have to download the Express version and give it a whirl. @=)
Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA
Webpage: http://www.BrandieTarvin.net LiveJournal Blog: http://brandietarvin.livejournal.com/ On LinkedIn!, Google+, and Twitter.
Freelance Writer: Shadowrun Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, December 11, 2008 2:47 AM
Points: 81,
Visits: 35
|
|
Useful article. A few typos in the code though maybe?
Module CreateInitialConnection Public ProdServer As New Server() Public ProdConn As ServerConnection [...]
should read (note line break)
Module CreateInitialConnection Public ProdServer As New Server() Public ProdConn As ServerConnection [...]
and ImportsMicrosoft.SqlServer.Management.Smo Imports Microsoft.SqlServer.Management.Common
should read Imports Microsoft.SqlServer.Management.Smo Imports Microsoft.SqlServer.Management.Common
Also, as a vb.net newbie I don't know if this is required in all cases but I got a failure every time I tried to run the code until I went into Project Properties -> Security and enabled "Enable ClickOnce Security Settings" and checked "This is a full trust application"
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 6,657,
Visits: 5,680
|
|
Good catch on the typos! Thanks for pointing them out. I apologize for not mentioning the Security Settings. I re-create this project 3 times to make sure my code worked consistantly and don't remember setting those two properties. But when I went back and checked, sure enough, they were there and they were checked. And it isn't a default setting on my Visual Studio, either. So, that is definitely my bad. Sorry for the confusion. I take it you finally got this working?
Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA
Webpage: http://www.BrandieTarvin.net LiveJournal Blog: http://brandietarvin.livejournal.com/ On LinkedIn!, Google+, and Twitter.
Freelance Writer: Shadowrun Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, February 15, 2013 4:00 AM
Points: 11,
Visits: 49
|
|
Nice and useful article.
Is it possible to take backup in any other drives or specific location other the default sql backup folder.
how to configure the specific location?
Please help me to do this.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 6,657,
Visits: 5,680
|
|
I'm not quite sure I understand the question.
Are you saying you want to save SQL Database backups to a different location? Or that you want to pull non-SQL Database backups somewhere?
Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA
Webpage: http://www.BrandieTarvin.net LiveJournal Blog: http://brandietarvin.livejournal.com/ On LinkedIn!, Google+, and Twitter.
Freelance Writer: Shadowrun Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 4:11 PM
Points: 1,033,
Visits: 2,593
|
|
Good article, Brandie. I appreciated the steps to create the MSI file - I've written a lot of SMO but have never taken the time to create the MSI. Thanks for the how-to.
Tim Mitchell SQL Server MVP www.TimMitchell.net twitter.com/Tim_Mitchell
|
|
|
|