运行程序时出现系统错误 [英] System error While run the Program

查看:92
本文介绍了运行程序时出现系统错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Visual Studio 2010中运行应用程序时,系统抛出错误,即无法启动程序http://localhost:
提供解决此问题的方法

when i run the application in visual studio 2010, the system throws a error i.e., unable start a programe http://localhost:
give the solutions to this problem

推荐答案

使用 Sql创建表 [ ^ ]语句:
Use the Sql Create Table[^] statement:
SqlCommand com = new SqlCommand("CREATE TABLE MyTableName(" +
                                "iD int NOT NULL, " +
                                "name nchar(10) NOT NULL)", con);
com.ExecuteNonQuery();


在这里看看:

http://www.davidhayden.com/blog/dave/archive/2006/01/27/2775.aspx [ ^ ]
Take a look here :

http://www.davidhayden.com/blog/dave/archive/2006/01/27/2775.aspx[^]


这篇关于运行程序时出现系统错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆