Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. //DB.h
  2. #pragma once
  3. using namespace System;
  4. using namespace System::Data;
  5. using namespace System::Data::SqlClient;
  6.  
  7. ref class DB
  8.    
  9. {
  10. public:
  11.     DB(void);
  12.  
  13.        
  14.     static const String ^ConnString = "Data Source=" + host + ";" +
  15.                                       "Initial Catalog=cpro;" +
  16.                                       "User Id=" + username + ";" +
  17.                                       "Password=" + password + ";" +
  18.                                       "Connect Timeout=10;";
  19.                            
  20. private:
  21.     static const String ^username = "cpro";
  22.         static const String ^password = "cpro12345";
  23.     static const String ^host     = "10.0.0.100";
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement