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 2007

Filter by week: 1 2 3 4 5

How to fill background of page with gradient
Posted by moondaddy at 8/31/2007 9:50:18 PM
I want to fill the entire background of a page with a gradient. As a test, I first filled with a solid color like this: <body style="background-color: #ccffff;" > and the entire page was this color. next I replaced that with a gradient style like this: <body style="filter: progid:DX...more >>


System.Data.dll Difference (Windows Server 2003 - Framework v1.1.4322 vs (Other Windows OS) - Framework v1.1.4322)
Posted by Mythran at 8/31/2007 1:31:38 PM
We are getting a serialization error and after a few hours of tracking the "real" problem down, we found that the System.Data.dll file for the Windows Server 2003 version of Microsoft .Net Framework 1.1 SP1 is different than the rest of the SP1's for the other Windows operating systems. While...more >>

ADO.Net and transaction locking
Posted by Robert Strickland at 8/30/2007 1:14:23 PM
Earlier today I was in a discussion with the team's DBA on where explicit database transaction locks should be placed - in the .Net application or in the stored procedures. This can up when we ran into some concurrency problems for our web application. Is here any guidelines or standards on ...more >>

ADO.Net and FoxPro 8 dbf file
Posted by BartMan at 8/30/2007 10:52:05 AM
Greetings, I am devleoping a new application in C# which is suppose to perform a look up of some data from a legacy database locally on the machine. The problem is that this data is stored in a Foxpro 8.0 DBF file. It seems like my connection string works, but how do I get access to a sp...more >>

The user is not associated with a trusted SQL Server connection
Posted by frank at 8/30/2007 10:50:03 AM
Hi, I have an asp.net2.0 app with sql server express on another machine, I can browse the pages in VS2005 Environment. When I created a virtual directory in IIS, and browse the pages, I got the following errors: ---------------- Exception Details: System.Data.SqlClient.SqlException: Login...more >>

Multiple INSERTs to Oracle in a single command - how to?
Posted by Tomasz J at 8/29/2007 6:13:24 PM
Hello Developers, I just cannot figure this out. How to separate multiple Oracle INSERT commands, so my inserts execute as a single batch. Semicolon does not seem to work - Oracle returns: "ORA-00911: invalid character". Could anyone advise? Tomasz J ...more >>

ADO.NET and MSFT Access 2007
Posted by Jeff Gaines at 8/29/2007 4:52:05 PM
I am using the trial version of Office 2007 (I am awaiting delivery of my own version) having taken a large leap from Office 97. I accessed the 97 version of Access using ADODB but, if it makes sense, I want to try and learn how to use ADO.NET with the new version. I write Windows Forms app...more >>

Database Mirroring Causes .NET Internal Network Provider Error 6
Posted by bryans NO[at]SPAM archtest.com at 8/29/2007 10:12:58 AM
When implementing database mirroring using SQL 2005, our .NET Framework 2.0 Windows Forms Application clients are intermittently receiving the following error: Internal .Net Framework Data Provider error 6. at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) ...more >>



hi
Posted by nalini at 8/29/2007 5:59:25 AM
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to S...more >>

Strongly Typed Dataset should be in DataAccess Layer or Business Layer
Posted by kittipong.kiatcheeranun NO[at]SPAM gmail.com at 8/28/2007 6:06:16 PM
I am not exactly sure that my understanding is right or wrong. In strongly typed dataset we can generate all of the fields from tables in database and also has tableadapter that allow us to write down sql command in or directly link to table. We still can write the code in dataset partial class ...more >>

Strongly Typed Dataset should be in DataAccess Layer or Business Layer
Posted by kittipong.kiatcheeranun NO[at]SPAM gmail.com at 8/28/2007 6:04:56 PM
I am not exactly sure that my understanding is right or wrong. In strongly typed dataset we can generate all of the fields from tables in database and also has tableadapter that allow us to write down sql command in or directly link to table. We still can write the code in dataset partial class ...more >>

DataRow Array size
Posted by Manjree Garg at 8/28/2007 7:42:12 AM
Hi Is there any way of declaring an array of DataRow of variable size (or dynamic array) in ADO.net as the fowwing syntax require the size of the array. array<DataRow^>^ rows= gcnew array<DataRow^>(size); I am searching my SQL Server2005 databases DataTable for a given column value u...more >>

Out of sync with two connections
Posted by brinko99 at 8/27/2007 10:48:01 PM
I am using a User Control that reads and writes data to an Access Database using OLE DB classes (OleDbConnection...) I believe the control is storing data locally in a DataSet which populates a DataGrid. My application is trying to read and write data to this same database directly and I'm...more >>

HasChanges returns false for one row, true when more than one
Posted by Mike G Burton at 8/27/2007 1:40:04 PM
I have a (third-party) grid bound to a dataset for display purposes, but during the operation in question I'm directly updating the dataset from my application code. When I call HasChanges on the dataset, I get False if the dataset has a single row, but True if the dataset has multiple rows. ...more >>

Problem with data table manipulation prior to update
Posted by B. Chernick at 8/27/2007 11:50:07 AM
I'm passing a data table to a form. This table is then bound to a binding source which is in turn bound to a datagridview so that only a subset of the table is ever displayed (filters by key). This form is your basic dialog with OK/Cancel buttons. For reasons too complicated to explain, w...more >>

Dataset designer and complex Stored procedure
Posted by Gerard at 8/27/2007 12:00:00 AM
I have many complex SQL Server 2000 stored procedures, using cursors, temp tables... They all finally return a resultset that could be a join on several user and temp tables. Now, when I try to drag some of them on a dataset in VS 2005, the designer will create a QueriesTableAdapter for a q...more >>

Database Data Types
Posted by Jonathan Wood at 8/26/2007 8:29:21 AM
The further I delve into .NET and ADO.NET, the more things I seem to find missing that we had 10 or 15 years ago. I really don't understand why. So, using VS to create an SQL database I see: 1. There is no Boolean data type. Further, if I use tinyint and set it's default value to 0, I see ...more >>

datetime conversion from UDT/GMT to localtime
Posted by georgejetson at 8/25/2007 5:58:01 AM
Hi, Env: VB .net 2005 against SQLServer 2000 SP4 on Windows XP (latest SP) Situation: My database has all date/times stored in UDT/GMT in datetime fields in sqlserver...(I'm in USA EST, thus, GMT now is +4.00) [When daylight savings time goes away in the fall, it will be +5.00) My VB ...more >>

ASP.NET binding to DataReader
Posted by Andrew Robinson at 8/24/2007 8:52:27 AM
I have a large collection of DAL code that returns lists of entities (List<entity>) for general binding operations usually to a GridView via an ObjectDataSource. I think about binding directly to a SqlDataReader but how do I insure that the Reader and its associated Connection both get clos...more >>

Default Values Configuring the Where Clausse of a SQLDataSource
Posted by Lee Stevens at 8/23/2007 9:44:02 AM
I am somewhat new to vb.net and asp.net (am a former VB6 turning .net programmer)... I have a textbox, which I would like to populate with criteria to show in the datagrid. This works fine, however, when no text is found in the textbox, there are no results to display. I would like to if ...more >>

DataTable ColumnChanging event nit firing on adaptor.Fill()
Posted by Amir Tohidi at 8/23/2007 7:00:08 AM
Hi I am successfully filling my DataSet with data using an adaptor. Prior to calling Fill(), I regsiter handler for the ColumnChanging event of each DataTable in my DataSet because I want to do field level validation of each data item. Unfortunately, my event handler is NOT getting calle...more >>

Accessing DataTable Problem
Posted by Graybane at 8/23/2007 6:26:05 AM
Hi Folks, I am having a problem reading an existing typed datatable. I am sure that I have over looked something simple but I am not seeing the forest for the trees. I am using the below code and the reader does not pickup any rows. Private MyDataSet As SomeDataSet Private MyDataTab...more >>

search and update data
Posted by Nhan at 8/22/2007 4:16:23 PM
Hi, I am beginer in ADO.Net, have such a problem. I want to search for a row of a table or query then update data of this row. With which ADO.net classes can I do this? An equivalent to ADO recordset object! The System.Data.Dataview can search, delete. Can it also update data? With DataTab...more >>

Transaction fail when called via remoting
Posted by Johan Karlsson at 8/22/2007 3:06:33 PM
Hi! I have an application where the client call the server over .net remoting (tcp). The final code to be called looks something like this: Public Sub Update() Using t as New Transaction UpdateThisObject() UpdateChildObjects() ' <--- System.Transaction.Transacti...more >>

DataSet Value change event.
Posted by Gobinath at 8/21/2007 5:46:16 PM
Hi, I'm have a dataset with only few tables. But each table is fairly big ( due to design constraints). Now I have a flag which needs to be set based on some of the cell values (the dependent cells are determined at runtime). The problem I'm facing is - To update the flag I need to depe...more >>

Update datarow in typed dataset
Posted by C a r l o s A n t o n i o at 8/21/2007 1:56:33 PM
Hello, How can I update a datarow in a typed dataset? It seems i can't make it to write the changes into the database. What am i doing wrong? Thanks in advance. Here's my code: Private Sub save_changes(ByVal _infraction_id As System.Guid) Dim o_adapter As New roswellDataSetTableAd...more >>

DataAdapter.Fill(Dataset) shows timeout error.
Posted by Manohar at 8/21/2007 10:08:16 AM
I am executing a stored procedure and returning a resultset. The stored procedure takes approx 40 secs to execute. I have set the connection and command timeout to 10000, but I am still getting the error, "Timeout expired. The timeout period elapsed prior to completion of the operation or the...more >>

Bug in Dataset.Readxml method? (Framework 2.0)
Posted by duane.roelands NO[at]SPAM gmail.com at 8/21/2007 9:20:23 AM
Take the following xml file (test.xml): <SourceData> <Transaction> <ID>11</ID> <Transaction>Insurance Loan Addon</Transaction> <TransactionAmount>31.21</TransactionAmount> </Transaction> </SourceData> ....and then run the following code in a console application: Module...more >>

No updating the table
Posted by sweetpotatop NO[at]SPAM yahoo.com at 8/21/2007 8:52:11 AM
Hi, I am using the following to update some rows in a dataset, I wonder why the data is no updated in the SQL table. Am I missing anything? Please advice, your help would be greatly appreciated. commandTimeoutPeriod = 120; typeCommand = CommandType.Text; command.CommandText = commandExecut...more >>

Saving of deleted rows
Posted by Jörgen at 8/21/2007 6:14:08 AM
I have a form with master/child tables. I Deleted a row in the child table with datarow.Delete and tried to save the change to the database. Because I have a Foreign Key constraint between the tables I must make updates in a certain order 1. Child Deletes 2. Master Updates/Deletes/Inserts 3...more >>

accessing .accdt,.accfl files
Posted by AVL at 8/21/2007 3:14:03 AM
Hi, I want to read the data\content of my .accdt and .accfl files using the oledb provider of .net 2.0 i've used the below connection string...but it's throwing a unrecognized database format error... "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Microsoft Office\Templates...more >>

Select Random Number from Access Table Using C#
Posted by dungdang at 8/21/2007 12:00:00 AM
Hello, I want to use C# to select a random number from MS Access database table. <SELECT TOP 1 userID FROM users ORDER BY NEWID()> seem to work only with SQL Server. ...more >>

How to translate heterogenious XML files to typed datasets?
Posted by DC at 8/20/2007 8:31:27 AM
Hi, I have to load xml data via http for some function calls. Using different providers, this data must be represented in objects of the same type for my client (web) application to be used. I am using VS 2005. I thought about using typed datasets as data objects, so I would generate xsds ...more >>

DOWNLOAD CRACKED 2007's SOFTWARE: ARCHICAD 11,UNIGRAPHICS NX5,SOLIDWORKS 2008,XSTEEL 13,AUTOCAD 2008
Posted by John Peterson at 8/20/2007 2:49:56 AM
Our team provide different types of services such as: - proffessional cracking of any kind of software (CAD,CAM,CAE,EDA,GIS,PCB,FEA,FEM,CNC,CFD,PDS,3D,Optics etc.) designed for any kind of operating systems(Windows 95/98/ME/2000/XP, Linux, FreeBSD, OS/2, MAC OS etc.) - producing key...more >>

Copying tables in SQLEXPRESS
Posted by Michel Vanderbeke at 8/19/2007 2:24:47 PM
Hello, Thank you for your help. When I browse the internet, I only find examples on how to restore an entire database. What I try to achieve is to replace only one or several tables in the database by updated tables from another database. I added the reference to Microsoft.SqlServer.Sm...more >>

Why DataTable.Select("IIF(...)") is refused !
Posted by sam at 8/18/2007 9:31:58 PM
Why using an IIF in a DataTable.Select(IIF("column1=zz", "column2","column3")); is in invalid context ? What is the way for using an IIF in a Datatable.Select(...) ? Thanks for help. sam ...more >>

Expression error
Posted by sam at 8/18/2007 5:23:21 PM
I use this for selecting rows that match a specific case: DataRow[] foundRows = dSet.Tables["MY_TABLE"].Select(IIF("column1="+DBNull.Value, "column2", "column3")); Compiling error, because IIF is not valid in this context ? What is the correct syntax for using IIF in a select ? Sam ...more >>

Differant between Sqlcommand object and datasource object
Posted by Husam at 8/17/2007 11:34:06 PM
Hi EveryBody: Whey when I use the following code trying to inser my data to database it did not work: Dim mydatasource As New SqlDataSource mydatasource.ConnectionString = ConfigurationManager.ConnectionStrings("LocalSqlServer").ToString mydatasource.InsertCommandType = SqlDataSourceCo...more >>

DataTable.Compute() question
Posted by SpaceMarine at 8/17/2007 4:04:18 PM
hello, i have a big datable of a bunch of stuff. i am interested in getting row counts that match certain criteria. currently i do this by creating a new DataView for each criteria, and getting its .RowCount. like so: dv = New DataView(dt, "Type = 2", "Type", DataViewRowState.CurrentRow...more >>

Trying to call a stored procedure from C# (and failing)
Posted by David Thielen at 8/17/2007 2:47:00 PM
Hi; This is using the Microsoft Oracle ADO.NET classes. Two questions on this. The first is - is there a way to call a stored procedure, including passing paramaters, where the entire request is in a single string? I ask because our app lets users enter any select and so if we have to br...more >>

Is TableAsapter thread safe?
Posted by Max2006 at 8/17/2007 1:38:18 PM
Hi, In our ASP.NET application We use strongly typed datasets and TableAdapters. Is it a good idea to use a static TableAdpater to share the static instance among all sessions? My business logic components are like this: [DataObject] public static class AccountBLL { private static ...more >>

What sort of dataset is it?
Posted by David at 8/17/2007 8:36:01 AM
I have an application that saves a bunch of data in XML files that come from typed datasets. So, I have something like this: MyTypedDs myds; //.... When the user wants to save the data myds.WriteXML(thefilename,XMLWriteMode.WriteSchema); Later on, when he wants to open a saved file...more >>

Connect to remote Excel
Posted by jcotroneo NO[at]SPAM gmail.com at 8/17/2007 5:35:12 AM
Hi all, we need to be able to connect to an Excel in a remote server via ADO.NET. We have a component that makes queries to that excel a retrieves the data requested, but when we are trying to get the data from the remote excel we can=B4t connect because we have an URL and not a physical path....more >>

dataview.sort not working in framework 1.1
Posted by Archana at 8/17/2007 4:18:28 AM
Hi all, I am having table containing 2 columns and 3 rows. Col1 contains interger valye. I have records with record1 having 2 in col1, record2 having 5 in col1 and record3 having again 2 in col1. I am trying to sort this datatable. So what i did is table.defaultview.sort = 'col1 as'. here...more >>

SqlConnection.InfoMessage - SqlError.Class wrong value ?
Posted by Stephen Ahn at 8/17/2007 12:00:00 AM
Hi, Using VS2005, SQL Server 2005. The SqlError.Class property always seems to be 0 when retrieving informational messages via the SqlConnection.InfoMessage event. Sample code to reproduce : == private void button1_Click(object sender, EventArgs e) { strin...more >>

Problem while filling the dataset where the data source is a .CSV file
Posted by simran2102 NO[at]SPAM gmail.com at 8/16/2007 10:29:47 PM
HI, I am trying to reading a .csv file from a remote desktop. the connection string that i am using is as follows: strConn = "Provider=MS Remote;"+"Remote Server=//<ComputerName>/ <FolederName>;" + " Remote Provider=Microsoft.Jet.OLEDB.4.0;"+"Data Source="+@"d:/trial/try1.csv"+";"+"Extended...more >>

setting up for calling a stored procedure
Posted by Boyd at 8/16/2007 5:59:18 PM
Hi, I am using vs .net 2005, .net frameworks v3.0, vc++ 2005, on vista I am trying to write a c++ app to call a sql stored procedure. the following code genrates an error trap and I don't know why: String ^myConnectionString = "Initial Catalog=ncxSQL;Data Source=ENVISION-MOD;Integrated Se...more >>

Copying tables in SQLEXPRESS
Posted by Michel Vanderbeke at 8/16/2007 3:13:54 PM
Hello, I have a program, running in several places, using SQLEXPRESS as database. The different places are stand-alone, and not connected to a network. Regulary, I have to apply changes on certain tables of the database. In a previous program, written in VB6 with an Access database, I used J...more >>

OleDb DataReader Close is hanging
Posted by Mark at 8/15/2007 5:32:04 PM
Hi - i'm using an OleDBDataReader to get results from a stored procedure and it is hanging on the Close() call on the Data Reader. When I do a Sql trace I see a SQL_NO_DATA_FOUND error but i'm not sure what it means or how to debug it. I am using ADO.NET 1.1, Sql Server 2000, and driver versi...more >>

More about Database Independence
Posted by Max André Bündchen at 8/15/2007 7:12:05 AM
In a new system based on .Net 2.0 I have some tech goal like database independence and the use of typed datasets. So I'm looking for some material on web but I did not found anything interesting. My scenario: I had work with some OR solutions for the .Net platform but I need to work with...more >>


DevelopmentNow Blog