Groups | Blog | Home


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 > february 2004 > threads for thursday february 19

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

Max Connection Pool Reached ...
Posted by Vikram at 2/19/2004 11:30:48 PM
Hi , " 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 am getting this error in my application. All requests to the Database go through the Data A...more >>


Datagrid Column Width
Posted by Heinz Deubler at 2/19/2004 8:36:08 PM
I found the following code on microsoft.support.com which is supposed to with of a column '---------------------------------------------- Dim ts As New DataGridTableStyle( ts.MappingName = "tbl_Client DataGrid1.TableStyles.Clear( DataGrid1.TableStyles.Add(ts DataGrid1.TableStyles("tbl_Client"...more >>

I Have No Identity
Posted by Jerry Camel at 2/19/2004 6:51:54 PM
This has been addressed several times and I've read several articles and posts and I still can't get this to work. (This is VB .NET) My understanding is that if I append a select statement to my DataAdapter's Insert statement that I should be able to get an updated resultset. I've got this: ...more >>

Calling Oracle date functions via ODBC and .NET
Posted by Richard Morse at 2/19/2004 4:31:28 PM
Hi! I'm using ODBC to connect to an Oracle database. I want to do something like the following: --------- var conn: OdbcConnection = new OdbcConnection("my connect string here"); var sql: String = "update mytable set col1=?, col2=? where keycol=?"; var command: OdbcCommand = new OdbcCo...more >>

PRINT in transact-SQL
Posted by Peter at 2/19/2004 4:01:06 PM
Hi, I have a question regarding PRINT statement in transact-SQL. The following is my test environment * Vuisual Studion 2003, server explorer * either in SQL pane or using stored procedur The scenerio are like belo * alter procedure myProcedure as PRINT 'HELLO' <===== I...more >>

Populate a DataTable (with Aggregation) from an existing DataTable
Posted by Francisco at 2/19/2004 3:41:09 PM
Hi, I have a datatable with 2 keys columns, i need get this datatable with agregate totals. How can i do that? datatable Key1 Key2 Total 1 1 100 1 1 200 1 2 50 1 2...more >>

Refreshing database cache
Posted by MW at 2/19/2004 1:59:56 PM
Dear all I have written a windows service that connects to an Oracle 9 database on start up. I use a DataTable to hold a set of near static data. Recently there have been some overnight external batch updates to this table and my DataTable needs to be refreshed. Since this change of circumst...more >>

Properties in VB = Parameters in .NET??
Posted by Pablo Ricco at 2/19/2004 1:40:03 PM
Hi! I have this problem... In Visual Basic I am work with ADODB and the next code work perfectly... Dim cmd as New ADODB.Command cmd.Properties(15).Value = 2 .... But in .NET.. OleDbCommand cmd = new OleDbCommand(); cmd.Parameters.add("15",2); .... this code throws an error: "An u...more >>



generic function to execute a sql stored procedure
Posted by karlid2000 NO[at]SPAM yahoo.com at 2/19/2004 1:28:31 PM
hello, In my asp.net projects I like to seperate the database connection and lookups/executes from the code-behind pages using shared functions. I find myself often using a function that returns a datatable given a sql query and it works great. The function is contained in my 'dataaccess' ...more >>

Primary Key of string values (trims spaces from the end of strings) causes unique violation
Posted by Jeff Flowerday at 2/19/2004 12:56:06 PM
I'm loading a key values into a database and two may be identical except for maybe 1 or 2 trailing spaces. This causes a unique constraint error because for some reason it's trimming the string values when checking the unique contstraint I can clearly see in the dataset the string has spaces on...more >>

Array as input parameter
Posted by Mircea Pleteriu at 2/19/2004 12:42:27 PM
Hi all, I need a SQL stored procedure that has an input parameter of type array of datetimes. How to define such a procedure? if possible Thanks, ...more >>

DataSet.Merge question
Posted by Jiho Han at 2/19/2004 12:03:39 PM
I have a dataset loaded with an xml that looks like this: <associations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <association> <associationid>{8a3aca06-a7de-41a5-b584-063e7cf391bb}</associationid> <createdon>2004-02-17T12:05:40.3430000-05:00</createdon> <modifiedon>2004-02-17T12...more >>

Stored Procedure Syntax
Posted by Greg Smith at 2/19/2004 10:10:04 AM
Hi, I am attempting to updata a SQL Server record using the stored procedure's UpdateCommand. Everything works fine if all fields are full, but if a user clears out a textBox that originally contained a number in it, then the update bombs out. The field in the table is setup to accept nulls. W...more >>

Isolation Level
Posted by Vanaja Edara at 2/19/2004 9:42:17 AM
Hi, We have an Asp.Net applcation with Sql Server as back end. I have a base class function that takes a SqlCommand Object as a parameter and returns a datatable. I want to set the Isolation to "Read Uncommited" (Sql Server's default Isolation Level is "Read Commited") as I am just selec...more >>

Binding INTEGER and use of NULL
Posted by Raymond at 2/19/2004 8:16:05 AM
Hi I bind a textbox to a field in the database through CurrencyManager. Everything works find exept one thing: I cannot type Null, blank, nothing in the textfield. The property in the database allows NULL but I cannot type blank in the textbox. Whatever I type that isn't numeric is changed then I ...more >>

adodb.connection problems
Posted by Robert Batt at 2/19/2004 6:16:07 AM
Hello, I am having a problem with ADODB connection class. This was all working fine until I restarted the pc with last known good configuration, which seems to have screwed things up In the code below the conn.open command fails with a "cannot find stored procedure error". and system.runti...more >>

need suggestion in Guid autogeneration in dataset
Posted by dr-Wicked at 2/19/2004 2:46:06 AM
Hi al I have PK with Guid type in typed dataset Is anybody have any suggestion how 2 implement autogeneration of P thnks...more >>

System.Data.OracleClient
Posted by Gmmi at 2/19/2004 2:31:05 AM
Couldn't understand why following line of code is failing <%@ Import namespace="System.Data.OracleClient" % I am getting following error BC30466: Namespace or type 'OracleClient' for the Imports 'System.Data.OracleClient' cannot be foun Although I can see the System.Data.OracleClient in Ref...more >>

FoxPro connect problems REGDB_E_CLASSNOTREG
Posted by Paul at 2/19/2004 2:23:07 AM
I'm using vs.net, clr 1.1, c# web application. I get the following error connecting to foxpro using its oledb driver. I've tried several ways to connect. No error information available: REGDB_E_CLASSNOTREG(0x80040154). [OleDbException (0x80040154): No error information available: REGDB_E_C...more >>

Timeout Expired error.
Posted by smahajan NO[at]SPAM impetus.co.in at 2/19/2004 2:21:32 AM
Hi there! I am using MSDE 2000 SP3, Sql.Net provider on Win2k server. When I try to execute very simple query of inserting/selecting a row into a table, I am getting following error, "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not resp...more >>

dataset.getchanges fails to return changes
Posted by Parsley at 2/19/2004 12:14:57 AM
Hi All I'm experiencing the problem of dataset.getchanges returning unmodified rows only : myDs.ReadXml("c:\Parsley.xml", xmlReadMode.Auto) For Each t In myDs.Tables For Each r In t.Rows If r.Item("Deleted").ToString = "True" Then r.Delete() Exit For End If Ne...more >>


DevelopmentNow Blog