示例#1
0
        private bool TesKoneksi(string Server, string Database, string UserId, string Password, out string pesanError)
        {
            pesanError = string.Empty;
            bool isSuccess = false;

            SqlCmdBuilder cmd = new SqlCmdBuilder(tbServer.Text, tbDB.Text, tbUser.Text, tbPassword.Text);

            cmd.TestConnection(out pesanError);
            if (string.IsNullOrEmpty(pesanError))
            {
                isSuccess = true;
            }

            return(isSuccess);
        }