Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > dotnet ado.net > august 2006 > threads for august 1 - 7, 2006

Filter by week: 1 2 3 4 5

Dataset from dynamic sql
Posted by John at 8/7/2006 11:32:49 PM
I'd like to create a typed dataset based on a db-defined structure (ie defined in records in the db, not in metadata!) I tried a stored procedure (SQL Server 2005) that's creating some dynamic sql based on the queried structure, something like: create procedure test as exec ('select c...more >>


Re-Sorting DataTables
Posted by MR at 8/7/2006 10:14:02 PM
How can I re-sort a the rows in a data table? Here is the example: I read a data set that is sorted by probability. Then some algorithm recalculates the probability field in each record.. As a result of the new probability value, the rows very often are no longer sorted. to continue the pr...more >>

Retrieve a list of parameters for an MS Access SPROC/Stored Proced
Posted by Nate. at 8/7/2006 1:31:01 PM
Since System.Data.GetOleDbSchemaTable does not support the querying of SPROC parameters in MDAC 2.7, does anybody know of a work-around? Does anybody know of a specific SQL query that can return the details of sproc parameters?...more >>

formatting dates in queries
Posted by ZenRhapsody at 8/7/2006 12:12:44 PM
BACKGROUND INFO: I'm using the common DbConnection object in my application because the user can have data hosted in Excel, Access, SQL Server, or Oracle. I'm using the common DbProviderFactories.GetFactory(providerName); to get the appropriate factory object for creating a specific connect...more >>

oracle with visual studio 2005
Posted by realin at 8/7/2006 9:46:39 AM
hey guyzz !! actually i had installed Microsoft visual studio 2005 along with Oracle 9i enterprise edition, jus wanted to know how can i connect it thru VS when i makin a project in c #. when i put a namespace using.System.data. ?? then in place of ?? oracle client should come but it does...more >>

Pass GUID parameter
Posted by sjoshi at 8/7/2006 9:01:26 AM
Hello All I'm using OraOLEDB.Oracle provider for accessing Oracle. Now I have a column of GUID type that is stored as RAW in Oracle. How do I pass value/type for that parameter. ?? I was using the type of the parameter as OleDbType.Guid but it fails. My query has this end string pd.oid=? ...more >>

SQLCE DataAdpater.Update says updated but hasn't
Posted by Mike at 8/7/2006 8:45:02 AM
Hi, I have an application running on a Windows Mobile 5.0 device and am using the following code to update tables in a SQL Server Mobile database . For some tables, the following code works fine but for others the database does not get updated. The Update method returns the number of record...more >>

Using SqlBulkCopy with System.Transactions namespace
Posted by Michael Vanhoutte at 8/7/2006 8:30:02 AM
The MSDN document http://msdn2.microsoft.com/en-us/library/tchktcdk.aspx explicitely states that it is possible to use the SqlBulkCopy class with a transaction created using the classes in the System.Transactions-namespace. However, I notice that the SqlBulkCopy constructor only accepts an inst...more >>



System.InvalidCastException
Posted by mbarb5ne NO[at]SPAM hotmail.com at 8/7/2006 7:42:03 AM
Newbie with this stuff. Trying to start small and just read a line in from a database to see what happens. Not even really trying to do anything with it yet. When I try to read in the return statement using GetString, I get a System.InvalidCastException. I thought handling the null case wou...more >>

SqlBulkCopy class problem - Computed Columns
Posted by Sri at 8/7/2006 7:26:02 AM
While using SqlBulkCopy to insert data into a table which has a compupted column it fails, throwing an error about not being able to insert data into a computed column which is understandable, The only way you can insert data into a table with a computed column is by not specifying the column ...more >>

Insert 3 Gb binary file to oracle blob using Ado.net oracleclient
Posted by kapatel NO[at]SPAM sfwmd.gov at 8/7/2006 6:30:05 AM
I was trying to insert 3Gb binary file to oracle 10g BLOB Field using ADO.Net The application uses Oracle Transaction . Now I have tried to read the file using following code (C#) string filePath = aFilePath ; FileStream fls = new FileStream(aFilePath,fileMode.open,FileAccess.Read); byte[ ] ...more >>

VS 2003 & SQL 2005 Data Adapter Error
Posted by Dave Griffiths at 8/7/2006 12:00:00 AM
Hi All Very new to ADO.Net & SQL When I create a data adapter to SQL 2005 server I get the meassages. Generated SELECT Command Generated TABLE Mappings Error creating INSERT command Error creating UPDATE command Error creating DELETE command If I create a data adapter to a SQL 2000...more >>

ANN: VistaDB 3.0 world's first managed SQL database for .NET and C
Posted by Anthony Carrabino at 8/6/2006 10:22:01 PM
VistaDB 3 CTP has been released as the world's first fully managed SQL database engine for Microsoft .NET, Compact Framework, Windows Vista and Mono. Unlike the new SQL Everywhere, .NET developers can use VistaDB 3.0 to build 100% managed WinForms and ASP.NET database applications that run on ...more >>

Connecting forms
Posted by harrypotter at 8/6/2006 6:26:17 AM
I'm a new comer to the vb.net field. & I'm looking for some help on these questions. 01) Is there any limit to the number of form which can add to a certain project ? 02) I want to know how to connect a number of forms, like 1, 2, 3, 4 etc together. I want it to happend when I'm clicking ...more >>

sp_foreign_keys_rowset
Posted by Patrick at 8/6/2006 12:00:00 AM
sp_foreign_keys_rowset Does anyone know how to call this from csharp? I've profiled that the correct sql is going to the server (and it runs in QA) but ADO will not return a DataReader when I know there are results. Any help is MUCH appreciated. Thanks! Patrick ...more >>

Come with us
Posted by omar.abid2006 NO[at]SPAM gmail.com at 8/4/2006 11:52:06 PM
hi, This is the real workgroup of Visual Basic 2005 express goto : http://groups.google.com/group/VB2005 thank you ...more >>

UpdateDB from DataSet
Posted by Al at 8/4/2006 11:45:27 AM
I have this scenario: 1. XML file with schema and data is created from SQL Server tables. XML file contains 6 tables, some of them have rows, some of them are empty. 2. XML file is given to the person with Pocket PC. 3. XML file is used to populate DataSet on the Pocket PC. 4. User adds new ro...more >>

DataRelation / DataSet Question
Posted by corey.burnett NO[at]SPAM gmail.com at 8/4/2006 11:05:51 AM
Here is my situation: I have a .NET application that queries a WebService to get the data for the application. The WebService does not support Joins of any type even though the data in the back end is relational. The WebService only allows you to select data from one table at a time. So I'm t...more >>

WebService fails on Win03 when moved from Win2000 or XP
Posted by Tom at 8/4/2006 2:53:01 AM
Hi, We have a web service (developed in C# framework 1) that run for some time on Windows 2000. Recently we upgraded it to framework 2 and it runs successfully on Windows 2000 and XP. However, we need to run it on new Windows 2003 box and the web service just fails to run. The service ...more >>

Best way to rename column in Access database file
Posted by nvx at 8/4/2006 12:00:00 AM
Hi, I need to rename columns in an Access database file programatically (OLEDB provider). There is a way though (create a new column, copy data from the old column into the new one and delete the old column), but I was wondering if there is a simpler technique. Thanks in advance... With reg...more >>

Row removed from a dataset table is not removed from a database table during update
Posted by nvx at 8/3/2006 6:47:29 PM
Hi, I have a problem with updating a database table bound to a DataGridView. After I fill the DataSet with DataAdapter.Fill(), generate INSERT, DELETE and UPDATE commands using CommandBuilder, remove some rows from the DataSet.Tables["tablename"].Rows collection, call BindingSource.EndEdit() and ...more >>

Timeout - max pool size reached
Posted by tshad at 8/3/2006 5:47:01 PM
I got the following message on my Sql Server 2000: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. I understand what this is when dealing with Web A...more >>

Compare 2 DataSets
Posted by Al at 8/3/2006 4:51:28 PM
I'd like to know if there were any changes in the DataSet which was populated by reading XML file. 6 DataTables with data or just structure with no data inside of it. I think about this scenario: I create 2 datasets and populate both from the same XML file. Then the first one is used as Data...more >>

VS2005: TableAdapter - need to get the underlying DataAdapter
Posted by Jim Rand at 8/3/2006 3:27:57 PM
In VS 2005, table adapters are used as wrappers to underlying data adapters. Dragging the tables onto the dataset designer surface automatically creates table adapters. Unlike the data adapter, the table adapter throws no events such FillError, RowUpdated or RowUpdating. In VS 2003, you ...more >>

Typed DataSet Column Casting
Posted by J055 at 8/3/2006 2:35:53 PM
Hi I have a created a typed DataSet (VS 2005). A couple of columns return sql tinyint types which ideally need to be cast to predefined enums for use throughout the application. It seems that it would be good to do this in a partial class of the typed DataTable. I would also need to convert...more >>

.Net DB2 Connect
Posted by Jim Heavey at 8/3/2006 1:45:02 PM
I have now found and installed the drivers for db2.net. I can see that there is an entry in WINNT/Assemblies for "IBM.Data.DB2". But when I go into Visual Studio to create a reference to this assembly, it does not show up in the ".Net" componets. I am assuming that I must create a reference...more >>

ADOX in .Net
Posted by Solel Software at 8/3/2006 4:43:01 AM
Hi, I am attempting to change an Access 2000 mdb's field's AllowZeroLength property to true using .Net 1.1 SP1 and having trouble getting it to work. It seems that I am not adding the updated column to the catalog, and am not sure how to do this. Any help would be greatly appreciated! ...more >>

Error 'General network error. Check your network documentation.' in adapter.fill
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 8/2/2006 9:44:23 PM
Hi all, I am filling sqldataadapter by executing one stored procedure. But while calling adapter.fill i am getting error 'General network error. Check your network documentation.'. This application is working 2-3 times and then starts giving m error. I am not getting why this is happenin...more >>

Create MDB in ASP.NET 2
Posted by Edwin Knoppert at 8/2/2006 5:20:15 PM
I need to create an empty MDB from code. Can't find it on google. ...more >>

Expression Column Or SQL Query
Posted by Steve, Putman at 8/2/2006 4:09:10 PM
Hi Gurus, Keeping it short - Suppose I have a Table with two columns- Column1 and Column2, and it got lots of data. Now I want to create another column(Column3) joining Column1 and Column2. I can do it in two ways, 1. Doing SQL "Select Column1+Column2 as [Column3] From TableName". 2. Or add...more >>

Silly question .. "typed" connection strings
Posted by Earl at 8/2/2006 2:05:29 PM
I've started using these typed datasets, but of course, they automatically assign my dev. server to be the server name. However, I am using some XML methods to save and retrieve the connection string, so that I can deploy the app anywhere. The silly question is how to "redirect" the string fro...more >>

CAST,CONVERT,CELING,FLOOR DOES NOT WORK
Posted by Shiplu at 8/2/2006 9:08:08 AM
Hello all, select CAST(35.340 AS INT) the above sql doesn't work in ADO.NET, any idea ? Other functions mentioned in the subject does not work also I am handling a CSV file using ADO.NET and C#. I have posted previously but no answer. I need it. PLEASE HELP ! ...more >>

how to generate crystal report for remote database
Posted by sai at 8/2/2006 3:59:59 AM
hi all, i am new to crystal reports.I am developing an application of remote database viewer,Front-end VB.NET Backend MS.Access. here the database schema and database tables are same for all the databases in remote machines.I need to generate the crystal report for the data base so...more >>

Pooling Connection String
Posted by ajay.kalyan NO[at]SPAM gmail.com at 8/1/2006 1:17:27 PM
I am trying to implement connection pooling on web application and was wondering what connection string I should use. I currently use: Data Source=xxx.com,25000; Initial Catalog=xxx; UID=user;pwd=password Should I add anything to this connection string i.e pooling=true, max pool size, min p...more >>

SqlBulkCopy class problem - Timeout expired!
Posted by CleverMindworks at 8/1/2006 8:50:32 AM
So, apparently there is a known bug: http://support.microsoft.com/?kbid=913177 A have applied the patch, and yet I'm now consistently getting the 'timeout expired' error. The symptoms match the article, yet the patch didn't seem to fix anything. Does anyone have any insight into this proble...more >>

Generated strongly typed dataset - null date column - exception when Fill or GetData called on table adaptor
Posted by rharding NO[at]SPAM gmail.com at 8/1/2006 8:16:10 AM
Hi, Does anyone have a workaround for the this: This is all 2.0 vs 2005 - I generate a strongly typed dataset and table adaptor in vs2005 but the oracle table its based on allows a date column to be null - this shows up as "AllowDBNull = true" in the column properties but when I call Fill o...more >>

Problem with Count Expression and DataTable
Posted by VTOcin at 8/1/2006 6:44:44 AM
Hello, I created an XML file using the DataTable.WriteXML with the follwing format: Dim ACES_FLIGHT_SCHEDULE As New DataTable("ACES_FLIGHT_SCHEDULE") 'Add columns to the ACES FLight Schedule Table ACES_FLIGHT_SCHEDULE.Columns.Add("Origin_Airport_ID", Type.GetType("System.String")) ACES_FL...more >>

Table Adapter and Xml DataType
Posted by Martyn Fewtrell at 8/1/2006 6:40:03 AM
I'm not really sure whether this is the correct group but here we go. The SQL 2005 supports a new datatype called xml. If I create a table adapter in Visual Studio 2005 for the standard insert/update/delete/select methods the table adapter generates a dataset with the dataset field value o...more >>

Sql Server Migration
Posted by Nitin at 8/1/2006 12:00:00 AM
I used access as backend for a website and it worked perfectly fine. Now i have changed to MS SQL Server 2000. The page gives an error "Must declare the variable '@CategoryId'. " (@categoryid is a oledb parameter) when I remove all the parameters and create the query using string.format it wo...more >>


DevelopmentNow Blog