dataset

Serialize/Deserialize Large DataSet

此生再无相见时 提交于 2020-01-05 04:15:33
问题 I have a reporting tool that sends query requests to a server. After the query is done by the server the result is sent back to the requesting reporting tool. The communication is done using WCF. The queried data, stored in a DataSet object, is very large and is usually round about 100mb big. To fasten the transmission I serialize (BinaryFormatter) and compress the DataSet.The transmitted object between the server and reporting tool is a byte array. However after a few requests the reporting

Read Access File into a DataSet

穿精又带淫゛_ 提交于 2020-01-04 18:33:40
问题 Is there an easy way to read an entire Access file (.mdb) into a DataSet in .NET (specifically C# or VB)? Or at least to get a list of tables from an access file so that I can loop through it and add them one at a time into a DataSet? 回答1: Thanks for the suggestions. I was able to use those samples to put together this code, which seems to achieve what I'm looking for. Using cn = New OleDbConnection(connectionstring) cn.Open() Dim ds As DataSet = new DataSet() Dim Schema As DataTable = cn

Read Access File into a DataSet

一曲冷凌霜 提交于 2020-01-04 18:32:32
问题 Is there an easy way to read an entire Access file (.mdb) into a DataSet in .NET (specifically C# or VB)? Or at least to get a list of tables from an access file so that I can loop through it and add them one at a time into a DataSet? 回答1: Thanks for the suggestions. I was able to use those samples to put together this code, which seems to achieve what I'm looking for. Using cn = New OleDbConnection(connectionstring) cn.Open() Dim ds As DataSet = new DataSet() Dim Schema As DataTable = cn

how to bind datasource to a .rdlc report in c#

橙三吉。 提交于 2020-01-04 09:54:19
问题 Friends , I have developed a simple application using c# , it has two rdlc reports i used this below code to bind datasource to report viewer this.reportViewer1.LocalReport.ReportPath = @"C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\reports\reports\Report1.rdlc"; reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("customer", dt.Tables[0])) ; this.reportViewer1.RefreshReport(); But when the report is

Updating and persisting dataset problem

霸气de小男生 提交于 2020-01-04 02:42:20
问题 I think I'm missing sth. trivial here : I want to update a dataset and push it back to the database where it came from, but I am keep getting a : Concurrency violation: the UpdateCommand affected 0 of the expected 1 records. Here's some code producing this error : public static void UpdateNorthWindWithDataset() { string connString = @"Data Source=localhost;Initial Catalog=NorthWind;Integrated Security=SSPI;"; using (SqlConnection conn = new SqlConnection(connString)) { conn.Open(); //

Deleting a row completely from a dataset

笑着哭i 提交于 2020-01-03 16:52:22
问题 I have a remove button on my gridview. On Clicking the remove button , the row should be completely removed from the session. I am currently doing the following : protected void gvMainLog_RowCommand(Object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Remove") { GridViewRow rowSelect = (GridViewRow)(((Button)e.CommandSource).NamingContainer); int rowindex = rowSelect.RowIndex; DataSet ds = ((DataSet)Session["old"]); ds.Tables[0].Rows[rowindex].Delete(); Session["old"] = ds;

Deleting a row completely from a dataset

吃可爱长大的小学妹 提交于 2020-01-03 16:52:07
问题 I have a remove button on my gridview. On Clicking the remove button , the row should be completely removed from the session. I am currently doing the following : protected void gvMainLog_RowCommand(Object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Remove") { GridViewRow rowSelect = (GridViewRow)(((Button)e.CommandSource).NamingContainer); int rowindex = rowSelect.RowIndex; DataSet ds = ((DataSet)Session["old"]); ds.Tables[0].Rows[rowindex].Delete(); Session["old"] = ds;

Split dataframe into two on the basis of date

不想你离开。 提交于 2020-01-03 16:44:11
问题 I have dataset with 1000 rows like this Date, Cost, Quantity(in ton), Source, Unloading Station 01/10/2015, 7, 5.416, XYZ, ABC i want to split the data on the base of date. For e.g. till date 20.12.2016 is a training data and after that it is test data. How should i split? Is it possible? 回答1: You can easily do that by converting your column to pandas to_datetime type and set it as index. import pandas as pd df['Date'] = pd.to_datetime(df['Date']) df = df.set_index(df['Date']) df = df.sort

Split dataframe into two on the basis of date

蓝咒 提交于 2020-01-03 16:42:09
问题 I have dataset with 1000 rows like this Date, Cost, Quantity(in ton), Source, Unloading Station 01/10/2015, 7, 5.416, XYZ, ABC i want to split the data on the base of date. For e.g. till date 20.12.2016 is a training data and after that it is test data. How should i split? Is it possible? 回答1: You can easily do that by converting your column to pandas to_datetime type and set it as index. import pandas as pd df['Date'] = pd.to_datetime(df['Date']) df = df.set_index(df['Date']) df = df.sort

Corpus/data set of English words with syllabic stress information?

筅森魡賤 提交于 2020-01-03 07:27:10
问题 I know this is a long shot, but does anyone know of a dataset of English words that has stress information by syllable? Something as simple as the following would be fantastic: AARD vark A ble a BOUT ac COUNT AC id ad DIC tion ad VERT ise ment ... 回答1: I closest thing I'm aware of is the CMU Pronouncing Dictionary. I don't think it explicitly marks the stressed syllable, but it should be a start. 来源: https://stackoverflow.com/questions/2839548/corpus-data-set-of-english-words-with-syllabic