Click here to Skip to main content
15,898,940 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ToolTop Control Pin
Eddy Vluggen23-Jun-15 22:52
professionalEddy Vluggen23-Jun-15 22:52 
QuestionAn universal way to backup / Restore database to SQL server from vb.net Pin
satc21-May-15 19:33
satc21-May-15 19:33 
AnswerRe: An universal way to backup / Restore database to SQL server from vb.net Pin
Chris Quinn21-May-15 20:40
Chris Quinn21-May-15 20:40 
GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
satc21-May-15 20:49
satc21-May-15 20:49 
GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
Chris Quinn21-May-15 22:16
Chris Quinn21-May-15 22:16 
AnswerRe: An universal way to backup / Restore database to SQL server from vb.net Pin
Eddy Vluggen22-May-15 2:13
professionalEddy Vluggen22-May-15 2:13 
GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
satc22-May-15 10:37
satc22-May-15 10:37 
GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
Eddy Vluggen23-May-15 4:56
professionalEddy Vluggen23-May-15 4:56 
I'd recommend against using SMO for operations that can be performed using native SQL commands, as it adds a dependency to a specific version of SQL Server. It is also a lot easier to change a SQL-script when there's a need due to difference between versions.

Yes, it is possible to use "all" the SMO libraries, for each different version - but that is definitely not easier; first of all, you'd need to link to various libraries containing the same types and classes, which is something that is usually not done as it creates conflicts.

You could prevent so by loading the library dynamically, using reflection to do what you want - which adds more complexity. Alternative, you decompile the SMO-assemblies and stitch them together into a new one.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
satc23-May-15 18:03
satc23-May-15 18:03 
GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
Eddy Vluggen24-May-15 0:48
professionalEddy Vluggen24-May-15 0:48 
GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
satc24-May-15 8:19
satc24-May-15 8:19 
GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
Eddy Vluggen24-May-15 8:46
professionalEddy Vluggen24-May-15 8:46 
GeneralRe: An universal way to backup / Restore database to SQL server from vb.net Pin
Mycroft Holmes24-May-15 14:22
professionalMycroft Holmes24-May-15 14:22 
Questionalgorithm for balancing chemical equations Pin
tunglamvghy19-May-15 3:44
tunglamvghy19-May-15 3:44 
AnswerRe: algorithm for balancing chemical equations Pin
Sascha Lefèvre19-May-15 3:52
professionalSascha Lefèvre19-May-15 3:52 
RantRe: algorithm for balancing chemical equations Pin
Brian C Hart19-May-15 8:01
professionalBrian C Hart19-May-15 8:01 
QuestionCustom ContextMenu for TextBox doesn't disable items when necessary Pin
satc18-May-15 23:51
satc18-May-15 23:51 
AnswerRe: Custom ContextMenu for TextBox doesn't disable items when necessary Pin
Eddy Vluggen19-May-15 0:12
professionalEddy Vluggen19-May-15 0:12 
AnswerRe: Custom ContextMenu for TextBox doesn't disable items when necessary Pin
Richard MacCutchan19-May-15 0:12
mveRichard MacCutchan19-May-15 0:12 
GeneralRe: Custom ContextMenu for TextBox doesn't disable items when necessary Pin
satc19-May-15 6:40
satc19-May-15 6:40 
GeneralRe: Custom ContextMenu for TextBox doesn't disable items when necessary Pin
Richard MacCutchan19-May-15 7:25
mveRichard MacCutchan19-May-15 7:25 
GeneralRe: Custom ContextMenu for TextBox doesn't disable items when necessary Pin
Sascha Lefèvre19-May-15 7:52
professionalSascha Lefèvre19-May-15 7:52 
GeneralRe: Custom ContextMenu for TextBox doesn't disable items when necessary Pin
satc19-May-15 19:03
satc19-May-15 19:03 
GeneralRe: Custom ContextMenu for TextBox doesn't disable items when necessary Pin
Richard Deeming20-May-15 1:11
mveRichard Deeming20-May-15 1:11 
AnswerRe: Custom ContextMenu for TextBox doesn't disable items when necessary Pin
Terry Dieckmann20-May-15 2:20
Terry Dieckmann20-May-15 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.