Posting changes back to DB

515 byte By mccreatl at 2007-11-24 17:08:24
How do I post changes in the datatable back to the DB? Const Con_string As String = "Data Source=(LOCAL);Initial Catalog=MyDB;Integrated Security=True" Const Command_String As String = "select * from Samples" Dim myDataAdapter As New SqlDataAdapter(Command_String, Conn_string) Di...

multiple databases..

225 byte By abhi_mehra at 2007-11-24 17:12:18
apologies for askin this kinda question..but..<br/>i just wanted to confirm whether my application in vb.net using mysql would support the incorporation of another database...once my currently active database gets exhausted??

Query with if statement :/

387 byte By beeper at 2007-11-24 17:12:37
Hi. I need to create a view, where i have some informations column about product. I have columns like that:ID(int), Name(varchar), Price(money), Tax(bit)I need to create a query where if Tax=1 then in Price column show a Price=Price+22%, when Tax=0 then Price=Price+7%. How to do that?I want to resul...

connectivity problem

550 byte By patnaiksrikant at 2007-11-24 17:12:58
1)whenever i try to connect with my oracle database then i am getting an error message that an oracle error has occured and oracle could not give the error message. and it gives me a dialog box to enter uname,password and server name2)while connectivity with oracle i am getting an error stating tha...

Copy Command

1501 byte By mccreatl at 2007-11-24 17:20:19
Why won't the Update Command work here?DS1 has 3 rows and DS2 is empty. Both have the same schema withcol1 being the primary key. I want to copy DS1 to DS2 and save thechanges back to the original database but Update doesn't do that here. Dim connection1 As New OleDbConnection...

dates in Access

198 byte By abhi_mehra at 2007-11-24 17:21:36
hi...<br/>can u please explain me as to how to handle Date data type in Access..<br/>each time it gives a different..i mean that its not clear to me whether days or months come first..<br/>thanks...

I cannot update the Data grid fields for the following example:

8157 byte By kenn_rosie at 2007-11-24 17:22:38
I cannot update the Data grid fields for the following example:The grid and 2 buttons are visable but I cannot mainpulate (update) the dataImports System.Data.SqlClientPublic Class WebForm1 Inherits System.Web.UI.Page#Region " Web Form Designer Generated Code " 'This call is required by t...

nput string was not in a correct format

3297 byte By kenn_rosie at 2007-11-24 17:23:34
Input string was not in a correct format. Line 94 seems to be the culprit but I don't know whyDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exc...

Excute another program from my program

167 byte By hiennl at 2007-11-24 17:23:47
Can you help me?<br/>I wan to excute another *.exe file from my program (I have a button, when click on it then another program running)<br/>I'm programming by C#

windows application fill combobox dynamically

881 byte By btkaruna at 2007-11-24 17:25:58
hi all,In table the id is int where i using following code to fill combo box following is the error i am receiving . "cast from string system.data.datarowview to type integer is not valid"following is the code i am usingDim myCommand As New SqlCommand("gettest", conn) myCommand.CommandType...

problems with loading forms and firing off picBox click events and ADO.net

10029 byte By lew26 at 2007-11-24 17:28:01
Hi,Form and PictureBox HelpI am working a project that is suppose to load a startup welcome form then close the frmwelcome(1 st form) and then open the main form ( ane once i close the second i want it to close everything). Also I am having problem with the click events for picBox i have used the .n...

HOW TO: find a table in Microsoft Access Database Using ADOX and Visual Basic .N

754 byte By vbdummie at 2007-11-24 17:28:15
If have been able to successfully create a MS Access database and a single table. The database name is secure.mdb and the table is tblauthorise. The program I am creating needs to create a new table for each month of the year eg tblJan2006, tblFeb2006...... tblDec2006.What I am having trouble with i...

new to ADO

268 byte By Ronor at 2007-11-24 17:29:47
I am new to .NET and to ADO. I am using "Visual C# .net". I downloaded MSDE 2000. In the "Development Envionment" when I open "Server Explorer" the "data connections" entry can not be expended. What should I do to see the SQL service?<br/>Thank you<br/>Ronor

Multiple table problem

1803 byte By kenn_rosie at 2007-11-24 17:30:26
I was hoping someone could take the following data and show me the steps to make it work. I can do it with a single table but not with multiple tablesThe web will have the following fields:db NAME "DUDE"Policy Number (Insurance Table)LastNAme (Custome Table)RenewalDate (Insurance Table)1. User...

ADO + Multiple excel sheets + Append in .xls files

794 byte By debabratam@hotmail.com at 2007-11-24 17:32:48
I want to open an excel through as connection. and from another data source I want to retrieve data and put it on excel file.Is it ppossible to use the existing excel file and append the data at the end of the existiong file. I know that new files can be created but what about append?Another one,For...

"Declaration expected"

2043 byte By kenn_rosie at 2007-11-24 17:33:54
In my code below, When I go to a new line, it will not let me put the ( ) at the end of Dim ds As New DataSet I can enter the parenthesis () but it removes them when I go to a new line Also the dataAdapter.Fill(ds, "progs")gives me the error"Declaration expected"Here is mycode so far:*************...

system.componentmodel.invalidenumargumentexception

245 byte By btkaruna at 2007-11-24 17:37:13
hello,<br/>when trying to retrieve data into second combobox based on first combo selectedvalue i am receiving system.componentmodel.invalidenumargumentexception error.pl.hep me how to solve this prob.<br/>Thanks in advance<br/>karuna

why use catalog rather than database= ?

222 byte By kenn_rosie at 2007-11-24 17:39:12
why use catalog rather than database= ?<br/>I have notice some connection strings use<br/>either "database=" or "catalog=" in their<br/>connection string.<br/>Are they the same or is their a reason <br/>for the difference.

HowTo: Pass a columnname as parametername in stored procedure

251 byte By Maurice Sanders at 2007-11-24 17:43:32
Normally you pass values as parameters.<br/>But how can I pass a columnname as parameter in a stored procedure.<br/>The procedure should look like somehow.<br/>select * from A where @columname = 'Test'<br/>Regards,<br/>Maurice

Advice on ADO.NET and C++

736 byte By henningandersen at 2007-11-24 17:50:37
Hello,Im in the situation where I have to decide on technology on my project and I need advice for this. The scenario is that we have some legacy code based on C++ and db2 which we want to move to MS SQL Server. We dont want to rewrite the whole lot in C#, but rather minimize the work by only replac...

How to enable "Change Icon" in Shortcut

315 byte By uotmiem at 2007-11-24 17:52:12
Does any body know how to set up "create shortcut" from Primary output so after installing a program, when I right click on properties of an application's shortcut, the "Change Icon" is enabled? The "Change Icon", "Find Target" of my shortcut's properties are grey out.Thanks in advance,Uo...

dbase file, its name is over 8bytes,can not open

1328 byte By jen0309 at 2007-11-24 17:52:32
Hi , i try open dbase file which filename is over 8bytes, using ado .but i cannt .the error message is 'can not find myDbase89.dbf file'.but 'myDbase8.dbf' file opens well.how do ...please, look over the code following and help me....////////////////////////////////////////////...

need help with excel oleDB INSERT INTO Command

3782 byte By lew26 at 2007-11-24 17:54:51
hi, I am working on a project and what i am trying to accomplish is i want this particular code to save the values from mutiple text boxes into a excel file. When i run the code I get a exception error mesaage that states, "Syntax error in INSERT INTO statement". P.S. Also I was wondering once i sol...

Need Help On ADO / Class Module Interface In VB6

1961 byte By aserf at 2007-11-24 18:02:44
Hello, I am somewhat new to Vb programming and in need of a little help!I am writing a Class Module that wraps ADO connections. I have been successful in sending a recordset from the Class to a user form for processing but am having a problem sending the recordset back to have it update throught the...

output reports in web form

152 byte By jasonli at 2007-11-24 18:04:16
In my asp .net web application project, I want to display a report in web form. the report is from Access database. How can I do?<br/>Thanks a lot.

sQL 2K to 2005

301 byte By skyhawk at 2007-11-24 18:05:47
we are planning to migrate from sql 2k to 2005, im just wondering if we may need to change some codes in my vb.net program...currently, the backend that we're using is sql 2k, will there be any changes that we need to do when i change or migrate to sql 2005?thanks in advance!...

How to assign columns of two diferent tables to "valuemember" and "displaymember

1131 byte By gd2q at 2007-11-24 18:07:25
Hello friends.I have a quite peculiar problem. I would like to have a combobox that showed values of a field (key primary of a table) and besides I would like to record this value in another different field of a diferent table (that it would be foreign key). I know that with ADO this fact was possib...

Binding a checkbox to MSAccess

744 byte By pescado at 2007-11-24 18:10:19
I have a checkbox whose checked property I'm trying to bind to a Yes/No field in MSAccess. I'm working in disconnected mode with a dataset, and it's working fine when I fill the dataset and view records with simple bound controls, including the checkbox. I can also check or uncheck th...

Saving Byte data to SQL server DB

223 byte By hkb at 2007-11-24 18:15:42
Hi <br/>Can Anyone please help in saving byte data from VB.NET to SQL server db. Please guide how would i design the DB. and how should i save this byte data from VB.net to SQLserver2000<br/>Kind regards<br/>Ali Ahmad

Dumping data in excel from a particular cell

888 byte By debabratam@hotmail.com at 2007-11-24 18:15:54
Can anyone help me in the following context.I need to create an excel worksheet and need to put data into that...I used ADO and C++.Creation of excel sheet if the file does not exists, dumping data onto it works fine for me.But the problem is The requirement is like that I need to dump data from a p...

Synchronization of DB tables?

623 byte By kobus at 2007-11-24 18:20:31
HiWe have a MySql database (A) on a Linux machine and a MS Access database (B) on a windows machine. One of the tables in each of these two databases must be synchronised constantly. In A new records are added but no other modifications to records are done. In B records can be added, modified or del...

How to dinamically select an entry in connectionStrings at runtime?

662 byte By lyseie at 2007-11-24 18:24:30
Hi,I've a running .NET 2.0 app that connects to DB locally (thru ODBC), using an entry in connectionStrings section in web.config.Now I want to connect to a second DB, but adding justanother entry in web.config (see below).<connectionStrings> <add name="My1stDbConn" connectionString="...

Recordset mutex

61 byte By Biancazzurri at 2007-11-24 18:29:30
hi<br/>do i need to make a mutex to ADODB::_Recordset object?

Newbie Question on Stored Procedures

1002 byte By Broodmdh at 2007-11-24 18:40:20
I am trying to write a stored procedure that receives data passed from a web page and generates some data within itself. I'm not having a lot of success so far. I want to pass 5 variables into the procedure and insert them, along with one that I populate when the procedure runs, into the tabl...

help with setting up data adapter please please please

799 byte By sharccie at 2007-11-24 18:40:59
I've got Visual Studio 2003 and SQL Server 2005 set up, and we're using ASP.net with C#. I've got a web form set up, but everytime I drag over a table to the form, I get the following error:The wizard detected the following problems when configuring the data adapter for "Table1".Detai...

SQL Server log: Login succeeded for user APPL_ACCOUNT. Connection: Non-Trusted.

2538 byte By THY02K at 2007-11-29 14:56:25
I'm having performance issue with this ASP.NET app. From SQL Server log there're MANY MANY log which resembles the following:SQL Server log: Login succeeded for user 'APPL_ACCOUNT'. Connection: Non-Trusted.I'm talking thousands in one morning. And I am suspecting that this i...

connection coding

387 byte By karthik_balus at 2007-11-24 18:42:01
Hello, Im new to asp.net... I dont know how to connect the backend with two text boxes in the webform... Please give me the exact coding for getting connceted in the backend with text boxes...the database should be updated in backend while we enter the information in the text box... give me codin...

DataRelation

3644 byte By ineed at 2007-11-24 18:42:28
i trying to create parent hyperlink and children hyperlink. I have my parent table name t_linkchapter and children t_linktitle..where link_chapterid is the primary key in table t_linkchapter and i also set link_chapterid as foreign key in t_linkchaptermy code are as below. but i found and compilatio...

adding field to existing table

463 byte By kashikoi at 2007-11-24 18:43:43
hi, i would like to know how to add fields to an already created table. i am using visual c++, ado, and access database file for my database. the .mde file is already created with existing tables and existing data in those tables. i am trying to use visual c++ and ado to open one of the existing...

foreign key, select on related tables

664 byte By FMadore at 2007-11-24 18:43:58
Hi,Let's say I got two different tables:customers: custID, custNameorders : orderID, custID, orderDatecustID is a foreign key in "orders"In my application, the user selects in a ComboBox a CustNameI want to retrieve all the orders corresponding to that customernameI use MySQL and I would l...

Updating database

1381 byte By Brijesh at 2007-11-24 18:44:57
Here is my scenario.pls help me out of possibleI have an access database table containing 16000 rows and 24 columns and there is no primary key for the table(the main problem) although there is a index column which has unique values.I am using VS.net 2002 and language is vb.netMy actual program conc...

error executereader

1223 byte By vbnov at 2007-11-24 18:45:11
Dim objConnection As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="path") objConnection.Open()rndnum = rnd(99999999)sql1 = "SELECT OrderID FROM Orders WHERE Orders.OrderID = '" & rndnum & " ' " Dim MyCommand As New OleDb.OleDbCommand(sql1, objCo...

ADO wildcard?

423 byte By Niro1983 at 2007-11-24 18:47:29
hi, im having a problem binding data to a crystal report. but actually i think the problem is caused by ADODB from which i get the data. The problem is, when there are field names with an underscore, eg: U_IDADO doesnt bind it. I use .csv files as data source and use MS VC++ 6.0.How do i write the C...

Typed dataset and ReadXml...

737 byte By d00_ape at 2007-11-24 18:48:07
Hi!I have some problems with my typed dataset, the dataset contains several datatables and the problem occurs when i try to load the dataset with the ReadXml function. The problem is that some of the tables won't load properly. For example:MyDataSet ds = new MyDataSet;ds.ReadXml("ds.xml");The t...

Querying a dataset

1124 byte By Broodmdh at 2007-11-24 18:51:09
I am trying to use a single dataset to populate several dropdownlists on a page by using different queries to produce different results for each list. I had thought that I could simply specify criteria for the datatable (the only table in the dataset), but I'm been unsuccessful so far. My cod...

Data Grid Child Table expanding

312 byte By Alex Rest at 2007-11-24 19:08:21
I created two tables that have relation one-to-many.I included them to a DataSet, created relation and assigned to DataGrid.Question:When a user click [x] for expanding table row he sees the link to child table.How do so that instead link user can see whole table immediately?Thanks...

copy a row from one table to another

655 byte By wpilcher at 2007-11-24 19:11:46
This has to be simple but I can't find a way to do it. I have a temporary table that has unedited data in it. Then I have a vb.net form that reads these records into a dataset and allows user to navigate thru these records to edit the data. When all edits are passed the user clicks a button...

dataset updation

1510 byte By soniyakapoor03 at 2007-11-24 19:16:47
hi guys, i have big problem in datagrid updates,i am binding a datagrid from two tables. in datagrid i had one check box.if i checked the the check box i had to pass the information to the database.on click a button this has to happenMy code is given belowprivate void btnRoleSelect_Click(object send...

Dataset and Visual Studio 2005

756 byte By d00_ape at 2007-11-24 19:19:01
Hi!I have some questions about datasets in VS2005 and SQL Server 2005. I have added a dataset to my project and added all interesting tables in my DB using the 'data source configuration wizard', all works like a charm. But now to the interesting bit, i have changed the design of some of t...

checkbox in datagrid

778 byte By soniyakapoor03 at 2007-11-24 19:20:51
hi friends,I new to .net.please help.i had a datagrid in c# asp.net.in this datagrid i had a check box.when i click on the check box,i want to get the row id of the checked row.is there any method in .net.my code is like thisthis.grdRoles.ItemCommand+=new DataGridCommandEventHandler(grdRoles_ItemCom...