求大神帮忙看一下错误
//帮我看看哪里出错了,谢谢,根本无法运行!using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using system.Data.SqlClient;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
//连接字符串
private const string strConn=@"Data Source=.;Initial catalog=yangjie;"+"User ID=sa'pwd=Yj666888";
//创建数据库连接
Public bool checkuserInfo(string USerName,string pwd,ref string strMsg){
SqlConnection conn=new SqlConnection(strConn);
try{
//创建Sql语句
string strSql="select count(*) from yangjie;";
conn.Open();
//创建command 命令
SqlCommand comm=new SqlCommand(strconn,conn);
int iret=(int)comm.ExecuteScalar();//强制类型转换 转换成int
}
}
}
}
}