添加,更新和删除问题 [英] problem with add,update and delete

查看:81
本文介绍了添加,更新和删除问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我使用c#和sql server数据库制作程序,主要过程添加,更新和删除
一切正常,但是当我发布项目并在另一台PC中进行设置时,然后返回在c#中的程序中进行编辑
函数add不添加到数据库,更新不更新数据库中的数据,也删除并且没有错误
我不知道这是什么错.

hi all
i making program using c# and sql server database,the main process add,update and delete
all the process ok but when i make publish for project and setup in another pc then return to edit in program in c#
the function add do not add to database and the update do not update in data in database also delete and no error
i do not know what is the wronge

推荐答案

检查您与数据库的连接字符串,并确保您输入正确的服务器名称,即您的PC名称将从计算机更改到计算机上,因此由于错误的数据库路径而出现错误.
Check you connection string to the database and make sure that you write the correct server name i.e. your pc name will change from computer to computer and therefore you are getting the errors due to incorrect path to database.


这篇关于添加,更新和删除问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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