c# - Restore a Database Programatically (SQL Server) -


i found link shows great example of backing , restoring sql server database. however, sql server uses windowsauthentication , not require username , password. able this, turned line srvconn.loginsecure = false; srvconn.loginsecure = true;

i expecting connect succesfully server. however, example returns exception saying unable connect server.

can me please? have learn application me able apply same concept project i'm working on. thank much.

first of if want enable remote connection server (i'm not sure if you're after), try this: http://support.microsoft.com/kb/914277 . want make sure mixed authentication option enabled.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -