Click here to Skip to main content
15,919,479 members
Home / Discussions / Database
   

Database

 
GeneralDuplicate a database Pin
OmegaSupreme16-Apr-04 4:51
OmegaSupreme16-Apr-04 4:51 
GeneralRe: Duplicate a database Pin
RichardGrimmer16-Apr-04 5:51
RichardGrimmer16-Apr-04 5:51 
GeneralRe: Duplicate a database Pin
OmegaSupreme16-Apr-04 6:18
OmegaSupreme16-Apr-04 6:18 
GeneralRe: Duplicate a database Pin
RichardGrimmer16-Apr-04 6:35
RichardGrimmer16-Apr-04 6:35 
GeneralRe: Duplicate a database Pin
OmegaSupreme16-Apr-04 7:55
OmegaSupreme16-Apr-04 7:55 
GeneralRe: Duplicate a database Pin
refugeees19-Apr-04 20:51
refugeees19-Apr-04 20:51 
GeneralDisplay records from Oracle Pin
bearOrangeToezz15-Apr-04 23:01
bearOrangeToezz15-Apr-04 23:01 
GeneralRe: Display records from Oracle Pin
RichardGrimmer20-Apr-04 22:09
RichardGrimmer20-Apr-04 22:09 
Could you not add a constraint to your query like "WHERE EmployeeID = XXX" etc...

You could dynamically form the SQL in code, and then use ADO to run that query, or alternatively write a PL/SQL package with parameters....

Simplest method would be something of the form:

<br />
Dim strSQL as string = "SELECT * FROM EMPLOYEE"<br />
<br />
strSQL = strSQL & "WHERE EmployeeID=" & txtEmployee.Text<br />
strSQL = strSQL & " AND StartDate > " txtStart.Text<br />
strSQL = strSQL & " AND EndDate > " txtEnd.Text<br />
<br />
Debug.Writeline (strSQL)<br />
<br />
'Execute the SQL<br />
Dim oConn as new System.Data.Oledb.OledbConnection (strConnectionString)<br />
Dim oDA as new System.Data.Oledb.OledbDataAdapter(oConn, strSQL)<br />
Dim oDS as Dataset<br />
<br />
oDA.Fill (oDS)<br />
<br />
'Output no. rows<br />
Debubg.Writeline (oDS.Tables(0).Rows.Count)<br />


Is this the sort of thing you need? Can supply an ADO rather than ADO.net version, and can't guarantee that the syntax of the above is correct - did it outside of the IDE!!)

"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
GeneralAssistance please Pin
Gary Ranson15-Apr-04 5:25
Gary Ranson15-Apr-04 5:25 
GeneralStrongly typed DataSet from a web service Pin
bjoernen15-Apr-04 2:51
bjoernen15-Apr-04 2:51 
GeneralDuplicate a SQL Server table Pin
Robby15-Apr-04 2:11
Robby15-Apr-04 2:11 
GeneralRe: Duplicate a SQL Server table Pin
RichardGrimmer18-Apr-04 22:26
RichardGrimmer18-Apr-04 22:26 
GeneralRe: Duplicate a SQL Server table Pin
-Dr_X-20-Apr-04 10:02
-Dr_X-20-Apr-04 10:02 
GeneralSQL query required Pin
Shah Shehpori15-Apr-04 1:10
sussShah Shehpori15-Apr-04 1:10 
GeneralRe: SQL query required Pin
raj_sarna15-Apr-04 1:41
raj_sarna15-Apr-04 1:41 
GeneralRe: SQL query required Pin
Colin Angus Mackay15-Apr-04 1:52
Colin Angus Mackay15-Apr-04 1:52 
GeneralAdding new rows to empty table in C# Pin
Craig Bumpstead14-Apr-04 21:21
Craig Bumpstead14-Apr-04 21:21 
GeneralRe: Adding new rows to empty table in C# Pin
-Dr_X-15-Apr-04 16:36
-Dr_X-15-Apr-04 16:36 
GeneralRe: Adding new rows to empty table in C# Pin
Craig Bumpstead18-Apr-04 12:19
Craig Bumpstead18-Apr-04 12:19 
Generalrun time error Pin
williamchou14-Apr-04 16:12
williamchou14-Apr-04 16:12 
GeneralRe: run time error Pin
Nino_114-Apr-04 16:19
Nino_114-Apr-04 16:19 
GeneralRe: run time error Pin
williamchou14-Apr-04 16:56
williamchou14-Apr-04 16:56 
GeneralRe: run time error Pin
Mike Dimmick15-Apr-04 2:26
Mike Dimmick15-Apr-04 2:26 
GeneralProblems with Sandbox Mode Pin
blakeb_114-Apr-04 9:23
blakeb_114-Apr-04 9:23 
GeneralRe: Problems with Sandbox Mode Pin
monrobot1314-Apr-04 10:00
monrobot1314-Apr-04 10:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.