数据库连接字符串大全

日期:2007年8月8日 作者: 查看:[大字体 中字体 小字体]


  •  Trusted Connection:
    "Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;"
       - or -
    "Server=Aron1;Database=pubs;Trusted_Connection=True;"
       (both connection strings produces the same result)
    (use serverName\instanceName as Data Source to use an specifik SQLServer instance)
  •  Connect via an IP address:
    "Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"
    (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default))
  •  Enabling MARS (multiple active result sets):
    "Server=Aron1;Database=pubs;Trusted_Connection=True;MultipleActiveResultSets=true"
    Note! Use ADO.NET 2.0 for MARS functionality. MARS is not supported in ADO.NET 1.0 nor ADO.NET 1.1

    Streamline your Data Connections by Moving to MARS, by Laurence Moroney, DevX.com >>
  •  Attach a database file on connect to a local SQL Server Express instance:
    "Server=.\SQLExpress;AttachDbFilename=c:\asd\qwe\mydbfile.mdf;Database=dbname;Database=dbname;Trusted_Connection=Yes;"
       - or -
    "Server=.\SQLExpress;AttachDbFilename=DataDirectorymydbfile.mdf;Database=dbname;Trusted_Connection=Yes;"
       (use DataDirectory when your database file resides in the data directory)
    Why is the "Database" parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it (it uses the attached database as the default for the connection).
  •  Using "User Instance" on a local SQL Server Express instance:
  • 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] 下一页 


  • 数据库连接字符串大全 相关文章:
  • ·春节新年新春对联大全
  • ·香港三级片名单大全 (包括演员名单)
  • ·经典歇后语大全
  • ·感人情书大全-情书经典
  • ·路由器安全设置详解
  • ·英语格言大全
  • ·古代情诗:伤感浪漫悲伤情诗大全
  • ·CPU型号大全总结
  • ·幻世录2魔神战争 完全物品列表 - 游戏攻略
  • ·男女生英文名大全-给自己起个好名字
  • 数据库连接字符串大全 相关软件
  • ·瑞星杀毒软件 2007 V19.32.12 完全免费版
  • ·火影忍者-忍术全开
  • ·Kaspersky(卡巴斯基) KIS 安全套装 V6.0.2.621 MP2 简体中文正式免激活版
  • ·中国法律法规大全(电子版) V3.3
  • ·生活宝典系列之——家常美食菜谱大全(完整版) V3.0.3
  • ·全能音频转换通 V1.2
  • ·全能格式转换(Konvertor) V3.45.1 汉化版
  • ·魔法门英雄无敌3全集
  • ·《暗黑破坏神2毁灭之王》v1.11地图全开工具EasyMap_v11
  • ·《仙剑奇侠传2》全过程存档
  • 上一篇:httpRuntime 一点经验

    下一篇:ASP.NET应用程序安全性问题

  • 特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作
  • 者.文章版权归文章原始作者所有.对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转
  • 载的文章有版权问题请联系编辑人员,我们尽快予以更正. 转载请注明来源:http://www.hackhome.com
  • 精品推荐

    热点TOP10

    特别推荐