混合身份登录:
Data Source=YHB-PC\SQLSERVER2008;Initial Catalog=MyTest;Persist Security Info=True;User ID=sa;Password=yhb@163
//使用Data Source=(local)也行
windows登录:data source=.\sqlexpress;database=csdnnews;integrated security=true
连接SQLExpress:
Data Source=.\SQLEXPRESS;AttachDBFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User Instance=True