.net - Nested Queries From Multiple Oracle Databases

Jul 21, 2011

In .NET, Is it possible to run a nested query from two separate Oracle databases?

[Code]...

Ultimately, this is an effort to overcome an "ORA-01795" error from using an "in" statement with over 1000 items in the conditional list, without having to break the query out into multiple "OR value IN" lists.

View 3 Replies


ADVERTISEMENT

VS 2008 Use Queries And Dealing With Databases Using LINQ Or SQl / Which Is Better To Start

Jul 6, 2010

I will start a new project, use the queries and dealing with databases using LINQ or SQl ,Which is better to start ???

View 4 Replies

Application That Runs Queries From An Oracle Db?

Dec 27, 2010

I have a problem related, not only to VB.net, but also Oracle.I have a simple application that runs queries from an Oracle db (Oracle 9i) and creates reports from it. I am using the official oracle.dataAccess component.I need a very simple report that returns a list of usernames. Something like "SELECT userName FROM users".(userName field is a VARCHAR2).Problem with this query:The top 50 rows are OK.All the remaining are strange characters.

[Code]...

View 4 Replies

Connect To Previous Other Databases Such As SQL Server, Oracle. But Getting An Error?

Jul 5, 2011

I am trying to Connect my VB.net Window Application to IBM_DB2 Database.I have used the same method to connect to previous other databases such as SQL Server, Oracle. But getting an error in DB2.

Dim cn As New OdbcConnection("dsn=Sample;uid=db2admin;pwd=password") 'Sample is DSN

cn.Open()

Dim da As New OdbcDataAdapter("Select * from Employee", cn)[code]......

View 3 Replies

Sql - "INNER JOIN" The Results Of Two Different Queries From Two Different Databases?

Jun 13, 2012

I connect to SQL Server database and grab a DataSet of the result with the following function:

[Code]....

View 3 Replies

Access Database That Has Nested Queries And Jet Database Engine

May 4, 2011

I have an access database that has nested queries. For example, the querydef below is called qs_Pedon_type: SELECT qs_Pedon_basic.peiid, metadata_domain_detail.domain_id, metadata_domain_detail.choice, qs_Pedon_basic.siteiidref FROM qs_Pedon_basic LEFT JOIN metadata_domain_detail ON qs_Pedon_basic.pedontype = metadata_domain_detail.choice_id

[Code]...

View 2 Replies

Multiple Sql Queries?

Nov 5, 2010

I have a form that will have at least 3 seperate sql queries that I want to have submitted with an onclick event.

View 4 Replies

Get Multiple Insert Queries From C#?

Apr 23, 2009

I am using C# and MSAccess as my database.

Code:private void ExecuteQuery(string strempname,string strQuestion,string IndividualRating,string OverallRating, string Comment1, string Comment2,string Comment3, string SessionName) { string strQuery= string.Empty; try { strQuery = "insert into FeedbackDetails(EmpName,Question,IndividualRating,OverallRating,Comment1,Comment2,Comment3,SessionName)"

[code]....

so this actually opens and close connection for every method. but i need to open and close the connection only one time. so how to customize this code to achieve my need. now i am hitting database for 14 times in a button click as of now. instead i need to hit only once but all the rows has to be inserted in my database.i am using MSAccess as Database.

View 3 Replies

Run Multiple Access Queries In .NET?

Oct 20, 2009

I have 2 queries to run, one after another.

View 7 Replies

Entities And Multiple Databases?

Sep 26, 2010

We've got the following scenario:

Central Database (replicated across multiple servers)
Client Database 1
Client Database 2

The Central db has Users and Roles amongst other things The Client dbs have similar tables to each other but with some fields tweaked - contact, address, At present, each client db has its own user/role information which is copied from the central db by a scheduled process. I want to retrieve the user/role information directly from the central db instead (bearing in mind tables in the client db make reference to the user entity)

View 1 Replies

.NET - DataGridView - Multiple Connections And Queries?

Oct 8, 2010

I am new(ish) to Visual Basic and i have learned from looking at old VB6 code for programs that have been made for us in the past, this includes using the old ADODB connections and FlexGrids which both have been changed in VB.Net to OLEDB and DataGridView.I have started to understand the way the connections and datasets etc are created but i am struggling to get to where i was with the old code (I am trying to completely upgrade the code from FlexGrid).This is the VB6 Code i am trying to upgrade from:

[Code]...

View 14 Replies

.net Search Button Multiple Queries?

Jan 13, 2012

i am creating a program in vb.net and was wondering if there is a way to perform multiple queries with one button without adding a second button. like i have two text boxes, one is for date and the other is for name. what i want to do is if i hit search and both the date and name boxes are filled, i want it to search for the name based on that date. but if only the name is filled i want to search for everything under that name.This is what i have. right now it only does one search:

[Code]...

View 1 Replies

How To Execute Multiple Queries In An Application

Nov 17, 2010

I'm building an application that will be using several (7) SQL queries, I'm wondering whats the best way to approach this since I've never built an app with this many queries in it. These queries really won't change, just the start date and end date and I have query in my first form that finds out the next available date by checking a table. What I'm wondering is if it would be better to construct these queries in my application or if it would be better to use stored procedures on my sql server to do the same thing and not have the application carry the load of the queries.

View 1 Replies

Run Multiple Queries With An Onclick Handler?

Nov 4, 2010

I have multiple queries that I need to run when a user clicks a button but they are all separate queries. Can this be done?

View 1 Replies

Search Button Multiple Queries?

Jan 8, 2009

Mi am creating a program in vb.net and was wondering if there is a way to perform multiple queries with one button without adding a second button.like i have two text boxes, one is for date and the other is for name. what i want to do is if i hit search and both the date and name boxes are filled, i want it to search for the name based on that date. but if only the name is filled i want to search for everything under that name

View 2 Replies

VS 2005 Multiple Database Queries?

Sep 8, 2009

I have a rather complicated application (for me anyway). I have a word template setup with text controls. A web app with ASP controls and vb backend code binds data to the text controls using an xml file.

[Code]...

View 7 Replies

VS 2010 Combine Multiple SQL Queries?

Feb 13, 2012

My project contains a DataGridView with a SQL Database Table called Shows. This is a list of TV Shows and I want to apply several filters to it. So I have several different columns to apply the filter to.

1. Completed (bit)
2. Hide (bit)
3. Seen (bit)
4. Genre (nvarchar)

Currently I am using RadioButtons to switch between the queries, but I want to be able to have several filters applied at the same time with CheckBoxes.

[Code]...

View 4 Replies

.net - Querying Values In Multiple Databases?

Oct 16, 2010

I'm using this function to return a value from multiple databases across three SQL instances (On the same server). I'm looping though a DataGridView that lists all the databases on one of the three SQL instances.Is there a faster way of doing this? It's quite slow using this method.

Function DatabaseStatus(ByVal SQLServer As String, ByVal Database As String)
Dim myConn As New SqlConnection("Server=" & SQLServer & ";User Id=USER;Password=PASSWORD;Database=" & Database & ";")
Dim Status As String = ""

[code]....

View 2 Replies

Best Way To Set Up Server That Could Hold Multiple Databases

Apr 5, 2010

connect my vb.net application to a remote sql server database, so every one who installs the application would be able to connect to the same remote database. the application would obviously require the internet to run.i also want the option to add more databases in the future, preferably one for each business who would use my software.i am wondering the best way to set up this server that could hold multiple databases. i would think i have two options:

1) set up the server myself on a dedicated computer

2) pay for some type of service that host sql server dataases

so how would i go about executing these options? i dont know the first thing. which option is better?i do however know how to connect to a remote database so thats not what i am asking.

View 5 Replies

Multiple Databases Information Display?

Jul 7, 2011

I currently have an old database that has tables for requests and customers. This information is currently displayed in ASP.NET

What I was required to do, was to connect a new database for users into this system, while keeping the tables for the requests in the old database. Thus it is using 2 databases. I have set it up so, when a user creates a new request, in the request tables it saves it with his userID from the new database, but when the table is being displayed, it uses this new userID to find the user information from the old customers table. Thus I ended up with this:

Sub BindDataGrid()
cmdoledb = New SqlCommand("SELECT r.customerid, r.RequestID, R.RequestDate, R.RequestDescription, a.AssignedTo, r.Urgency, r.ExCompletionDate from tbl_requests r, tbl_assignedto a where r.statusid = 1 and r.assignedtoid=

[Code]....

Currently it displays nothing, and gives out an error for myItem.Value = rdr.GetInt32(0) being a Null. I went through it step by step and it loads customerids normaly into the myItem.Value, but when they run out, it is supposed to exit, but keeps going, thus giving an error.

View 1 Replies

Combining Data From Multiple TableAdapter Queries?

Mar 9, 2009

I am trying to fill a temporary table with one column( a code) with the unique results of three queries of their respective table adapters.I can't figure out how to do it from here.The database is Access 2007 and I have activated the appropriate dataset on the form from which this code executes. The table adapters are part of that dataset.I could try to use the recordset approach, but that means making another connection to the same database.Is that a preferable approach?My purpose in doing this is to build a VB process like the one that works in a VBA Module of this Accessdatabase, partly to help me learn VB2008 and partly to overcome the necessity to keep updating queries used by the module.Code below

[Code].....

View 4 Replies

Keeping Dataset In Memory Or Multiple SQL Queries?

Apr 19, 2011

I need to loop through a gridview to find records that match items in a different table (in SQL). Is the best method to loop through the gridview and call an SQL procedure on every loop to find matching records? Or should I pull the entire sql db into a datatable and query the dataset in my gridview loop?

'find source ID based on make/model/serial No combination.
Dim cSource As New clsSource()
Dim ds As DataSet = cSource.GetSources()

[Code].....

View 2 Replies

VS 2008 Using Parametrized Queries With Multiple SQL Statements

Jun 25, 2009

There is not a VB.net database forum, and there is a HUGE difference (unfortunately) between ADO and ADO.net. I have a connection to a MS SQL database, which I understand is capable of handling multiple SQL statements in one Execution, ie

Using cmdExe As New System.Data.SqlClient.SqlCommand
sSQL = "Delete * from mytable where UniqueID=123;Insert into mytable (UniqueID, Field) values (123, 'something')"
.CommandText = strSingleSQLLine

[Code]....

There are two questions here actually...can I add the parameters before setting the command text, and do I have to add the same parameter over and over again?

View 3 Replies

Addding Multiple Databases (datasets) Into One VB Project

Jun 28, 2011

I have a dilemma. The program I"m trying to complete is one VB project with three (3) forms. The first form will act as a menu dialog box. The other two forms will have a dataset (database) on each form. The first form will have a button when clicked it will pull up form 2 and the second button when clicked will bring up form 3. What I add the dataset to form 2 everything is fine. I can see my tableadapter, dataset and so on. Now, when I add the second dataset (database) to form 3, I loose my, dataset and so on. It doesn't appear on any of the two forms (in designer)tableadapter.

View 1 Replies

Finding A Record Across Multiple Access Databases?

May 3, 2010

At my company, product is boxed and then placed on a scale/label printer set up in order to be weighed and labeled. The application running on the PC also records a record of each box in an MS Access Database which is then transferred to the main server. There is a separate access database for each scale PC and currently the only way our shipping department can print out a manifest for each pallet (which contains a list of all the boxes and their weights) is to open the correct access database and print out the report by entering the pallet number. Since there are six printer scales and the shipping person has no idea which scale it will be on just by looking at the number, she has to find the correct database through trial-and-error.

What I've been asked to do is create an application where she can simply type in the pallet number, and it will search each individual database for the number, then open the correct one where she can then print out the report without having to guess where it is. I've already figured out how to make the application open the database and report, but I don't know how to make it find which database the pallet record is contained in.Basically I want it to search a number of databases for a particular number in a field, and the return a value when it finds it of which database it is so that I can plug that in later. I have no idea how to do this and my searches online have proven fruitless.

View 3 Replies

Crystal Report Multiple Queries - Set Property (Setdatasource)

Dec 30, 2010

I Want to show result from multiple tables from database but how to set property (Setdatasource) for the same in vb.net. Iam using visual studio 2008 back end sql compact 2005

View 1 Replies

Datagrid And Queries With Multiple Joins To Update A Table

Jan 19, 2010

We use an ERP program in conjuction with SQL server and lots of tables that keep track of product records customers and all these kinds of stuff. I am building a fairly simple Warehouse Inventory Application that warehouse employees will use to count and inventory stock on hand from products around the warehouse and then check if any quantity errors occur between stock on hand and logistic quantities.I have created a custom Inventory table that I would populate with records like {stock_code, Description, Quantity_remain, quantity_avail}. Those records already exist in 2 different tables in my database. The aim is that I want my program to fetch daily 10 random codes from the stck table, and records about their quantities,bringing together the "columns" that my new custom table has +2 more editable columns: inventory, date, user with a query like this:[code]

As you can imagine my custom table contains the exact same fields as the query suggests + 3 more.I use the the stck table to fetch product info like its code,description, its group_code, categ_code, and then I outer join the stck_x_th that contains records concerning quantities remaining or available asociated with each product code and the "places" those quantities reside in the warehouse.Then, store them in a datagridview control, with only one editable column -inventory- (user and date columns are auto-populated with default values), and then when the user fills out the inventory quantites, I want to save the datagrid "as it is" in my new custom table.I am creating a databound gridview control using one table adapter (which refers to the inventory table). Then I add to my table adapter using "add query" the forementioned query with a fillby method to populate the Datagrid (and therefore my Table in SQL) with the exact same values my query returned from the different tables. But whenever I try to update the table concurrency exceptions raise.It works like a charm if I enter the values in the grid cells manually, without populating the grid control with the new fillby method my self but not if I populate the grid via a query and then hit update.

View 4 Replies

Nested Tokens - Multiple Instances In A String

Jun 22, 2010

I would like to use nested tokens, a similar question was asked in this thread [URL While this did address how to do it with a single instance, I was wondering how to do it with multiple instances in a string. ie.

input to textbox1
"I {love|like} {blue|red|orange|pink} its my {favorite|worst} color "

Press a button and would output a random word in the brackets to textbox2/msgbox similar to. "I like red its my favorite color" or "I love pink its my worst color"

View 2 Replies

Asp.net - Utilize Multiple Databases In An Entity Framework Solution Simultaneously?

May 31, 2011

I have two unrelated databases and I need to pass data back and forth between them. Right now I have created two separate entity models - one for each database - but this is causing issues in my code b/c I have to do a Using nameofcontext / End Using and when I try to then use some of the results from the first section of the code in a second Using nameofcontext / End Using it doesn't like it - b/c I've closed the connection to the first database!

View 1 Replies

How To Write / Save Data File (Multiple Nested Arrays)

Nov 22, 2010

I Have a complex Class Structure that holds a large amount of data in the form of multiple nested arrays that I want to save to a file and retrieve everytime I use my program.. How do I do this? I am using VB10 Express.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved