当前位置: 代码迷 >> Web开发 >> 请问一下c#里这两个连接字符串有什么区别啊
  详细解决方案

请问一下c#里这两个连接字符串有什么区别啊

热度:101   发布时间:2012-03-11 18:15:39.0
请教一下c#里这两个连接字符串有什么区别啊 - Web 开发 / 其他
请教一下高手。我在c#里写连接字符串通常会有两种写法:
  1:server=localhost;uid=sa;pwd=;database=NorthWind;
  2:   data   source=localhost;initial   catalog=NorthWind;uid=sa;pwd=;
  我弄不清这两种写法在使用中有什么区别。请指教


------解决方案--------------------
没有什么区别,两种写法而已