Guest User

Untitled

a guest
Aug 31st, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. // Attempt # 1
  2. {
  3. "ConnectionStrings": {
  4. "TestingDatabase": "Server=localhost:1433\\Database=<YourDatabaseName>;User=SA;Password=<StrongPasswordYouSet>;"
  5. }
  6. }
  7.  
  8. // Attempt #2 - Specify sqlexpress as database
  9. {
  10. "ConnectionStrings": {
  11. "TestingDatabase": "Server=localhost:1433\\sqlexpress;Database=<YourDatabaseName>;Trusted_Connection=True;User=SA;Password=<StrongPasswordYouSet>;"
  12. }
  13. }
  14.  
  15. // Attempt #3: Specify port with a comma instead of a colon
  16. {
  17. "ConnectionStrings": {
  18. "TestingDatabase": "Server=localhost,1433\\Database=<YourDatabaseName>;User=SA;Password=<StrongPasswordYouSet>;"
  19. }
  20. }
  21.  
  22. // Attempt # 4: Use both Catalog and Database arguments to specify the
  23. {
  24. "ConnectionStrings": {
  25. "TestingDatabase": "Server=localhost,1433\\Catalog=<YourDatabaseName>;Database=<YourDatabaseName>;User=SA;Password=<StrongPasswordYouSet>;"
  26.  
  27. }
  28. }
Add Comment
Please, Sign In to add comment