Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static SqlConnection GetCONN()
- {
- return new SqlConnection(@"Data source = .\Mihajlo; Initial catalog = ZakazivanjePregledaNaPoliklinici; User = sa; Password = mihajlosql");
- }
- public static SqlCommand GetCMD()
- {
- SqlCommand cmd = new SqlCommand();
- cmd.Connection = GetCONN();
- cmd.CommandType = CommandType.StoredProcedure;
- return cmd;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement