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 2008 > threads for february 22 - 28, 2008

Filter by week: 1 2 3 4

How to solve DataSet Designer SQL errors?
Posted by David Carr at 2/28/2008 12:38:45 PM
Hi there, I have writing easy to moderate SQL in the DataSet Designer and Query Builder, using a Jet 4.0 connection to an Access 2003 DB. I am running VB.NET 2005 sp1. As soon as I try to do anything more than the most trivial SQL (e.g. simple JOINs, more than 1 parameter other than in t...more >>

OleDbCommandBuilder insert query will not work? dataset to Access
Posted by gibbonas at 2/28/2008 7:38:05 AM
I am trying to take a very strangely delimited text file and put it into access. So far I was able to get the text file into a dataset and figured from there I could get it into access. I am trying to use the code below but the insert query(oledbcommandbuilder) just will not work. I am work...more >>

timeout error
Posted by AVL at 2/28/2008 6:33:00 AM
Hi, I've a method in my web service..which makes a call to db and sends back a dataset.. the query takes 2 mins to fetch the results..by that time i'm seeing a 'operation has timed out error' on my screen.. is there any to get rid of this error?...more >>

Problem with AdomdCommand with passing DataTable with DBNull in some cells
Posted by Nestor at 2/27/2008 7:57:16 PM
The following code would fail, with the error: "The '' string cannot be converted to the double type." when trainTable contains rows with DBNull in some of the columns. How can I pass NULL to MSAS? using (AdomdCommand comm = connAS.CreateCommand()) { comm.CommandText = "INSE...more >>

Problem with AdomdCommand when Passing DataTable with DBNull's
Posted by Nestor at 2/27/2008 7:46:55 PM
The following code would fail, with the error: "The '' string cannot be converted to the double type." when trainTable contains rows with DBNull in some of the columns. How can I pass NULL to MSAS? using (AdomdCommand comm = connAS.CreateCommand()) { comm.CommandText = "INSE...more >>

ORA-01406: fetched column value was truncated
Posted by onc at 2/27/2008 3:30:04 PM
Using data reader against one of my Oracle tables is crashing with following error: System.Data.OracleClient.OracleException: ORA-01406: fetched column value was truncated. This happens with Microsoft ADO driver to Oracle. Oracle ADO driver works just fine. Error happens only with some...more >>

Need some advice on my Deployment Pkg
Posted by Jim Richards at 2/27/2008 11:37:02 AM
Hello. Using XP Pro w/SP4 and VS 2003. I wrote my program with the connection string and the path for loading the Maps as follows: C:\MVB.NDbProJim\Ch7\ROE6AllRecords2\Maps. The Maps sub-directory containes all 116 Maps of the Lots and also the ROE6.mdb database. But when I deplay this app to...more >>

problem with excel
Posted by AVL at 2/27/2008 6:12:03 AM
hi, i'm facing a strange problem.. In my requirement , I'm suppose to load the data from datagrid into excel file. make the required changes in the file and load the file back into the datagrid. i'm able to export to excel but after i make changes in the excel and load it into grid,...more >>



LINQ passing Array for a parameter
Posted by Chuck P at 2/26/2008 1:48:02 PM
I have a web page where a user can select multiple items for use in a select statement. SELECT columns FROM table WHERE ID in (1,2,3). Since its a web application I use a stored procedure to get the results. Currently my sproc GetResults (@EventIdList varChar(@256)) uses a table value func...more >>

OracleDataReader Returns No Records With Nested SQL
Posted by b.pruitt@mindspring.com at 2/26/2008 7:34:07 AM
Hello All, Can anyone tell why one sql statement works with the data reader but not the other. To test, I uncomment the string I need. Dim QueryString As String ***This string does not work 'QueryString = "SELECT * FROM print_server WHERE LS = (SELECT LS FROM vw_turboinfo WHERE tsn = '08...more >>

IIS ASP.NET 2.0 Not creating a connection pool nor re-using connections
Posted by j.l.robinson@gmail.com at 2/26/2008 6:23:09 AM
I need some help! I have a webapp in ASP.NET 2 running on 2003 R2 that doesn't seem to want to bring up a connection pool. When I run a trace on the DB server I can see Audit Logoff and Audit Logon between query batches, which leads me to believe that this is occurring. This is a replace...more >>

datagrid to excel
Posted by AVL at 2/26/2008 12:48:01 AM
Hi, I;ve a requirement wherein the need to export the data from grid to excel file using .net 1.1.. While I do the export to file, sfew columns in teh excel file should be locked, in the sense..use shouldn't be able to edit the values in those columns... is this possible thru C#? any samp...more >>

Can't add a new row to a database
Posted by walt@waltwhite.com at 2/25/2008 1:47:38 PM
Why won't this code add a row to my database? It runs as expected but when I look in the SQL database using SQL Server Management Studio the table is empty. DataRow newRow = this.dsHealthClub.NotInHouse.NewRow(); newRow["Name"] = dsEmployees.Employees....more >>

a problem about connect to access with ODBC
Posted by YEE at 2/25/2008 11:17:06 AM
System.Data.Odbc.OdbcConnection conn = new System.Data.Odbc.OdbcConnection(@"Driver={Microsoft Access Driver(*.mdb)};Dbq=C:\abc.mdb;Uid=Admin;Pwd="); when invoke conn.Open(); the program throw an OdbcException ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and n...more >>

DataAdapter Solution with support for paging?
Posted by Frank Hauptlorenz at 2/24/2008 1:33:28 PM
Hello, is there are ready component (maybe an data adapter) existing which has advanced features like paging (with server cursors) but still allows merging? Thank you, Frank...more >>

Must delcare the scalar variable
Posted by Tom Nowak at 2/24/2008 9:11:02 AM
I am running an Update routine that calls a function. It appears that the function never executes because I receive: Must Declare The Scalar Variable @Country. Code: Dim newCustomer As New Customer newCustomer.CustomerID = customer.CustomerID Me.PutCus...more >>

Incresase the Excution Time?
Posted by Husam at 2/24/2008 8:19:03 AM
Hi EveryBod: I have an object cmd as SqlCommand object and and I face problem with safe large data by using this object there is an errore appear tell me that the excution time out. Sombody can tell me how can I increase the Excution time? I am using SQL server 2005 any help will be ...more >>

Attempt on SqlConnection.BeginOpen
Posted by steinmr@gmail.com at 2/23/2008 2:48:26 PM
I have a need for a SqlConnection.Open that times out in an predictable matter (i.e. if the server does not answer, I do not have to wait for TCP or NIC timeouts to find out). The "Connection Timeout" in the connectionstring will not help, as this only applies to the connection to the SQL Server...more >>

Disabling EnforceConstraints
Posted by John at 2/22/2008 9:59:40 PM
Hi Is there a way to disable EnforceConstraints on a dataset? I have this statement ds.EnforceConstraints = true in MyDataSet.Designer.vb but I am reluctant to set it to false as the designer may overwrite the code. I only wish to do it temporarily to speed up fill operations. Thanks ...more >>

ADO.NET query execution much slower than SQL Management Studio
Posted by dustbort at 2/22/2008 1:25:33 PM
I have a stored procedure that when called from SQL 2005 Management Studio takes less than one second to execute. The same SP, when called from .NET code takes about 13 seconds. I am using a SqlCommand object with CommandType set to StoredProcedure and I am passing arguments through the parame...more >>

Populating data set on background thread
Posted by John at 2/22/2008 11:31:19 AM
Hi I have a master data set. I need to populate a copy of this data set in the background (via background thread?) and once filled to replace master data set with the newly filled dataset. Is there a code example of this that can see? Thanks Regards ...more >>

Filling a DataTable causing RowState to change in another table
Posted by michael at 2/22/2008 11:12:02 AM
I have 2 separate DataTables in a DataSet. These tables are in no way related to one anohter with Relations. When I Fill one table, it causes a row's RowState in the other table to change from Unchanged to Modified. In the absence of editing the row! Can anyone think of ways to figure out w...more >>

load flat file into datatable
Posted by georgejetson at 2/22/2008 9:03:02 AM
Anyone, I'm looking for a way to load flat files into a datatable in vb.net (2005) My flat files are tabbed delimited files with the field names on the first row I could dump the data into a sqlserver via DTS and then query against a table, but I'd like to figure out how to go directly fr...more >>

OleDB locks excel file
Posted by TB at 2/22/2008 6:21:27 AM
Greetings, I use OleDB from my c# application to populate an excel sheet. I open the connection in a using clause (which automatically close the connection after exit) and the excel file is created. However, I am not able to view excel file before I exit the application. It seems that there i...more >>


DevelopmentNow Blog