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 > august 2007 > threads for august 8 - 14, 2007

Filter by week: 1 2 3 4 5

Still More Database Connection Problems
Posted by Jonathan Wood at 8/14/2007 4:45:37 PM
I'm going through several books on ASP.NET database programming. They all make it look so easy. But it just never seems to work for me. So I created a new ASP.NET application. I right click on Data Connections in Server Explorer and select 'Create New SQL Server Database...' The Server na...more >>


Retrieving Last inserted ID
Posted by at 8/14/2007 2:56:49 PM
Hi I am having some problems retrieving the last inserted id from the DB, I really want to chuck this into a variable so I can use it anywhere. The following is what I have got so far :- string connStr = ConfigurationManager.ConnectionStrings["dataConn"].ConnectionString; SqlConnection o...more >>

ExecuteXmlReader not available in .net 1.1 Enterprise Library Data Access Block ??
Posted by TJ at 8/14/2007 2:47:40 PM
I'm trying to upgrade old code in .NET 1.0 to use the data access application block (June 2005 version). I'm trying to do this: SqlCommand custCMD = new SqlCommand(sql, conn); conn.Open(); XmlTextReader rdr = (XmlTextReader)custCMD.ExecuteXmlReader(); But guess what, there is no ExecuteXm...more >>

Format date in datacolumn?
Posted by benji at 8/14/2007 1:16:03 PM
I've got a datatable with 3 columns: -A string -A datetime -An expression-based column I want the expression based column to be a representation of both of the other columns. The expression looks like: ColString + ' ' + ColDate The only problem is that the datetime format is very verbo...more >>

Database Connection Problems
Posted by Jonathan Wood at 8/14/2007 10:20:02 AM
I'm new to SQL Server and seem to have a lot of problems with my connection string not working. I finally got it working on one system but then it stopped working when I moved to another system. Can anyone give me some ideas as to why? IMPORTANT: This is not on the final Web-hosting machine...more >>

Newbie DataAdapter Questions
Posted by byahne at 8/13/2007 11:48:57 AM
I am new to ADO.Net. I'm currently attempting to prototype an ASP.Net Solution for a customer. I have the following scenario and I'm not sure what the "best" direction is... We have two tables that have a 1 to 1 relationship. We have decided to use strongly-typed datasets for a variety of r...more >>

Req: Help! Editing MP3 Extended Attributes
Posted by Joe Wilke at 8/12/2007 12:37:51 PM
I'm interested in creating a database that retrieves MP3 Extended attributes also allows me to edit and save them back to their resptive files, Does anyone know of an ocx control or even some sample code? Have a class that does everthing I want but seems impossible to convert to Dot net from VB6...more >>

Data with Apostrophes
Posted by Carl Thomas at 8/11/2007 12:02:02 PM
I have names in a data collection the include apostrophes like O'Hare. When I use a simple VC#/ADO.NET approach with an SQL INSERT statement and cmd.ExecuteNonQuery, it always hangs up on the apostrophe saying that there is an unterminated string. When I try using a DataAdapter and SqlCom...more >>



sqlmetal
Posted by Carl Thomas at 8/11/2007 11:57:51 AM
I've see references to this utility, but have been unable to find it in either my SQL Express installation or my VC# ORCAS installation. Where does it hide? TIA Carl ...more >>

Linq to Sql and database changes
Posted by TheCornjerker at 8/11/2007 7:51:10 AM
I have setup a .dbml file from an SQL table. I have inserted a new column and deleted an old column from the database table that the .dbml file is associated with. How do I refresh the .dbml file to take into consideration the database changes? Thanks, C ...more >>

Access "INSERT INTO" query syntax error
Posted by SiD` at 8/10/2007 5:13:48 PM
Hi, I am trying to execute an INSERT INTO query, but the debugger says me that there is a syntax error, which I cannot figure out: Public Shared Function project_add(ByVal title As String, ByVal desc As String, ByVal isActive As Boolean, ByVal isSystem As Boolean) As Boolean Dim c...more >>

System.Data.OracleClient requires Oracle client software version 8.1.7
Posted by ind_123 at 8/10/2007 9:42:22 AM
I get this error while trying to run report on SQL Report Server "System.Data.OracleClient requires Oracle client software version 8.1.7" I checked the DataClient and it is installed. The report runs fine on development machine but not when I moved it to Test mahcine. Any help? ...more >>

.aspx.vb code syntax problem
Posted by slinky at 8/9/2007 1:18:50 PM
I'm making a OLE DB connection in code and was wondering if anyone could identify what the syntax errors would be in this just as it is pasted (I tried putting & _ at the end of the first line and that only brought up other errors): New OleDbConnection("Provider=Microsoft.Jet.OLEDB....more >>

Using SQL on Development Machine
Posted by Jonathan Wood at 8/9/2007 7:50:25 AM
My Web application will eventually be hosted on someplace like GoDaddy.com. NOTE: I am not asking anything about hosting my application on the Internet. Rather, I'm asking about testing the application here on my desktop during development. On a new Vista system with Visual Studio 2005 insta...more >>

Adding new rows
Posted by maz at 8/8/2007 10:56:20 PM
Is there anyway to add rows to a dataset/datatable without having to populate the object with rows from the source table???? It seems to be pretty daunting in terms of memory/processing requirements to have to fill the dataset with all rows from a source and then make additions. ...more >>

ADO.NET Transaction
Posted by Lit at 8/8/2007 2:56:33 PM
Hello, using ADO.NET 2.0, VS.NET 2005, SQL2005 I need to execute several Stored Procedures under one transaction. Can I use just one transaction or have to use multiple ( then commit or rollback all ) How does it work with ADO.NET Ado.Tran SP1 Called loop SP2 Called ...more >>

Detecting Changes in Database Table from app
Posted by at 8/8/2007 2:01:18 PM
All, I'm trying to write some code that will detect changes in a database table (like a record value modified) in SQL Server 2000. I've tried to pull all records and place them in a dataset and merge against existing records every few seconds but the DS Merge does not seem to work. Any s...more >>

SQLDependency timeout
Posted by Lubomir at 8/8/2007 1:14:06 PM
Hi, How to set up dependency so that it will never expire? If time-out = 0, it indicates that the server's time-out should be used. What is it? How can I set up server's time out? All I want it is, that SQLDependency will not expire while my application is running. Thanks, Lubomir...more >>

Strongly Typed DateSets/DataTables and DataReaders
Posted by Siegfried Heintze at 8/8/2007 12:33:13 PM
As I recall, data readers are much more efficient than DataAdapters. Unfortunately, the code I am refactoring could really benefit from a VS generated strongly bound DataRow but it is using a data reader. Is there a way to make VS 2003 generate a strongly typed DataRow, DataTable or DataSet ...more >>

using typed dataset with data relations?
Posted by benji at 8/8/2007 11:56:00 AM
Hi, I'm working with the dataset designer, which, via its wizard can generate both a fill method and one to return a datatable. So I can use these to get a specific datatable back, but I can't traverse a relationship, because the other table doesn't exist! So I assume I need to maybe manual...more >>

System.Data.OracleClient requires Oracle client software version 8
Posted by Krishna at 8/8/2007 10:40:05 AM
Hi, We are developing one web application using .Net frame work 2.0 and Oracle 9i. Operating System is windows server 2003 standard edition service pack 1. We try to retrive the data to oracle database.But the System Display the following error message. System.Data.OracleClient require...more >>

OracleDataAdapter.Fill does not return rows
Posted by Kishore at 8/8/2007 8:36:05 AM
Hi, I am using .Net 1.1 and ODP.net. When I use OracleDataAdapter.Fill method, it is not returning any rows, but when I query in TOAD I see results. Has anyone experienced this problem before ? Thanks, - Kishore...more >>


DevelopmentNow Blog