Search for primary key data using a button in ADO

240 byte By AndySim1983 at 2007-11-25 0:39:52
Does anyone know how to search a primary key data using a button so that to display out the row of data in the access<br/>when u click the search button it will auto search the primary key data n display out the rows of data for you...

search button

171 byte By AndySim1983 at 2007-11-25 0:40:51
if i wanna put a button and search for a particular data in database so that it will display out that particular row of data in the database in ADO c++..how do i do it ...

GUI in ADO

206 byte By AndySim1983 at 2007-11-25 0:45:08
Hod do i make the display in ADO in c++ look like this <br/>(PRMTBL,NOT_NOT,NORMAL)<br/>when my current display look like this<br/>PRMTBL NOT NOT NORMAL<br/>how do i put the source code ??

Search button in ADO c++

252 byte By AndySim1983 at 2007-11-25 0:45:09
If i want to put a button in ADO c++ and search for particular data in the binding data from the database like search for table number and then it will search for that data and display other row of data that link with table number..how shall i do it ??

ADO version

673 byte By gurupot at 2007-11-25 0:45:17
Hi,I use ADO to execute some SQL statements in my C++ code. Our test machines are windows NT. One of the NT machines is not starting our application and the error I see in the log file is Error = [COM ERROR = []. hr=[0x80004003]. ADO Version = [2.1]]..Looks like the ADO version I have on that box is...

Insert DATAREADER into DATAGRID control

681 byte By pavanjosh at 2007-11-25 0:45:19
Hello All,I want to insert a dataReader object into DataGrid object . the code looks like thisconn = new SQLiteConnection(Form1.connectionString);string query = "SELECT * FROM patient";SQLiteCommand cmd = new SQLiteCommand(query,conn);conn.Open();SQLiteDataReader dataReader = cmd.ExecuteReader();da...

DataSet Inheritance !

198 byte By hthm at 2007-11-25 0:45:37
Hi there..<br/>How make DataSets Inherit from each others, in the DataSet Designer ?<br/>if it is done by using ( Import ) then how ?<br/>an Example would be helpful.<br/>thanks.

Pls help me. I want to use ADO to read records from MS Access 2003 in a DLL.

2921 byte By yukuang at 2007-11-25 0:52:41
Dear all, I want to use ADO to read records from MS Access 2003 in a DLL - a LSP DLL that would be loaded by multithread. Here is my code:BOOL WINAPI DllMain(IN HINSTANCE hinstDll, IN DWORD dwReason, LPVOID lpvReserved){ switch (dwReason) { case DLL_PROCESS_ATTACH: hDllI...

Look at this!

570 byte By nishandj at 2007-11-25 1:07:27
Can sombody tell me how to do this...I filled a data table like thisDataTable dt=new DataTable();dt=ds.Tables[0];And then I assign this dt to DataGridView in C#.Net 2005 like this,DataGridView1.DataSource=dt;It was successfull but the empty values come from Database shows on the grid as it is and I...

Managing database deletions?

765 byte By kobus at 2007-11-25 1:11:02
I hope I can explain the problem clear enough. I am loading data from my database into a DataSet and then display the data in a ListView. The user can then select one or more of the records in the ListView for deletion and the click the Delete button. After the Update method of the DataAdapter was c...

How to call an Oracle Stored Procedure that returns REF CURSORS using ADO in C++

3671 byte By fournij at 2007-11-25 1:14:55
Hi I want to call this oracle stored procedures "vi_list_print" : PACKAGE BODY VNM_TEST_PKG IS --return list of masters function vi_list(p_address in varchar2) return vnm_masters_c is l_cursor vnm_masters_c; begin open l_cursor for select *...

SQL Server Express question

278 byte By gokhan at 2007-11-25 1:16:23
Hi i have 2 computers and connected via lan.One of my computer has SQL Server Express edition and i am coding in c# at the other computer.i want to add some values and coloumns to my table and i have to connect to the SQL Express.How can i connect to the DB of my other computer

System Error

636 byte By gokhan at 2007-11-25 1:16:48
SqlConnection myConn = new SqlConnection();myConn.ConnectionString="Data Source=myIP,1433;Network Library=DBMSSOCN;Initial Catalog=gokhan;User ID=sa;Password=systems"; myConn.Open(); try {string StrSql = "INSERT into netonetable(netonename) VALUES myname";SqlCommand myCommand = new SqlComma...

Error E_NOINTERFACE with PostgreSQL OLE DB Driver

504 byte By fouf at 2007-11-25 1:23:48
Hi,I'm trying to simply query my PostgreSQL Database in C# with OLE DB drivers:myDB is a previously successfully opened OleDBConnectionmyDB.Command = myDB.Connection.CreateCommand();myDB.Command.CommandText = "SELECT player_id FROM players";myDB.Reader = myDB.Command.ExecuteReader();while (myDB...

updating a database using a single dataset

536 byte By jayadeep at 2007-11-25 1:34:04
hi firends this is my problemi get bunch of xmls from the client side which relate to data in set of tables on my servernow the question is can i store the data in my xmls into a single dataset and can i use the single dataset to update all the table in my databasefor examplexml1|.........|............

creating typed ADO.NET DataSets, C#

189 byte By Autofreak at 2007-11-25 1:45:57
Hello All,<br/> I need to create a DataSet definition file to use it later on generate DataSets for reporting purposes. <br/>What options do I have?<br/>Thanks,<br/>Serge

is item changed to default ?

462 byte By kaixa at 2007-11-25 1:50:49
i just want to make this clear.i am using Managed C++ (VS 2005). after i make some DataRow instance, i can't find the item property. even intellisense can't find it. the weird thing is, that property is registered on MSDN May 2006 as a member of DataRow Object.as a replacement, i can use d...

IsNullable != AllowDBNull

406 byte By j_schumann at 2007-11-25 1:52:28
Hello!I'm trying to get schema information about a tables columns (Access db using OleDb) and found out that IsNullable (As provided by OleDbConnection.GetSchema("COLUMNS") ) and AllowDBNull (As provided by OleDbCommand.ExecuteReader().GetSchemaTable() ) are not equal for all fields (tabe colum...

DataReader and Multiple Stored Procedures

178 byte By sys_daw at 2007-11-25 1:53:26
Using the datareader you can execute multiple SQL statements and step through each of the result sets. Is it possible to execute multiple stored procedures using the same method?

reading and updating a cell value in a dataset

334 byte By cgtalk at 2007-11-25 1:53:57
hihow can i read a value from a table in my dataset and then modify this value and save it again in it's original position in the dataset and then update the original data base.the value is integeri've done it using normal sql query but i couldn't do it in the datasetC# and MS Access...

Coming to ADO.NEt from Delphi, many questions

1488 byte By Delphi2dotNet at 2007-11-25 1:54:26
Hi, I am a long time Delphi developer who is now moving to .NET. I have a lot of experience with Delphi's implementation of ADO, the .NET implementation is quite different and I'm a bit confused on some points.I am using ADO with ASP.NET BTW, not Windows forms.My first and most pressing qu...

Load Entire DB

1244 byte By adamsjr1 at 2007-11-25 1:57:31
Hi,Is there a way I can load an entire access db into a dataset with one dataadapter?Because I have been doing some reading and it looks like it can be done and it will automatically build the dataTables to but I can't get it to work.here is some test code I wrote:<code> OleDbConnection...

Login screen sample code to connect to SQL server using ADO.net

241 byte By mpoincare at 2007-11-25 1:58:42
Hi everyone,<br/>I need some sample code of connecting to a sql server db from information entered from a login screen (User ID and Password). I also to capture the SQL server group the user is assigned to.<br/>Thanks for your help everyone.

finding a row number in Access db and row insertion question

552 byte By cgtalk at 2007-11-25 1:59:05
hi how can i know the row number from my dataset or database dependingin a value in other columni want to select a value from a cell in a row that have a column value = "sometext";another questionwhen i'm insering a row in my database , are there any sorting issues the the database is doing it...

Query Builder C#/VB.NET component

278 byte By Autofreak at 2007-11-25 2:05:01
Hello,<br/> I would like to incorporate a query builder component into my application so that I could bulid sql statement dinamicaly (SQL Server, Access). Are there anything in MS or third party tools you can suggest? <br/> <br/>Thank you,<br/>serge

My dataset accepts only 2 tables!

1840 byte By cgtalk at 2007-11-25 2:06:12
himy program was working well but when i tried to add another table frommy database to the dataset the program only takes two random tables string MainGroupString = "SELECT * FROM MainGroup"; string GroupDataString = "SELECT * FROM GroupData"; string ComboBoxDataString...

Bindingsource to encapsulate in class

897 byte By martinstenert at 2007-11-25 2:07:09
I have encapsulate a Datatable, Dataview and Bindingsource in a class with VB 2005. When i try to bind the bindingsource to a datagridview and to a bindingnavigator the synchronisation doesn't work. The same code without a class works fine. Any suggestions ? Here the methode from the class for...

error Oracle.DataAccess.Client.OracleCommand to type System.Data.Common.DbComman

551 byte By pavanjosh at 2007-11-25 2:22:04
I am using Oracle.DataAccess.Client dll, Unable to cast object of type 'Oracle.DataAccess.Client.OracleCommand' to type 'System.Data.Common.DbCommand'"The stack trace shows the follwing:[InvalidCastException: Unable to cast object of type 'Oracle.DataAccess.Client.OracleComm...

Help: UInt32 vs Int32 as foreign and primary keys

347 byte By Lou Arnold at 2007-11-25 2:23:11
UNSIGNED INT in a mysql database is being seen as Int32 in a Net 2.0 dataset.I have tried this several ways and I found that primary keys are marked as UInt32 in the dataset and foreign keys are marked as Int32 despite them being created in the database as UNSIGNED INT. Does anyone understand why,...

DataGridView Combobox Problem

896 byte By Lou Arnold at 2007-11-25 2:23:14
My DGV Combobox generates Data Error excpetions for each row. They are display and formatting related. I'm sure the problem is that the DGV combobox doesn't have access to both tables in the dataset, and so can't get the foreign key that selects a row out of a lookup table that the co...

ADO .NET MySQL

227 byte By kimoo at 2007-11-25 2:29:32
Dear All,<br/>I am really having problems connecting to MySQL 5.0 using ADO .NET<br/>can anyone show me code to if that code is in vb.net it would be cool..<br/>1. Connect<br/>2. Save<br/>Regards,<br/>kimoo

List Box Issues....Again! Assistance Requested

1916 byte By Pat Tum at 2007-11-25 2:35:20
I am a relative newcomer to C#, having started writing programs only 10 months ago. With the help of Mahesh Chands's ADO.Net in C# (and a few others), I have been able to decipher most of the code necessary to write basic programs, however, I have now reached an issue that I cannot find address...

DataGridView Binding in .Net 2.0

807 byte By Pat Tum at 2007-11-25 2:46:07
Good Afternoon Experts (and especially aniskhan),I am trying to bind a DataGridView to a dataset that holds a single database table so that it can be used to easily update changes to the database using an update button. However, when I attempt to use the dataGridView.SetDataBinding() property, it d...

MySQL Connector Net 1.08 and C#

367 byte By divined at 2007-11-25 2:50:45
Hello everybody I want to connect to a MySQL 5.0 database under C# using the MySQL Connector Net 1.08 drivers. I know that I need to use the MySQLConnector object. But that object is not recognized by the compiler and I thus get a compilation error. Do I need to add some sort of reference in the ID...

timeout exception

942 byte By jasie24 at 2007-11-25 2:53:24
I'm having a problem with queries when the database increase.When the database increase let's say.. about 100MB, some queries give me this Exception of "Timeout Expired or server not available.."etcI tried to find solution. I read about the SqlCommand and its "Timeout" property to set hig...

system out of memory

488 byte By jasie24 at 2007-11-25 2:53:27
i have executed a script with insert into table... linesa lot of it, and it gives me system out of memory exception, even if the computer has a memory of 2G.and the script with the insert commands have around 2 mil. lines, around 90MB (the phisical sql file) .Can i get some help, or links... what s...

Problem with multiple recordsets

1707 byte By dreamer60 at 2007-11-25 2:58:45
I am writing a database application in vb.net using Ms Access and oledb. I have opened a database connection using a connection string as follows:dbCon = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\MyApp\Phone.mdb;Persist Security Info=False") dbCon.Open()I have 3 DataReade...

Local Database

126 byte By faizmh at 2007-11-25 2:59:13
I am developing an application which requires a local database.<br/>I need som tips/guide/suggestions of which databse to use.

Fill method

754 byte By dreamer60 at 2007-11-25 3:01:00
What does the second argument of the Fill method od the DataAdapter object mean? Is it the name of a physical table in the database or is it just a temporary table? I am using a sql join statement as the argument of the constructor of the DataAdapter as follows: strSQL = the sql join statem...

How to connect SQL Server with SSL

89 byte By tarecorp at 2007-11-25 3:07:53
Hi,<br/>Can I connect SQL Server with SSL ? if yes, how?<br/>Thanks in Advance.

sql statement for retrieving column headers?

775 byte By giddy_guitarist at 2007-11-25 3:08:46
hi ,i just started C# and SQL sometime ago , i'm using .NET 2 , and oledb /access database file.is there an sql statement to READ the column headers in a given table.In my app , the user can add an arbitrary amount of colums .. .so whilereading the table i would need to know the columns header...

BLOB Data and Stream

463 byte By matze42 at 2007-11-25 3:10:05
Hi,i have to write and read Blob Data from an SQL-Server Database.Currently i do this with a Stream by Saving and Loading the data to a local File ( usualy a temp-file ).As the Blob Data aren't very huge ( about 8kB ) i ask myself if theres a direct way to write and read the data.I tried Stream...

DataTable update problem

187 byte By nicoej2004 at 2007-11-25 3:14:21
When trying to update my data table an exception occurs: "The column cannot contain null values. [,,,,,]". Is there a way to check which column is the one that cannot contain null values?

Sql Database not updating

867 byte By Ms.Longstocking at 2007-11-25 3:22:28
VB 2005SQL Server ExpressdatasetUserinfo is filled with values from my DB (using sqlclient)datagridviewUserinfo is bound to my dataset I am uploading data ( CSV file ) into my dataset (using ODBC) The dataset reflects the row additions (datasetUserinfo.Tables("userinfo").Rows.Count)I am attempting t...

ADO events (server to client)

8 byte By XRX at 2007-11-25 3:24:43
(ignore)

SQL Query Early Validation

216 byte By vinitsankhe at 2007-11-25 3:28:30
Hi GUys,<br/>Does DOT NET framework (ADO.NET) provides a way for Early SQL validation? i.e. when we write the SQL in code usinlg ASQL command object or by any other means, it should perform syntactic validations

login form to connect to MS access

818 byte By monkeymafia at 2007-11-25 3:29:23
hi i have a MS access database. with the table user and with the fields User_ID and password.I also have a simple login form in VB. 2 txt boxes and a login button. what i wanted to know was how to allow a user to login into the application by checking their user name and password in teh access db. s...

using ADO.NET for IBM DB2 connection

469 byte By saaniaferoze at 2007-11-25 3:30:57
Hi,I am totally new to ADO.NET. I have a DB2 database on my local machine and I want to connect to it using VC# ( i-e Visual Studio 2005). I am not sure how to specify the connection string etc. I dont see the DB2 database in the system.data as well ? (obviously !!! because it is a third party tool)...

Updating problem

1540 byte By ledaker at 2007-11-25 3:34:12
Hi, i have a table Post with 2 columns (Post_P varchar(255),Post_E varchar(255)) when i update the dataset after the insertion of a row i have n error, this is my source code ConfigureDataSet=new DataSet(); ............ OdbcConnection c; c = new OdbcConnection("DRIVER={MySQL ODBC 3.51 Dr...

ADO.Net

293 byte By sureshkumarct at 2007-11-25 3:35:14
I am writing a database application in vb.net using ado.net.For data access I am using OleDB and connect to the database via a connection string.But data access and fetching is very slow.Is there any other data access technologies other than OleDB in ado.net with faster data access methods?