SqlConnection con = new SqlConnection("Data Source=.\sqlexpress;AttachDbFilename=G:\cpp\Visual C++\WindowsFormsApplication1\WindowsFormsApplication1\Database1.mdf;Integrated Security=True;User Instance=True");
con.Open();
显示无法识别转义字符 是怎么回事儿?
c# sql 显示无法识别转义字符
答案:1 悬赏:10 手机版
解决时间 2021-01-28 19:31
- 提问者网友:捧腹剧
- 2021-01-27 23:27
最佳答案
- 五星知识达人网友:长青诗
- 2021-01-28 00:08
字符串前面加个@
SqlConnection con = new SqlConnection(@"Data Source=.\sqlexpress;AttachDbFilename=G:\cpp\Visual C++\WindowsFormsApplication1\WindowsFormsApplication1\Database1.mdf;Integrated Security=True;User Instance=True");
SqlConnection con = new SqlConnection(@"Data Source=.\sqlexpress;AttachDbFilename=G:\cpp\Visual C++\WindowsFormsApplication1\WindowsFormsApplication1\Database1.mdf;Integrated Security=True;User Instance=True");
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯