473,770 Members | 5,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need a tip: How do you streamwrite from two different db tables?

Hi,

I am using VB.NET and trying to pull data from two different tables in
the database. I am using what I think is standard code. But the data
I am pulling is like the following:

Table1 Column1 Row1
Table2 Column1 Row1 ~ 20
Table1 Column1 Row2 ~ 3

So I am going from one table to the other and back to the first.

I am wondering if there is a simple way to do this in vb.net? If you
could post a snippet, it would help me a lot.

TIA.

Oct 18 '06 #1
9 1578
Could you elaborate on what you are trying to accomplish? And could you
post the code you are using? The "normal" (imo) way to do this is to
build a sql command to pull the records from both tables, execute the
command into a dataset or datareader (depending on your needs) and then
do whatever you need to do with the data. Is this what you're doing?

Thanks,

Seth Rowe
Blarneystone wrote:
Hi,

I am using VB.NET and trying to pull data from two different tables in
the database. I am using what I think is standard code. But the data
I am pulling is like the following:

Table1 Column1 Row1
Table2 Column1 Row1 ~ 20
Table1 Column1 Row2 ~ 3

So I am going from one table to the other and back to the first.

I am wondering if there is a simple way to do this in vb.net? If you
could post a snippet, it would help me a lot.

TIA.
Oct 18 '06 #2

rowe_newsgroups wrote:
Could you elaborate on what you are trying to accomplish? And could you
post the code you are using? The "normal" (imo) way to do this is to
build a sql command to pull the records from both tables, execute the
command into a dataset or datareader (depending on your needs) and then
do whatever you need to do with the data. Is this what you're doing?

Thanks,

Seth Rowe
Hi Seth,

I was trying to do it without having to do a dataset because I'm still
confused on how to pull the data using DTR connections going from 1st
table to the 2nd and then back to the first...

Below is my code:

Dim stepper, n, filename As String
Dim SW As StreamWriter
Dim FS As FileStream
Dim ST1 As String = "Nothing here."

Dim cmd As System.Data.Ole Db.OleDbCommand
Dim cmdstp As System.Data.Ole Db.OleDbCommand
Dim DTR As System.Data.ole db.OleDbDataRea der
Dim DTRstp As System.Data.ole db.OleDbDataRea der 'steps database
reader

n = 1
stepper = "G" & n
cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort", cn)
cmdstp = New System.Data.Ole Db.OleDbCommand ("select " & stepper & "
from Steps", cn)
FS = New FileStream("Exp ort.rtf", FileMode.Append )
SW = New StreamWriter(FS )
DTR = cmd.ExecuteRead er()
Dim x As Integer = 0
'Pull data from first table into streamwriter
While DTR.Read()
x += 1
SW.WriteLine("P ersonal " & x & ": " & (DTR("Personal" )) &
vbCrLf & "Date Due: " & (DTR("Dates") & vbCrLf))
'pull in the second table data
DTRstp = cmdstp.ExecuteR eader()
While DTRstp.Read
If DTRstp(stepper) Is DBNull.Value Then
SW.WriteLine("N o Steps entered" & vbCrLf)
Exit While
End If
ST1 = DTRstp(stepper)
Exit While
Else
SW.WriteLine(ST 1 & vbCrLf)
End If

If ST1 = "Nothing entered..." Then
SW.WriteLine(ST 1 & vbCrLf)
End If
ST1 = ""
End While

'go back and pull from 1st table

SW.WriteLine(vb Tab & "Benefits: " & (DTR("descripti on")) _
& vbCrLf & vbTab & "Pits: " & (DTR("pits")) _
& vbCrLf & vbCrLf)
End While

' Clean-up.
SW.Close()
FS.Close()
System.Diagnost ics.Process.Sta rt("export.rtf" )

DTR.Close()

Oct 18 '06 #3
Could you post the dimensioning and declaring code for your connection
string (variable cn I believe)? I'm trying to see what type of database
you're connecting to.

Thanks,

Seth Rowe
Blarneystone wrote:
rowe_newsgroups wrote:
Could you elaborate on what you are trying to accomplish? And could you
post the code you are using? The "normal" (imo) way to do this is to
build a sql command to pull the records from both tables, execute the
command into a dataset or datareader (depending on your needs) and then
do whatever you need to do with the data. Is this what you're doing?

Thanks,

Seth Rowe

Hi Seth,

I was trying to do it without having to do a dataset because I'm still
confused on how to pull the data using DTR connections going from 1st
table to the 2nd and then back to the first...

Below is my code:

Dim stepper, n, filename As String
Dim SW As StreamWriter
Dim FS As FileStream
Dim ST1 As String = "Nothing here."

Dim cmd As System.Data.Ole Db.OleDbCommand
Dim cmdstp As System.Data.Ole Db.OleDbCommand
Dim DTR As System.Data.ole db.OleDbDataRea der
Dim DTRstp As System.Data.ole db.OleDbDataRea der 'steps database
reader

n = 1
stepper = "G" & n
cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort", cn)
cmdstp = New System.Data.Ole Db.OleDbCommand ("select " & stepper & "
from Steps", cn)
FS = New FileStream("Exp ort.rtf", FileMode.Append )
SW = New StreamWriter(FS )
DTR = cmd.ExecuteRead er()
Dim x As Integer = 0
'Pull data from first table into streamwriter
While DTR.Read()
x += 1
SW.WriteLine("P ersonal " & x & ": " & (DTR("Personal" )) &
vbCrLf & "Date Due: " & (DTR("Dates") & vbCrLf))
'pull in the second table data
DTRstp = cmdstp.ExecuteR eader()
While DTRstp.Read
If DTRstp(stepper) Is DBNull.Value Then
SW.WriteLine("N o Steps entered" & vbCrLf)
Exit While
End If
ST1 = DTRstp(stepper)
Exit While
Else
SW.WriteLine(ST 1 & vbCrLf)
End If

If ST1 = "Nothing entered..." Then
SW.WriteLine(ST 1 & vbCrLf)
End If
ST1 = ""
End While

'go back and pull from 1st table

SW.WriteLine(vb Tab & "Benefits: " & (DTR("descripti on")) _
& vbCrLf & vbTab & "Pits: " & (DTR("pits")) _
& vbCrLf & vbCrLf)
End While

' Clean-up.
SW.Close()
FS.Close()
System.Diagnost ics.Process.Sta rt("export.rtf" )

DTR.Close()
Oct 18 '06 #4
Hi,

Do you mean this?

cn = DbConnection1
Friend WithEvents DbConnection1 As System.Data.Ole Db.OleDbConnect ion
..Input, False, CType(0, Byte), CType(0, Byte), "Type",
System.Data.Dat aRowVersion.Ori ginal, Nothing))
'
'DbConnection1
'
Me.DbConnection 1.ConnectionStr ing =
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=database .mdb"

Thanks!

rowe_newsgroups wrote:
Could you post the dimensioning and declaring code for your connection
string (variable cn I believe)? I'm trying to see what type of database
you're connecting to.

Thanks,

Seth Rowe
Blarneystone wrote:
rowe_newsgroups wrote:
Could you elaborate on what you are trying to accomplish? And could you
post the code you are using? The "normal" (imo) way to do this is to
build a sql command to pull the records from both tables, execute the
command into a dataset or datareader (depending on your needs) and then
do whatever you need to do with the data. Is this what you're doing?
>
Thanks,
>
Seth Rowe
Hi Seth,

I was trying to do it without having to do a dataset because I'm still
confused on how to pull the data using DTR connections going from 1st
table to the 2nd and then back to the first...

Below is my code:

Dim stepper, n, filename As String
Dim SW As StreamWriter
Dim FS As FileStream
Dim ST1 As String = "Nothing here."

Dim cmd As System.Data.Ole Db.OleDbCommand
Dim cmdstp As System.Data.Ole Db.OleDbCommand
Dim DTR As System.Data.ole db.OleDbDataRea der
Dim DTRstp As System.Data.ole db.OleDbDataRea der 'steps database
reader

n = 1
stepper = "G" & n
cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort", cn)
cmdstp = New System.Data.Ole Db.OleDbCommand ("select " & stepper & "
from Steps", cn)
FS = New FileStream("Exp ort.rtf", FileMode.Append )
SW = New StreamWriter(FS )
DTR = cmd.ExecuteRead er()
Dim x As Integer = 0
'Pull data from first table into streamwriter
While DTR.Read()
x += 1
SW.WriteLine("P ersonal " & x & ": " & (DTR("Personal" )) &
vbCrLf & "Date Due: " & (DTR("Dates") & vbCrLf))
'pull in the second table data
DTRstp = cmdstp.ExecuteR eader()
While DTRstp.Read
If DTRstp(stepper) Is DBNull.Value Then
SW.WriteLine("N o Steps entered" & vbCrLf)
Exit While
End If
ST1 = DTRstp(stepper)
Exit While
Else
SW.WriteLine(ST 1 & vbCrLf)
End If

If ST1 = "Nothing entered..." Then
SW.WriteLine(ST 1 & vbCrLf)
End If
ST1 = ""
End While

'go back and pull from 1st table

SW.WriteLine(vb Tab & "Benefits: " & (DTR("descripti on")) _
& vbCrLf & vbTab & "Pits: " & (DTR("pits")) _
& vbCrLf & vbCrLf)
End While

' Clean-up.
SW.Close()
FS.Close()
System.Diagnost ics.Process.Sta rt("export.rtf" )

DTR.Close()
Oct 18 '06 #5
Bingo! I had a suspician you were using Access, but I wasn't sure. Why
not create your SQL text to pull the data from both tables and input
that into a datareader. Then just loop through that datareader and
write your data in the desired format. Also, if you are having trouble
writing the data in the correct format, please provide a snippet of
what the finished data should look like and I'll see what I can do!

Note, I might have misread what you are trying to accomplish since I
can't recreate what you are trying to do (as I don't have access to
your database). If my above suggestion is totally off, please post back
and let me know.

Thanks,

Seth Rowe
Blarneystone wrote:
Hi,

Do you mean this?

cn = DbConnection1
Friend WithEvents DbConnection1 As System.Data.Ole Db.OleDbConnect ion
.Input, False, CType(0, Byte), CType(0, Byte), "Type",
System.Data.Dat aRowVersion.Ori ginal, Nothing))
'
'DbConnection1
'
Me.DbConnection 1.ConnectionStr ing =
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=database .mdb"

Thanks!

rowe_newsgroups wrote:
Could you post the dimensioning and declaring code for your connection
string (variable cn I believe)? I'm trying to see what type of database
you're connecting to.

Thanks,

Seth Rowe
Blarneystone wrote:
rowe_newsgroups wrote:
Could you elaborate on what you are trying to accomplish? And could you
post the code you are using? The "normal" (imo) way to do this is to
build a sql command to pull the records from both tables, execute the
command into a dataset or datareader (depending on your needs) and then
do whatever you need to do with the data. Is this what you're doing?

Thanks,

Seth Rowe
>
Hi Seth,
>
I was trying to do it without having to do a dataset because I'm still
confused on how to pull the data using DTR connections going from 1st
table to the 2nd and then back to the first...
>
Below is my code:
>
Dim stepper, n, filename As String
Dim SW As StreamWriter
Dim FS As FileStream
Dim ST1 As String = "Nothing here."
>
Dim cmd As System.Data.Ole Db.OleDbCommand
Dim cmdstp As System.Data.Ole Db.OleDbCommand
Dim DTR As System.Data.ole db.OleDbDataRea der
Dim DTRstp As System.Data.ole db.OleDbDataRea der 'steps database
reader
>
n = 1
stepper = "G" & n
cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort", cn)
cmdstp = New System.Data.Ole Db.OleDbCommand ("select " & stepper & "
from Steps", cn)
>
>
FS = New FileStream("Exp ort.rtf", FileMode.Append )
SW = New StreamWriter(FS )
DTR = cmd.ExecuteRead er()
Dim x As Integer = 0
'Pull data from first table into streamwriter
While DTR.Read()
x += 1
SW.WriteLine("P ersonal " & x & ": " & (DTR("Personal" )) &
vbCrLf & "Date Due: " & (DTR("Dates") & vbCrLf))
'pull in the second table data
DTRstp = cmdstp.ExecuteR eader()
While DTRstp.Read
If DTRstp(stepper) Is DBNull.Value Then
SW.WriteLine("N o Steps entered" & vbCrLf)
Exit While
End If
ST1 = DTRstp(stepper)
Exit While
Else
SW.WriteLine(ST 1 & vbCrLf)
End If
>
If ST1 = "Nothing entered..." Then
SW.WriteLine(ST 1 & vbCrLf)
End If
ST1 = ""
End While
>
'go back and pull from 1st table
>
SW.WriteLine(vb Tab & "Benefits: " & (DTR("descripti on")) _
& vbCrLf & vbTab & "Pits: " & (DTR("pits")) _
& vbCrLf & vbCrLf)
End While
>
' Clean-up.
SW.Close()
FS.Close()
System.Diagnost ics.Process.Sta rt("export.rtf" )
>
DTR.Close()
Oct 18 '06 #6
Seth,

That is exactly what I am trying to do! I didn't think I could pull
from both tables using 1 connection?

If I can, I'd just combine the following two statements:

cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort" , cn)

cmdstp = New System.Data.Ole Db.OleDbCommand ("select " & stepper & "
from Steps", cn)

How would that look? Like:
cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort" & "select
" & stepper & " from Steps", cn)
rowe_newsgroups wrote:
Bingo! I had a suspician you were using Access, but I wasn't sure. Why
not create your SQL text to pull the data from both tables and input
that into a datareader. Then just loop through that datareader and
write your data in the desired format. Also, if you are having trouble
writing the data in the correct format, please provide a snippet of
what the finished data should look like and I'll see what I can do!

Note, I might have misread what you are trying to accomplish since I
can't recreate what you are trying to do (as I don't have access to
your database). If my above suggestion is totally off, please post back
and let me know.

Thanks,

Seth Rowe
Blarneystone wrote:
Hi,

Do you mean this?

cn = DbConnection1
Friend WithEvents DbConnection1 As System.Data.Ole Db.OleDbConnect ion
.Input, False, CType(0, Byte), CType(0, Byte), "Type",
System.Data.Dat aRowVersion.Ori ginal, Nothing))
'
'DbConnection1
'
Me.DbConnection 1.ConnectionStr ing =
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=database .mdb"

Thanks!

rowe_newsgroups wrote:
Could you post the dimensioning and declaring code for your connection
string (variable cn I believe)? I'm trying to see what type of database
you're connecting to.
>
Thanks,
>
Seth Rowe
>
>
Blarneystone wrote:
rowe_newsgroups wrote:
Could you elaborate on what you are trying to accomplish? And could you
post the code you are using? The "normal" (imo) way to do this is to
build a sql command to pull the records from both tables, execute the
command into a dataset or datareader (depending on your needs) and then
do whatever you need to do with the data. Is this what you're doing?
>
Thanks,
>
Seth Rowe

Hi Seth,

I was trying to do it without having to do a dataset because I'm still
confused on how to pull the data using DTR connections going from 1st
table to the 2nd and then back to the first...

Below is my code:

Dim stepper, n, filename As String
Dim SW As StreamWriter
Dim FS As FileStream
Dim ST1 As String = "Nothing here."

Dim cmd As System.Data.Ole Db.OleDbCommand
Dim cmdstp As System.Data.Ole Db.OleDbCommand
Dim DTR As System.Data.ole db.OleDbDataRea der
Dim DTRstp As System.Data.ole db.OleDbDataRea der 'steps database
reader

n = 1
stepper = "G" & n
cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort", cn)
cmdstp = New System.Data.Ole Db.OleDbCommand ("select " & stepper & "
from Steps", cn)


FS = New FileStream("Exp ort.rtf", FileMode.Append )
SW = New StreamWriter(FS )
DTR = cmd.ExecuteRead er()
Dim x As Integer = 0
'Pull data from first table into streamwriter
While DTR.Read()
x += 1
SW.WriteLine("P ersonal " & x & ": " & (DTR("Personal" )) &
vbCrLf & "Date Due: " & (DTR("Dates") & vbCrLf))
'pull in the second table data
DTRstp = cmdstp.ExecuteR eader()
While DTRstp.Read
If DTRstp(stepper) Is DBNull.Value Then
SW.WriteLine("N o Steps entered" & vbCrLf)
Exit While
End If
ST1 = DTRstp(stepper)
Exit While
Else
SW.WriteLine(ST 1 & vbCrLf)
End If

If ST1 = "Nothing entered..." Then
SW.WriteLine(ST 1 & vbCrLf)
End If
ST1 = ""
End While

'go back and pull from 1st table

SW.WriteLine(vb Tab & "Benefits: " & (DTR("descripti on")) _
& vbCrLf & vbTab & "Pits: " & (DTR("pits")) _
& vbCrLf & vbCrLf)
End While

' Clean-up.
SW.Close()
FS.Close()
System.Diagnost ics.Process.Sta rt("export.rtf" )

DTR.Close()
Oct 18 '06 #7
I don't believe that will work, but I can't try it out either. My
suggestion is to use the Query designer in MS Access to build the
query. Then, after you have the query behaving like you want, switch to
the SQL view and then copy and paste that into your program. I'm afraid
I can't help to much more than that - I don't really understand what
your program does. If you need more help, could you explain what
exactly you wish to accomplish?

Hope that helps,

Seth Rowe
Blarneystone wrote:
Seth,

That is exactly what I am trying to do! I didn't think I could pull
from both tables using 1 connection?

If I can, I'd just combine the following two statements:

cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort" , cn)

cmdstp = New System.Data.Ole Db.OleDbCommand ("select " & stepper & "
from Steps", cn)

How would that look? Like:
cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort" & "select
" & stepper & " from Steps", cn)
rowe_newsgroups wrote:
Bingo! I had a suspician you were using Access, but I wasn't sure. Why
not create your SQL text to pull the data from both tables and input
that into a datareader. Then just loop through that datareader and
write your data in the desired format. Also, if you are having trouble
writing the data in the correct format, please provide a snippet of
what the finished data should look like and I'll see what I can do!

Note, I might have misread what you are trying to accomplish since I
can't recreate what you are trying to do (as I don't have access to
your database). If my above suggestion is totally off, please post back
and let me know.

Thanks,

Seth Rowe
Blarneystone wrote:
Hi,
>
Do you mean this?
>
cn = DbConnection1
Friend WithEvents DbConnection1 As System.Data.Ole Db.OleDbConnect ion
.Input, False, CType(0, Byte), CType(0, Byte), "Type",
System.Data.Dat aRowVersion.Ori ginal, Nothing))
'
'DbConnection1
'
Me.DbConnection 1.ConnectionStr ing =
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=database .mdb"
>
Thanks!
>
rowe_newsgroups wrote:
Could you post the dimensioning and declaring code for your connection
string (variable cn I believe)? I'm trying to see what type of database
you're connecting to.

Thanks,

Seth Rowe


Blarneystone wrote:
rowe_newsgroups wrote:
Could you elaborate on what you are trying to accomplish? And could you
post the code you are using? The "normal" (imo) way to do this is to
build a sql command to pull the records from both tables, execute the
command into a dataset or datareader (depending on your needs) and then
do whatever you need to do with the data. Is this what you're doing?

Thanks,

Seth Rowe
>
Hi Seth,
>
I was trying to do it without having to do a dataset because I'm still
confused on how to pull the data using DTR connections going from 1st
table to the 2nd and then back to the first...
>
Below is my code:
>
Dim stepper, n, filename As String
Dim SW As StreamWriter
Dim FS As FileStream
Dim ST1 As String = "Nothing here."
>
Dim cmd As System.Data.Ole Db.OleDbCommand
Dim cmdstp As System.Data.Ole Db.OleDbCommand
Dim DTR As System.Data.ole db.OleDbDataRea der
Dim DTRstp As System.Data.ole db.OleDbDataRea der 'steps database
reader
>
n = 1
stepper = "G" & n
cmd = New System.Data.Ole Db.OleDbCommand ("SELECT Dex, Personal,
Description, Pits, sort, Dates FROM MasterList ORDER BY Sort", cn)
cmdstp = New System.Data.Ole Db.OleDbCommand ("select " & stepper & "
from Steps", cn)
>
>
FS = New FileStream("Exp ort.rtf", FileMode.Append )
SW = New StreamWriter(FS )
DTR = cmd.ExecuteRead er()
Dim x As Integer = 0
'Pull data from first table into streamwriter
While DTR.Read()
x += 1
SW.WriteLine("P ersonal " & x & ": " & (DTR("Personal" )) &
vbCrLf & "Date Due: " & (DTR("Dates") & vbCrLf))
'pull in the second table data
DTRstp = cmdstp.ExecuteR eader()
While DTRstp.Read
If DTRstp(stepper) Is DBNull.Value Then
SW.WriteLine("N o Steps entered" & vbCrLf)
Exit While
End If
ST1 = DTRstp(stepper)
Exit While
Else
SW.WriteLine(ST 1 & vbCrLf)
End If
>
If ST1 = "Nothing entered..." Then
SW.WriteLine(ST 1 & vbCrLf)
End If
ST1 = ""
End While
>
'go back and pull from 1st table
>
SW.WriteLine(vb Tab & "Benefits: " & (DTR("descripti on")) _
& vbCrLf & vbTab & "Pits: " & (DTR("pits")) _
& vbCrLf & vbCrLf)
End While
>
' Clean-up.
SW.Close()
FS.Close()
System.Diagnost ics.Process.Sta rt("export.rtf" )
>
DTR.Close()
Oct 18 '06 #8

rowe_newsgroups wrote:
My
suggestion is to use the Query designer in MS Access to build the
query.
AHA! Thanks...I always forget about that tool! I'm having good luck
so far. Thanks again,
Brad

Oct 19 '06 #9

rowe_newsgroups wrote:
My
suggestion is to use the Query designer in MS Access to build the
query.
AHA! Thanks...I always forget about that tool! I'm having good luck
so far. Thanks again,
Brad

Oct 19 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2606
by: Beyonder | last post by:
I have five tables in my database, there are actually NO common fields between them, not even a KEY or ID or anything like that, except for the "body" of a blob field. and that text is not identical, just a portion of that text is identical. each table has 5 fields, all different except the blob, which is called "message", so normally I use something like: select * from table1 where message like '%apple%';
9
2937
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with a device. The definition of the table is as follows: CREATE TABLE devicedata ( device_id int NOT NULL REFERENCES devices(id), -- id in the device
236
10075
by: Andrew Rawnsley | last post by:
Anyone out there using beta 2 in production situations? Comments on stability? I am rolling out a project in the next 4 weeks, and really don't want to go though an upgrade soon after its released on an Unsuspecting Client, so I would LIKE to start working with 7.4. -------------------- Andrew Rawnsley President The Ravensfield Digital Resource Group, Ltd.
25
2718
by: Bjørn T Johansen | last post by:
I need to write a SQL that calculates the interval between a start time and a stop time. This is the easy part. The problem is that I only have the time part, i.e. no date, so how can I be sure to also calculate the interval if the start time is before midnight and the stop time is after midnight? Regards, BTJ
2
1853
by: Dennis Gearon | last post by:
IPU, in place updates. -------------------------- 1/ Put a version numbers on each record represented by a byte/word sized number from a three version number list kept by the table header. This would then only involve one more byte per record. This version number list needs to be the VERY first item in the table header. The lowest ordered byte of the first word of the version number list contains the size of the words in bytes. The...
19
4108
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
6
3610
by: Lee Harr | last post by:
I have a database where I remove the schema public. When I try to use the createlang script, it fails like this ... >createdb foo CREATE DATABASE >psql foo -c "select version()" version --------------------------------------------------------------------- PostgreSQL 7.4.1 on i386-portbld-freebsd4.9, compiled by GCC 2.95.4 (1 row)
4
3138
by: KenLee | last post by:
help!! I used StreamReader and StreamWrite. the problem is it doesn't write all readline. For example it read 100 line and write 51lines. this is codes. class kenlee{ private StreamWriter sw ; private StreamReader sr; private String line;
7
12313
ADezii
by: ADezii | last post by:
There are essentially three techniques for publishing Access Data on the Web. The first technique is static, and does not allow for the dynamic addition or modification to the data, There is no direct link to the data, and in order to update it, you must republish. I am referring to the HTML Format. The second format, IDC, is an older, obsolete technology that runs on Microsoft web Servers. IDC has limited functionality, no script language...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10225
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10053
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8880
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3969
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.