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 > september 2006

Filter by week: 1 2 3 4 5

Subselect, TableAdapter and MS-Access
Posted by herbert at 9/30/2006 11:53:01 PM
1) I generated a Subselect query in MS-Access which works fine there: SELECT (SELECT Name FROM Players WHERE Players.PlayerID = PlannedGames.PlayerID) AS PlayerName, (SELECT Surname FROM Players WHERE Players.PlayerID = PlannedGames.PlayerID) AS PlayerSurname, * FROM PlannedGames This Subse...more >>


Timeout expired connection
Posted by SalamElias at 9/30/2006 11:45:01 PM
Ihave an application (.Net 1.1, wi2k3 SP1, SQL 2005) that works fine after severalminutes of browsing then I start to get the following error : Servor Error in '/myVirtualServer' Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. Thismay have occured b...more >>

Export Table to dBase 3 (.dbf)
Posted by Stephan Zaubzer at 9/29/2006 2:25:42 PM
Hi! Does anybody know the best way how to export a DataTable to a dBase 3 file? Regards Stephan...more >>

ADO.NET 2.0 Asynchronous Command Execution: Independant of Web Session?
Posted by amy.yerks NO[at]SPAM gmail.com at 9/29/2006 10:34:10 AM
I have a small ASP.NET 2.0 application that needs to be able to kick off a long stored procedure (for importing and processing tables ) and then allow the user to continue with the session, perform other tasks, and log out without having to wait for the SP to complete. I read the following artic...more >>

xmltype oracleclient
Posted by Sal at 9/29/2006 10:17:22 AM
Hi - Does anyone know if the xmltype oracle column data type is supported in system.data.oracleclient? ---------------- Sal ..NET 2003 Oracle 9i ...more >>

Getting Oracle Error
Posted by sjoshi at 9/29/2006 9:19:52 AM
Hi I'm trying to run a queries on a schema, and I keep getting ORA-00911: invalid character error. If I copy/paste it in SQL/Plus it runs fine. This is what I'm doing in code: //Set session here to ZGK037_MDB string sqlSession = string.Format("ALTER SESSION SET CURRENT_SCHEMA={0}", oDB.D...more >>

TableAdapter vs DataAdapter
Posted by s.bussing NO[at]SPAM symax.nl at 9/29/2006 8:45:48 AM
Hi, I was wondering when to use TableAdapters (TA) and when to use DataAdapters (DA). If I've got a typed dataset containing multiple related tables, I would say use a DA to fill the dataset. Why should I use TA instead? I can imagine situations where may be just one table from the datas...more >>

Casting - IDataParameter
Posted by Doug at 9/29/2006 7:29:56 AM
Is there some way to cast a IDataParameter to a SQLParameter? It's not working and I'm not sure why. ...more >>



Connection pooling parameters not working for Oracle connection
Posted by yoram.ayalon NO[at]SPAM structuredweb.com at 9/29/2006 6:34:44 AM
I am using OracleConnection to connect to Oracle 9i Database from a VB.NET project the connection string has the parameters "User ID", "password", and "Data Source". my project import System.Data.OracleClient I tried to add connection pooling parameters like "Connection Timeout", "Incr Pool ...more >>

What happened to SqlConnection.BeginOpen?
Posted by Chris Mullins at 9/28/2006 6:42:02 PM
We're building some very high performance database applications, and are trying to use all of the new Async ADO.Net 2.0 features. The problem we're having is that we can't find a SqlConnection.BeginOpen/EndOpen method. We can execute everything using the BeginExecuteCommand, but without the...more >>

Executing an sql script on a remote database from Visual Studio .NET 2005
Posted by Nathan Sokalski at 9/28/2006 5:09:41 PM
I am connecting to a remote SQL Server database from Visual Studio .NET 2005. I have an sql script located on my machine containing the sql code I want to use to create several tables, and want to execute it. How can I do this from Visual Studio .NET 2005? I do not like designing the database ...more >>

Query works in Query Analizer but not as part of a table adapter
Posted by Tom at 9/28/2006 1:42:02 PM
I'm trying to run a query to return all of the customers who have not placed an order. This query runs fine in Query Analizer but when I try to run it as part of a table adapter it returns all rows (customers with orders AND customers without orders). It appears that the second select is not...more >>

DataBindings : wrong data displayed
Posted by Guillaume JAY at 9/28/2006 12:00:00 AM
Hello, I'm using databindings to display data from a datatable. When I first fill my datatable, it works perfectly, and displays the current data. If I remove the datatable, and recreate it with new data, it's not working anymore : the displayed data are from the first fill of the Datatabl...more >>

Creating dataset.xsd file programmatically as dragging table from Server explorer fails
Posted by Chukkalove at 9/28/2006 12:00:00 AM
Visual studio 2003, MySQL database, MySQL odbc 3.51 driver Is it possible to create the file dataset.xsd programmatically? I'm trying to create my dataset1.xsd file for using with crystal reports. The database is mySQL and the data connection is sat in my server exporer bar. The tables and...more >>

DTSWizard
Posted by Joe at 9/27/2006 5:58:58 PM
Are there any tools around similar to MSSQLs DTSWizard for importing data into a DataTable? The DTSWizard has many nice features which I would hate to recreate if it's already been done. Thanks, Joe ...more >>

How do I connect to SQL database using applicaiton roles and ado.net?
Posted by Ken Varn at 9/27/2006 5:48:47 PM
My MSDE database uses Application Roles. When I run my asp.net application I cannot open the database, I get a Logon Failed exception. I need to be able to open the DB to run the sp_setapprole stored procedure for my role access. Is there some other way that I can do this? So far the only ...more >>

ado & Active directory
Posted by km at 9/27/2006 4:01:08 PM
I am using ado to connect to active directory in a web application. I create the command: objConnection = new adodb.connection objCommand = New adodb.Command objConnection.Provider = ADSDOObject objCommand.Properties("Page Size").Value = 1000 objCommand.Properties("Search...more >>

Using crystal reports with MySQL ADO connector
Posted by Chukkalove at 9/27/2006 2:44:04 PM
I am a developer with limited database and zero crystal report experience. I am very confused. We wanted the ability to switch database providers easily, so I selected to use ADO components with our application. The database we're developing with is MySQL. I downloaded their MySQL Connecto...more >>

Trapping for Connection and Command Timeout
Posted by RMB at 9/27/2006 2:04:02 PM
FW: 1.1 What is the best method for trapping timeout exceptions? There does not seem to be specific exceptions thrown for connection or command timeout. Should I check the message for "Timeout", or is there some other propery in the exception that better identifies a connection or comman...more >>

SQL Question
Posted by Paul at 9/27/2006 8:23:01 AM
Hello: I have a SQL question. If this is the improper board to post this question on, please let me know where you would suggest I post it. I have a SALES table with the following schema and structure. ID Status Date -- ------ ---- 1 Open 1-1-2000 2 ...more >>

pStartInfo in C#.Net
Posted by cu.4m.srinivas NO[at]SPAM gmail.com at 9/27/2006 7:01:36 AM
Hi all, I want to do the foll. I want to get the process running in the name system, with name "abc", and in turn get their arguments, so that i do some processing later Foll. is my code: Process proc = new Process(); proc.StartInfo.FileName = "notepad.exe"; proc.StartInfo.Arguments = "...more >>

Non English Characters
Posted by saygin NO[at]SPAM gmail.com at 9/27/2006 5:53:59 AM
Hi, We are developing a small web interface to a local ERP software, which uses SQL Server 2000 as database. The database uses SQL_Latin1_CP1 collation, and the fields are varchar (not nvarchar), however, the main program inserts and reads non-English (Turkish) characters into these columns. Ho...more >>

Corrupted TableAdapter
Posted by Pershing at 9/27/2006 5:13:02 AM
I have this a Data Set. In that data set I have three table adapters, each has there own queries. For some unknown reason, after I added two new fields to the database and mofified the store procedure to retrieve the new fields, in addition too the other fields it already retrieves, and fina...more >>

db2 commands on .net
Posted by esamanli NO[at]SPAM gmail.com at 9/27/2006 4:31:57 AM
hi, i'm using db2 v8.2 and .net 2005. i'm trying to execute db2 commands but i can't . forexample, i can't get list of aliases or i can't create a new database. how can i solve this problem? please help me. ...more >>

Problem with proc.kill()
Posted by cu.4m.srinivas NO[at]SPAM gmail.com at 9/27/2006 2:14:23 AM
Hi, My case is, i am trying to kill a process (SQLPLUS process) in my Win. Service, when either the Service is stopped or when my app exe is killed from the Task Manager. The problem is, when i kill the SQL process, its not getting killed, and its running and running. I find this in both t...more >>

CommandBuilder and Identity Field
Posted by Daniele Pinai at 9/27/2006 1:27:02 AM
Hi, I used a commandbuilder for my DataAdapter. i have a dataadapter "Pather" and a dataadapter "Sons" in "Pather" table i have and identity field that i use in "Sons" table to join them. How can i know with identity number i have for my new "Pather" row ? How can set my "sons" rows wit...more >>

using access as database
Posted by moshi at 9/27/2006 12:44:01 AM
Hey everyone, I want an advice. I want to build a site as an internet application using database etc. Since I need to use database , I'm interested in something not expensive for my own needs. I thought about using sqlServer, but I know that it is very expensive. Though I thought to use Acc...more >>

Connection String of SQL 2005
Posted by Jason Chan at 9/26/2006 7:58:01 PM
We upgrade our database from 2000 to 2005. So I use the new connection string in our newly developed web app. "Provider=SQLNCLI;Server=server_ip;Database=db_name;UID=username;PWD=password;" I got this error: The 'SQLNCLI' provider is not registered on the local machine I want to know, if...more >>

ConnectionString manual and secure in C# 2.0
Posted by Duong Nguyen at 9/26/2006 7:17:52 PM
Hello, I am a newbie in C#2.0, as I have read, the application automatically generates a configuration files to store the connectionstring in (.XML file). So after compiling, everyone can see this sensitive infomation (username, password). Pls tell me how to make it "hidden" from user and how...more >>

CommandBuilder ConflictOption usage
Posted by Darren at 9/26/2006 4:23:50 PM
I'd like to use the command builder to create update queries but my database schema uses datetime columns for the last time modified instead of a timestamp. Unfortunately ConflictOption.CompareRowVersion seems to only work if a timestamp exists. The update command seems to be rewritten by the ...more >>

Possible to Select * Into #temp From tblx and read #temp with ado.
Posted by Rich at 9/26/2006 3:15:03 PM
Hello, I have a complex query on sqlsrv2000 that runs better if I use an intermediate #temp table. I have tried using a dataAdapter, Command Object to da.SelectCommand.CommandText = "Select * Into #temp From tblx" da.SelectCommand.ExecuteNonQuery But I get an error. The goal is to t...more >>

Calling Oracle proc from C# - must I pass in a cursor?
Posted by Burt at 9/26/2006 1:20:24 PM
I want to create a simple procedure in Oracle that returns a resultset (a select query). In all the examples I've seen, you have to pass in a "ref cursor" OUT param into the proc from C#. Is there a simpler way to do this? IWO can I not pass anything in, and just declare the cursor in the proc...more >>

getting data from exchange server
Posted by Gerhard at 9/26/2006 12:49:01 PM
How can I get email data by email address from Exchange Server into a vb.net web application? The exchange server is on the same network as the web server. I basically need to be able to display what emails were sent to/received from based upon an email address, with the date, subject and ...more >>

Passing parameter for Stored Procedure to Data Adapter/Data Set
Posted by Rotciv at 9/26/2006 8:01:02 AM
Hey all, I'm trying to pass a parameter into my Stored procedure to be accessed by my data adapter into a dataset db2.AddParameter("@intClientID", cmbClientList.SelectedValue.ToString()); DataSet rsDataset = db2.Fill("spListMappingDetails", CommandType.StoredP...more >>

2.0 Auto Id in typed datasets
Posted by s.bussing NO[at]SPAM symax.nl at 9/26/2006 5:35:31 AM
Hi, I'm still strugling with the following situation. I've got two table which are related by a foreign key contraint. These table reside in a typed dataset. I working on a webbased app, so a disconnected environment. Now, when I add a row to the parent table and add rows to the childtable (th...more >>

TableAdapter specifing 'IN' in the where clause for list of id's
Posted by twahl at 9/25/2006 2:32:01 PM
Hi, I have a table that contains an interger primary key. I want to query the table for rows that have values equal to a list of ID's that I specify. The sql that I would use would be something like the following: SELECT FunctionalGroupId, ReportId FROM FunctionalGroupReportXRe...more >>

DataGridView or something else
Posted by JohnK at 9/25/2006 10:58:02 AM
from what I read & tried, DataGridView was meant for Window Forms, not for ASP/Web pages... correct? While I can use it to display data, I can't seem to figure out how to edit the cells... I'm not looking to put edit buttons on each row... I'll go back to regular window forms before I creat...more >>

how useful DbCommon namespace?
Posted by ZenRhapsody at 9/25/2006 10:37:30 AM
I am working on an application where the end user will select the type of datastorage to use (SQL, Oracle, Access, even Excel for some readonly data, and maybe more providers ) The application reads/writes data and even must be able to create tables in databases (or even create databases) as ...more >>

locking recoreds
Posted by Pure Heart at 9/24/2006 11:51:01 PM
hi i know in the VS 2005 when we use data access and binding there is no locking for data as before cuz its disconected but i wonder is this the standard now ? i mean when i make a query i will always be sure that maybe some recoreds out side my query will be modified by another user an...more >>

multidimensional array and data table help
Posted by Steve Arndt at 9/24/2006 9:25:59 PM
In vb6, I used getrows to load data into a multi-dimensional array. Since ADO.NET doesn't have getrows, I've succesfully loaded the same data into a datatable. How do I reference the data in the data table as a multi-dimensional array for (row and column), or load the data into an array from...more >>

SQL Server 2005 Express connection error?
Posted by jnikle NO[at]SPAM gmail.com at 9/24/2006 8:27:11 PM
When I run the code below in Visual Web Developer 2005 Express, I'm getting an "Unable to find the requested .Net Framework Data Provider. It may not be installed." error. I've been researching a fix for the past two days without any luck. I've tried completely uninstalling both VWD and SQL Se...more >>

ASP
Posted by UB at 9/24/2006 6:48:01 PM
I have a database ASP program that works off a centralized server. Now the client wants me to put it on laptops using SQL Server 2005 Express. I can do this but do not know of any way to protect my AP code from being viewed and stolen. Is there any easy or not too time consuming way to do thi...more >>

How to Remove SPAN tag from the Web Custom controls
Posted by Flavio at 9/24/2006 6:22:49 PM
i'm creating a WebUserControl that overrides the RenderContents method, on that i generate the HTML to the writer. here the problem is that on the html code of the page i've one more tag that i doesn't whant <span>! What can i do to remove this tag from the renderes results? Overrided Metho...more >>

Using a DataTable instead of a DataReader
Posted by jonefer at 9/23/2006 2:01:02 PM
I've gotten quite comfortable using a DataReader to grab a single value from a table as in the following: Public Shared Function IsUserAdmin(ByVal strNUID As String) As Long Dim dr As SqlDataReader Dim conMembers As SqlConnection = MembershipDB.GetMembershipConnection() ...more >>

Backing up master
Posted by Zach at 9/23/2006 1:29:53 PM
Re SQL Server 2005 Express Edition When I attempt to back-up the master file, I get told it is being used by another application. So the file cannot be copied for back-up. This is even the case after a complete shut-down of the PC. What is the solution to this? ...more >>

DataColumn.DataSetDateTime Property - What is it good for?
Posted by thomas at 9/23/2006 12:00:00 AM
Hello everybody, When I saw this new DataColumn.DataSetDateTime property for the first time I thought myself: wow, what a good idea! Perhaps ADO.Net seamlessly converts UTC to local and vice versa, so I will be able to store dates as UTC but display as local! All that just specifying DataSe...more >>

How t
Posted by ad at 9/23/2006 12:00:00 AM
I have a talbe, there is a smallDateTime field in it. I want to update this filed with a today's date. I want to make s sql like "Update myTable set dateField = {0}" I can I replace the {0} in the sql? ...more >>

Edit and update multiple rows at a single click
Posted by Rakesh Parekh at 9/22/2006 8:56:01 PM
Dear How can I select multiple checkboxes and update it to database at a single click on update button.The GridView allows to edit only one row at a time so for each row I have to select edit and than select checkbox and then click on update. How can I select multiples checkboxes and update ...more >>

How to use DataSet for MS-SQL and Oracle
Posted by Scott at 9/22/2006 6:58:01 PM
All, Is it possible to use the same (strongly typed) DataSet object with an Oracle table adapter (or data adapter) and a MS-SQL table adapter? It would be nice to use the same dataset object so the calling code can use only one dataset and not use one for each database type. Thanks in a...more >>

BeginEdit is ignored
Posted by SHB-MSDN NO[at]SPAM newsgroup.nospam at 9/22/2006 5:38:40 PM
Hi, Im pretty new to ADO.net and I ran into the following problem: I try to add a row to a DataSet that has NotNull-Constraints on its columns. When doing: DataRow row = ds.Tables["docdescriptors"].NewRow(); DocTypeDB dt = new DocTypeDB(row); NpgsqlCommand command = new NpgsqlComma...more >>


DevelopmentNow Blog