Is there any way to use a specific database based on a certain condition? To clarify, I will give a naive example:
CASE WHEN @dbnum = 1 THEN USE Db1 ELSE USE DefaultDb END
You can do this with IF:
IF @dbnum = 1 USE Db1; ELSE USE DefaultDb;
Source: https://habr.com/ru/post/1746582/More articles:What is the cleanest way to use anonymous functions? - lambdahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1746578/libarchive-reads-too-many-chars-when-extracting-a-file&usg=ALkJrhgOIVMR1NqTKS3UZJ23PQ9rCAeY9ghttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1746579/java-using-multiple-threads-to-paint-simultaniously-on-a-jpanel&usg=ALkJrhhqTRjt08KLrmDTpuxuPa6BkTKC7Qhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1746580/is-there-any-pros-to-duplicate-browserkeyboard-functionality&usg=ALkJrhgQ1wOyv8STV4fSbvNk4DLNi6Jusgwhat launches "new" when a document is published in a document library - documentHow to get all kinds of entities from a GAE server? - google-app-engineHow do you understand the intention to open a web page? - androidHow to use SQL stream for streaming win32 API and WCF streaming support - c #Могут ли возможности GPU влиять на производительность виртуальной машины? - performanceCan I use TempData with Response.Redirect? - asp.netAll Articles