C#和sql server 2000组合编写的登陆框!
来源:互联网 发布:淘宝交纳保证金在哪里 编辑:程序博客网 时间:2024/06/13 03:50
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string A=textBox1 .Text ;
string B=textBox2 .Text ;
SqlConnection sqlc = new SqlConnection("server=.;uid=sa;pwd=sa;database=pubs");
sqlc.Open();
string str = "select * from jobs where min_lvl=" + A + "and max_lvl=" + B;
SqlCommand C= new SqlCommand(str, sqlc);
SqlDataReader DR = C.ExecuteReader();
if (DR.HasRows)
{
MessageBox.Show("您登陆成功!");
}
else
{
MessageBox.Show("您登陆失败!");
}
sqlc.Close();
}
}
}
- C#和sql server 2000组合编写的登陆框!
- Sql Server调用C#编写的DLL
- Sql Server调用C#编写的DLL
- C#中用windows认证登陆SQL Server的方法
- C#和SQLCLR为SQL Server编写用户定义函数,
- C# 编写SQL SERVER 2005 的存储过程
- C# 编写SQL SERVER 2005 的存储过程
- 使用C#编写SQL Server的扩展存储过程
- Sql Server的登陆方式
- SQL Server 2000存储过程的编写
- Asp.Net+Sql Server之C#编写的操作Sql Server存储过程的类
- c#登陆界面的判定和时间限定,SQL
- Win7下SQL Server身份验证登陆和SA登陆方式均无效的解决方案
- SQL Server存储过程的编写和优化措施
- easyui 编写的登陆框
- SQL SERVER SA 无法登陆的解决方法.
- sql server 2005登陆模式的转换
- SQL Server 2014 登陆遇到的问题
- Hangman!!!
- 《Erlang程序设计》学习笔记-第8章 并发编程
- dom4j解析XML简单例子
- SET协议的工作流程
- 今天开始这次的戒烟。
- C#和sql server 2000组合编写的登陆框!
- .net局部刷新
- 高性能技术之我想-----浪潮倚天发布有感
- 做程序其实可痛苦的了......
- 如何验机?IBM水货笔记本验机流程
- windows 2003 server下安装svn+apache+ssl
- 两大主流宽带接入技术的应用[ZT]
- 技术与需求的碰撞
- SUN 公司的培训