资源简介
该资源为数据库课程设计,内有存储过程,功能比较强大。。。

代码片段和文件信息
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;
using System.Diagnostics; // 任务管理程序处理引用
namespace studentsystem
{
public partial class AcademicStatus : Form
{
private SqlConnection myconn;
public AcademicStatus()
{
myconn = new SqlConnection(studentsystem.database.Sqlconnection.connection);
InitializeComponent();
}
private void scno_TextChanged(object sender EventArgs e)
{
myconn.Open();
SqlCommand cmd = new SqlCommand(““myconn);
string sql=“select * from student“;
cmd.CommandText = sql;
if (null!=cmd.ExecuteScalar())
{
sql = “select SUM(所得学分)from year1 where 学号=‘“ + scno.Text.Trim() + “‘group by 学号“;
cmd.CommandText = sql;
if (null!=cmd.ExecuteScalar())
{
grade1.Text = cmd.ExecuteScalar().ToString()+“ 分“;
}
else grade1.Text = “0 分“;
sql = “select SUM(所得学分)from year2 where 学号=‘“ + scno.Text.Trim() + “‘group by 学号“;
cmd.CommandText = sql;
if (null != cmd.ExecuteScalar())
{
grade2.Text = cmd.ExecuteScalar().ToString() + “ 分“;
}
else grade2.Text = “0 分“;
sql = “select SUM(所得学分)from year3 where 学号=‘“ + scno.Text.Trim() + “‘group by 学号“;
cmd.CommandText = sql;
if (null != cmd.ExecuteScalar())
{
grade3.Text = cmd.ExecuteScalar().ToString() + “ 分“;
}
else grade3.Text = “0 分“;
sql = “select SUM(所得学分)from year4 where 学号=‘“ + scno.Text.Trim() + “‘group by 学号“;
cmd.CommandText = sql;
if (null != cmd.ExecuteScalar())
{
grade4.Text = cmd.ExecuteScalar().ToString() + “ 分“;
}
else grade4.Text = “0 分“;
string s=null;
sql = “select 姓名 from grade where 学号=‘“ + scno.Text.Trim() + “‘“;
cmd.CommandText = sql;
if (null != cmd.ExecuteScalar())
{
s = “姓名: “ + cmd.ExecuteScalar().ToString() + “ “;
}
sql = “select SUM(所得学分)from grade where 学号=‘“ + scno.Text.Trim() + “‘group by 学号“;
cmd.CommandText = sql;
if (null != cmd.ExecuteScalar())
{
cmd.CommandText = sql;
string bs = cmd.ExecuteScalar().ToString();
in
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5039 2010-01-11 21:38 数据库课程设计\studentsystem\Backup\studentsystem\AcademicStatus.cs
文件 8418 2010-01-11 21:15 数据库课程设计\studentsystem\Backup\studentsystem\AcademicStatus.Designer.cs
文件 5814 2010-01-11 21:15 数据库课程设计\studentsystem\Backup\studentsystem\AcademicStatus.resx
文件 2314 2010-01-10 03:01 数据库课程设计\studentsystem\Backup\studentsystem\AddClass.cs
文件 6333 2010-01-10 03:01 数据库课程设计\studentsystem\Backup\studentsystem\AddClass.Designer.cs
文件 5814 2010-01-10 03:01 数据库课程设计\studentsystem\Backup\studentsystem\AddClass.resx
文件 2099 2010-01-11 09:57 数据库课程设计\studentsystem\Backup\studentsystem\AddCourse.cs
文件 8013 2010-01-11 09:43 数据库课程设计\studentsystem\Backup\studentsystem\AddCourse.Designer.cs
文件 5814 2010-01-11 09:43 数据库课程设计\studentsystem\Backup\studentsystem\AddCourse.resx
文件 2517 2010-01-11 09:25 数据库课程设计\studentsystem\Backup\studentsystem\AddCS.cs
文件 8324 2010-01-11 09:23 数据库课程设计\studentsystem\Backup\studentsystem\AddCS.Designer.cs
文件 5814 2010-01-11 09:23 数据库课程设计\studentsystem\Backup\studentsystem\AddCS.resx
文件 2629 2010-01-13 02:48 数据库课程设计\studentsystem\Backup\studentsystem\AddGrade.cs
文件 8167 2010-01-11 09:36 数据库课程设计\studentsystem\Backup\studentsystem\AddGrade.Designer.cs
文件 5814 2010-01-11 09:36 数据库课程设计\studentsystem\Backup\studentsystem\AddGrade.resx
文件 2535 2010-01-09 22:09 数据库课程设计\studentsystem\Backup\studentsystem\AddMajor.cs
文件 8289 2010-01-09 15:55 数据库课程设计\studentsystem\Backup\studentsystem\AddMajor.Designer.cs
文件 5814 2010-01-09 15:55 数据库课程设计\studentsystem\Backup\studentsystem\AddMajor.resx
文件 1981 2010-01-09 15:17 数据库课程设计\studentsystem\Backup\studentsystem\AddRoles.cs
文件 7847 2010-01-08 19:42 数据库课程设计\studentsystem\Backup\studentsystem\AddRoles.Designer.cs
文件 5814 2010-01-08 19:37 数据库课程设计\studentsystem\Backup\studentsystem\AddRoles.resx
文件 2011 2010-01-10 20:59 数据库课程设计\studentsystem\Backup\studentsystem\AddSchools.cs
文件 6522 2010-01-09 11:19 数据库课程设计\studentsystem\Backup\studentsystem\AddSchools.Designer.cs
文件 5814 2010-01-09 11:19 数据库课程设计\studentsystem\Backup\studentsystem\AddSchools.resx
文件 3562 2010-01-09 02:07 数据库课程设计\studentsystem\Backup\studentsystem\AddUser.cs
文件 10289 2010-01-09 02:07 数据库课程设计\studentsystem\Backup\studentsystem\AddUser.Designer.cs
文件 5814 2010-01-09 02:07 数据库课程设计\studentsystem\Backup\studentsystem\AddUser.resx
文件 1092 2010-01-12 20:34 数据库课程设计\studentsystem\Backup\studentsystem\app.config
文件 1812 2010-09-22 22:31 数据库课程设计\studentsystem\Backup\studentsystem\bin\Debug\studentsystem.application
文件 422912 2010-09-22 22:31 数据库课程设计\studentsystem\Backup\studentsystem\bin\Debug\studentsystem.exe
............此处省略429个文件信息
相关资源
- sqlserver学习ppt 全套共18个
- 门禁系统论文及数据库sqlserver2005数据
- 企业人事管理系统【SQLServer数据库+课
- 数据字典导出工具 导出SqlServer数据库
- 安装SQLServer 2008 R2安装详细图文教程
- SQLServer2008R2简体中文版(64位)
- SQL Server 2000 绿色版
- sql server 2012 R2企业版安装光盘ISO
- SqlServer+ServHA Cluster双机热备配置实战
- 易语言SQLserver数据库操作例程源码
- SqlServer日志恢复数据工具
- 数据库系统概念第六版大学模式数据
- sqlserver图片导出工具
- Qt实现的一个简单的学生学籍管理系统
- 深入解析SQL SERVER 2008
- 数据库系统概论实验报告
- SQL Server数据挖掘与商业智能基础及案
- Microsoft SQL Server 2008技术内幕T-SQL语言
- SQL.Server.2005.技术内幕四部中文版 PD
- Delphi实现excel和SQLserver数据的导入导出
- MSSQL数据库查看器
- sqldecryptor_3.0.8.rar
- Microsoft SQL Server 2008技术内幕:T-SQL查
- 物料管理系统
- sqlos.dll和sqlservr.exe win10安装sql server
- SqlServer智能提示插件-SQLPrompt
- 数据库课程设计-学生信息管理系统
- QT实现车辆管理系统,数据库使用SQ
- 实验2:安全性语言实验
- Northwind+Pubs+sqlserver+2008+2012+2014
评论
共有 条评论