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 2006 > threads for august 15 - 21, 2006

Filter by week: 1 2 3 4 5

dataset safety?
Posted by Ausclad at 8/21/2006 7:45:01 PM
Hi, I am currently looking at re-writing a payroll/timesheet application that is currently in Access. The users need to enter timesheet hours for numerous employees. Up till now I have been experimenting and using strongly typed datasets as generated by VS. However as these provide a d...more >>


OCI.DLL: The specified module could not be found + OCIEnvCreate fa
Posted by imhl58 at 8/21/2006 4:35:06 PM
In VS2005 (Version 8.0.50727.42), I'm trying to create a "Data Connection" in the "Server Explorer" window ... I right click on "Data Connections" ... and choose "Add Connection" ... In that window, I change the "Data Source" to "Oracle Database" ... Then for "Server Name" I enter "newbi...more >>

multi threaded database access with transactions
Posted by Smokey Grindle at 8/21/2006 3:54:43 PM
I have a program that runs on multiple threads working with database sproc calls... these need to be all ran in transactions.... how can I get something similar to parallel transactions or at least to the point where they dont cause each other to crash? They all work with the same database c...more >>

Oracle 10g Float and Double Database Datatypes are not supported
Posted by Valkyrie-MT at 8/21/2006 3:49:12 PM
Greetings, I have data values that are inherently of type Double. Current we are using Oracle Column Datatype NUMBER. When I create a TableAdapter in VS2005, the database table column information is read from Oracle and a new Table is created. However, the detected datatypes are always D...more >>

Global Cancel
Posted by Joe at 8/21/2006 12:10:30 PM
I want to create a single Cancel method to cancel all changes made to any fields in a UserControl. I have a method that creates a Binding object, adds it to a collection and than adds the Binding to the control. textBox1.DataBindings.Add(CreateDataBinding("Text", myobject, "Caption") ); pu...more >>

MySQL database connection
Posted by rockdale.green NO[at]SPAM gmail.com at 8/21/2006 10:13:33 AM
Hi, All This is the first time that I code asp.net against mySQL database. I am confused that which connector should I use 'cause I do not want make the wrong choice and have some problems later on? one is from mySQL official website http://www.mysql.com/products/connector/net/ or ODBC...more >>

Retrieving database schema
Posted by Mark at 8/21/2006 8:56:01 AM
Hi Everyone: I’m new to the VB.NET development platform, and I’m trying to understand how to retrieve database schema information from either of these databases: Microsoft Access, Microsoft SQL Server 2000, or Oracle. I recently bought a reference book titled “Beginning VB.NET Database...more >>

Count rows in dataset WHERE ...
Posted by Assimalyst at 8/21/2006 7:23:12 AM
Hi, I am attempting to do a number of count functions on a single table of data for presentation in an ASP webpage. The functions are number today, number this week, number this month etc. As the Database table is large it does not make sense to query it directly a number of times. My idea ...more >>



Newbie needs help
Posted by clayton.curmi NO[at]SPAM gmail.com at 8/21/2006 2:36:23 AM
Hi everyone, I'd like to access a database using C#. I've installed the Visual Studio 2003 and mysql essential and mysql administrator. On Visual Studio I go on server view and right click on SQL Servers, then I click on Register SQL Server Instance. It will prompt me to enter the instance na...more >>

dataset - Insert-query with stored procedure using wizard
Posted by Jon Haakon Ariansen at 8/21/2006 12:00:00 AM
Hi all, I don't know where to publish this question but hope this newsgroup is okey. I'm working in Visual Studio 2005 and are now creating a dataset file where I will do all the transactions with the database. I have a consumer table where I want to insert, update and delete consumers. ...more >>

Keyword similar to App(VB6.0) in VB.NET
Posted by Jack at 8/20/2006 10:52:01 PM
Hello all, Can anyone here suggest me the keyword App similar to that in VB.NET? Iam developing a application which uses MS-Access as the database. In vb6.0 I use App to find the path and connect to the database example: dbname = App.Path & "\XXXXXX.mdb" Could anyone here please sugges...more >>

OleDb vs. Sql Interoperability
Posted by Alex Maghen at 8/20/2006 8:10:01 AM
I'm building a lot of ASPX pages and business objects that consume and interact with database data. Some of this is done with data-binding, some is done with programmatic calls to Stored Procedures, Views, etc. I've created a DB class that I use to simplify and make consistent my inteaction...more >>

Strange error message
Posted by cashdeskmac at 8/20/2006 6:24:01 AM
I am inserting a new record into a table which has 4 columns, the first being an identity column. I am adding three strings to the other 3 columns using an ExecuteNonQuery. I have set the values of the parameters for the InsertCommand. The error I am getting is that the Input is not in th...more >>

Insert Date into SQL c# - Correct Format
Posted by vividpetals NO[at]SPAM googlemail.com at 8/20/2006 4:09:57 AM
Hallo guys, I am getting bonkers (sorry). i have sql2005express/c#. I have calender and i get the dates right DateTime DeployDate = Convert.ToDateTime(Calendar1.SelectedDate); i tried putting the deployed date as a string and having Calendar1.SelectedDate.Convert.ToString as well after thi...more >>

Need some help on forms
Posted by harrypotter at 8/19/2006 9:18:23 AM
Hey, YO...., I NEED SOME HELP HERE ! Actually, I got some info from a good guy called ScottT, but I need more. You see, I'm kind of stuck in here. I need to connect two forms. But the problem is... I don't know the codes. What I wanna do is click a button from...more >>

StoredProc commits results in QueryAnalyzer but not in ADO.NET
Posted by tracybannon NO[at]SPAM cheerful.com at 8/19/2006 7:47:18 AM
I'm hoping someone can help! I have a stored procedure in an MSDE database. When I use Query Analyser to run this stored procedure the correct results appear in the database. My stored procedure returns resultCode. The stored procedure includes a single BEGIN TRANSACTION [...] COMMIT T...more >>

CSV header conating "." dot and after loading it into dataset its converting into "#"
Posted by Line_Eater at 8/19/2006 1:21:57 AM
CSV header conating "." dot and after loading it into dataset its converting into "#" LIKE. First.Name First # Name waiting for your reply ...more >>

How to know the first sheet name of an Excel
Posted by ad at 8/19/2006 12:00:00 AM
I use the codes below to import the first sheet of an Excel file into a DataSet. But if the name of the first sheet is not "Sheet1", the SelectCommand will fail. How can I know the sheet name of the first Sheet in an Excel file? string sConnectionString = "Provider=Microsoft.Jet.O...more >>

How to determinate if a string in the Field names of a dataTable?
Posted by ad at 8/19/2006 12:00:00 AM
Hi, I have a dataTable with some fields. How can I determinate if a string in the Field names of a dataTable? ...more >>

Using Oracle.ClientAccess.Data with System.Data.Common
Posted by John Wright at 8/18/2006 2:13:02 PM
I am trying to return a datatable using the Oracle driver. In order to return a dataset from the stored proc I need a cursor type to receive the data. How is this possible with the Common namespace since it does not have a cursor or refcursor type? John...more >>

Trying to restore a .bak in C#
Posted by Jayyde at 8/18/2006 11:18:50 AM
Can I run a SQL command like: RESTORE DATABASE NewDB FROM DISK = 'ApplicationStartupPath\SQLSE2005\DevDB.bak' WITH RECOVERY, MOVE 'DevDB_Data' TO 'C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\Data\\NewEB_Data.mdf', MOVE 'DevDB_Log' TO 'C:\\Program Files\\Microsoft SQL Server...more >>

SqlTypes Decimal
Posted by carlospedr NO[at]SPAM gmail.com at 8/18/2006 5:32:51 AM
Hi, I'm using .Net Framework 2.0. I Querying an Sql 2000 Database to fill a Dataset, the user dynamically choses what tables to query to fill the dataset. I need to provide information to the user about the tables, information such as the type and size of the columns. Though at start this...more >>

Stored Proc problem
Posted by manoj241176 NO[at]SPAM gmail.com at 8/17/2006 11:04:37 PM
Hi, I am having stored proc which returns 2 resultsets, now i want to call this stored proc within another stored proc, but i want to use only the second resultset from the previous stored proc. So please tell me how can i do this.?? Thanks in advance, Regards, Manoj Singh. ...more >>

SqlCommandBuilder - not setting my identity column
Posted by rtennys NO[at]SPAM hotmail.com at 8/17/2006 9:15:02 PM
I ran into a problem when I tried to use SqlCommandBuilder to generate my insert statement. The problem was the identity column wasn't being set when I called Update. It was set correctly in the database, it just wasn't updating my inserted DataRow. This caused issues when I went to add rows ...more >>

database writing efficiency
Posted by Jeff Boeker at 8/17/2006 2:34:02 PM
I need to log 400 values every second into an access database. Previously I did this in C++ using OLEDB and after a lot of experimentation, I minimized the peak CPU usage by writing out the data in a separate thread every 10ms. Now I have to do this in C# and I am uncertain as to the most ef...more >>

ADO.NET 2.0 - Simple question for you...
Posted by VB Programmer at 8/17/2006 2:07:16 PM
I have an ASP.NET 2.0 website. I want to write a function in ADO.NET 2.0 (VB.NET) that does the following: 1. Opens up a connection to my SqlExpress db. (The connectionstring is in the <connectionStrings> section of my web.config) 2. Runs a query, storing results in a datatable. 3. Closes...more >>

Datatable size in memory
Posted by klj_mcsd NO[at]SPAM hotmail.com at 8/17/2006 12:38:26 PM
Does anyone know of a way to estimate how much memory a datatable is using? Are they any user-friendly tools that I can find this info out? Thanks ...more >>

MS Access modules
Posted by zdrakec at 8/17/2006 10:18:34 AM
Hullo all: Is there a nifty way to retrieve a list of the macros / code modules in an MS Access database using ADO.NET, a la OleDB.OleDBConnection.GetOleDbSchemaTable for retrieving tables and views? Thanks much, zdrakec ...more >>

Simple SQL INSERT
Posted by Scott at Cedar Creek at 8/17/2006 12:43:01 AM
I have a SQL INSERT statement. I'm pretty well-versed in SQL but NOT in VB.NET / ASP.NET. I would like to know what VB code is for inserting a new row into a database. I have a SQL Table established already. I would like to know the code required to insert a new row to that SQL Table. I d...more >>

Simple SQL INSERT
Posted by Scott at Cedar Creek at 8/17/2006 12:40:02 AM
I have a SQL INSERT statement. I'm pretty well-versed in SQL but NOT in VB.NET / ASP.NET. I would like to know what VB code is for inserting a new row into a database. I have a SQL Table established already. I would like to know the code required to insert a new row to that SQL Table. I d...more >>

DataGridViewComboBoxColumn seperate items
Posted by gabe at 8/17/2006 12:23:02 AM
I'd like to have separate items in the DataGridViewComboBoxColumn for each row, For an example look at the vs2005 query builder. Column(0) is the fieldName and contains a list of the fields from the table named in column(2). If the table selected in column(2) of a particular row is change...more >>

downloading of a file from internet explorer
Posted by kamal at 8/17/2006 12:00:00 AM
Hi, Generally we will download the files using internet exlorer defalut download manager.By using C# or VB.Net how will we get the file information which we are trying to download from the Internet explorer. Is it possible. If any one helps thanks in advance. if any one have Code it wi...more >>

DataRelation problem
Posted by manoj241176 NO[at]SPAM gmail.com at 8/16/2006 10:02:26 PM
Hi, I want to use DataRelation object for setting up relationship between two different datatable, but i want to use multiple columns to set up relation between two tables. For example. DataRelation dRelationOrgInd = new DataRelation("OrgInd", ds.Tables["OrgList"].Columns["iIDOrganization,...more >>

DataSet designer in VS2005
Posted by Nils Magnus Englund at 8/16/2006 8:53:24 PM
Hi, I have two questions about the DataSet designer in Visual Studio 2005: 1. How can I make another TableAdapter under a DataTable which already has one? I'm sharing the DataSet with the DataTable between two applications, and they need separate TableAdapters... 2. I've created the Dat...more >>

Newbie and 2005 Concurrecny
Posted by Oh-its-all-gone-wrong at 8/16/2006 5:01:32 PM
Hi All, Hope you all fine? Can I ask you all a quick question? I`ve been trying to get concurrency to work for my project in VB2005. I have the following code, which to be fair i`ve got so lost with but here it is: Private Sub BTADSL_Load(ByVal sender As System.Object, ByVal e As System....more >>

Auto uncrement column
Posted by Adrian at 8/16/2006 3:26:57 PM
Im am trying to create an auto increment column in a table. Where in the code below, should I make which changes in order to do that? Adrian /* dt.Columns.Add("Key", System.Type.GetType("System.Int32")); dt.Columns["Key"].AutoIncrement = true...more >>

Problem with a readonly table in a dataset (data source) in VS 200
Posted by Cathy at 8/16/2006 1:52:02 PM
I created a data source that point to an Access database with 3 tables in it. My problem is that the tables are designated read only and I don't know how to change the setting so I can copy data to them. I can see the public property in the config file but I am new to Visual Studio 2005 and ...more >>

SQL UPDATE for Dates ??
Posted by glenn at 8/16/2006 8:22:01 AM
Hi folks, I have 2 code snippets. One works and one does not. This first hard-coded snippet works Dim queryString As String = "UPDATE [rfi] SET [dateresolved] = '8/16/2006' WHERE ([rfi].[id] = @id)" This second snippet does not work Dim dtNow As DateTime = DateTime.Now d...more >>

DataSet Designer/adding multiple tables to a dataset/ how?
Posted by Curtis at 8/16/2006 3:27:01 AM
In the VS2005 DataSet Designer if i try to add multiple tables from an OLEDB database, i get an error: "Failed to add TableAdapter." "An item with the same key has already been added." What does this mean? How do i get around it?...more >>

Changing ConnectionString programmatically
Posted by Ole at 8/16/2006 1:23:01 AM
Have the following situation: I have an old C++ application, which I have managed to compile with /clr to make it access .net functionality. For some of the new functionality I have decided to create a C# DLL, being a very neat and handy language. I have used wizards to create the dataset, ...more >>

what ado.net object to use problem
Posted by ads at 8/16/2006 1:15:01 AM
I need to accomplish this tasks: 1. i need to query sql database 2. check if null, if not continue 3. check a certain column if null,if not continue 4. filter or split the data into two sets, these 2 will be the datasources of two gridview. i can use datareader to query sql database, check ...more >>

Challenging ADO.NET situation (long)
Posted by Erik Funkenbusch at 8/15/2006 6:21:04 PM
I've implemented a solution that I don't really think is very efficient, but I can't really think of a better way to do it. If anyone has any suggestions or citicisms, i'd be grateful to hear them. .NET 2.0/SQL 2000 (not 2005). I have two identical databases that need to be syncronized, sepe...more >>

SQL UPDATE with a DATE data-type
Posted by glenn at 8/15/2006 5:45:01 PM
Hi folks, I am doing an UPDATE to a table that has a field for a DATE data type. I am using MS Access. The UPDATE works fine but when I try to place the DATE field in the mix it blows up. The table name is rfi. Here's a code snippet... Dim dtNow As DateTime = DateTime.Now ...more >>

PARAMETERS/value in SQL, how to set?
Posted by Edwin Knoppert at 8/15/2006 4:02:58 PM
I would like to use access (for testing, then ASP.NET) to execute a query which uses another query where a value must be set like ID = 2 or so. How can i do that? Here is my example, i created Table2 with an ID field and a name field (totally useless but it's they idea what matters). Quer...more >>

SQL2000 error: ... When connecting to SQL Server 2005
Posted by prefersgolfing at 8/15/2006 3:22:27 PM
The complete error is : 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 - C...more >>

Speed and memory usage of Dataset
Posted by dougd at 8/15/2006 3:18:30 PM
I will start by saying I am somewhat new to ADO.net, that said here goes. I have a dbase file with 450,000+ records, (400MB+ file size) I am loading only the UniqueID field into a DataSet and I have 2 problems. 1. It takes about 45 seconds to load 2. It is consuming about 400MB of RAM at that...more >>

Failed to enable constraints but please tell me sth.
Posted by DariuszTarczynski at 8/15/2006 9:42:59 AM
Hello. I'm know, there is tones of pages in google, etc. about problem: "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints." I'v read a lot, but this solutions doesn't resolve my problem. I'm using Strongly typed datasets, and ...more >>

Loop Through a Folder of Excel Workbooks in VB.NET
Posted by kvenkatu NO[at]SPAM yahoo.com at 8/15/2006 7:49:14 AM
Hi, Can anyone tell me how to Loop Through a Folder of Excel Workbooks using VB.Net? I have a folder with Excel files. Each spreadsheet has multiple worksheets. I need to read each worksheet and get the data and transfer that data to a database table. I am not sure how to loop through Excel ...more >>

Locking Datatable / Data Row
Posted by Prem at 8/15/2006 4:55:02 AM
Hello, if you have defined a DataSet in the HttpApplicationState which is shared by all current users ... what I have to do, to make the Dataset, DataTables and DataRows thread-safe? Following my assumptions: 1) If I change a Row: lock (datarow) { datarow["xy"] = value; } 2) If ...more >>

Problems using SqlConnection
Posted by Mika M at 8/15/2006 12:00:00 AM
When my application uses OleDb-provider like... Private Sub TryOleDbConnection() Try Dim i As Integer Using cn As OleDbConnection = New OleDbConnection() cn.ConnectionString = "Provider=sqloledb;MYSERVERNAME\MYINSTANCE;Password=xxx;User ...more >>


DevelopmentNow Blog