摘要:
SQLserver,确有些难度,自带的工具都无法完成这个操作。经过查证资料可以通过写一个存储过程来完成这个操作。 存储过程如下:SET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GOif exists(select 1 from sysobjects whe... 阅读全文
摘要:
using System.Data; //引用命名空间using System.Data.SqlClient;SqlConnection con = new SqlConnection("server=(local);database=sq_ncxhdata;uid=sa;Pwd=zhongshuangqian"); SqlDataAdapter msda = new SqlDataAdapter("select * from UserInfo", con); DataSet ds = new DataSet(); msda.Fill(ds); con. 阅读全文