Tag: sql server 2012 express

如何部署使用sql server express 2012和crystal report开发的C#windows表单应用程序

我在Microsoft Visual Studio 2013中开发了一个应用程序.Net Framework 4.5。 我使用的DBMS是sql server 2012 express,用于报告的是Crystal报告13 我想创建一个安装文件,可以在客户端计算机上安装.net框架,sql server和crystal报表。 此设置应该是脱机和静默的 。 我使用了一次点击但是当我选择“下载文件与我的应用程序位置相同”时它不起作用。 我的意思是离线设置无法单击一次。 其次,没有选择我需要安装软件的位置。 我知道还有其他问题与此类似。 但我需要在上述条件下提供具体帮助。 请描述如何为部署项目创建此类型的单一和独立安装文件

将DataTable作为参数发送到存储过程

我正在尝试使用c#,。net 2.0和SQLServer 2012 Express将DataTable发送到存储过程。 这大致就是我正在做的事情: //define the DataTable var accountIdTable = new DataTable(“[dbo].[TypeAccountIdTable]”); //define the column var dataColumn = new DataColumn {ColumnName = “[ID]”, DataType = typeof (Guid)}; //add column to dataTable accountIdTable.Columns.Add(dataColumn); //feed it with the unique contact ids foreach (var uniqueId in uniqueIds) { accountIdTable.Rows.Add(uniqueId); } using (var sqlCmd = new SqlCommand()) { […]