Click here to Skip to main content
15,896,063 members
Home / Discussions / Database
   

Database

 
GeneralRe: SSIS Excel connection is creating another temporary file and interfering with the FileSystemWatcher Pin
indian1434-Jan-17 10:58
indian1434-Jan-17 10:58 
Questiondoubt in logical schema of database Pin
Member 129343424-Jan-17 3:19
Member 129343424-Jan-17 3:19 
AnswerRe: doubt in logical schema of database Pin
Afzaal Ahmad Zeeshan4-Jan-17 3:42
professionalAfzaal Ahmad Zeeshan4-Jan-17 3:42 
AnswerRe: doubt in logical schema of database Pin
Richard MacCutchan4-Jan-17 5:01
mveRichard MacCutchan4-Jan-17 5:01 
GeneralRe: doubt in logical schema of database Pin
Eddy Vluggen4-Jan-17 7:02
professionalEddy Vluggen4-Jan-17 7:02 
GeneralRe: doubt in logical schema of database Pin
Richard MacCutchan4-Jan-17 22:04
mveRichard MacCutchan4-Jan-17 22:04 
QuestionMySql - No results from query with WHERE Pin
BobbyStrain2-Jan-17 16:44
BobbyStrain2-Jan-17 16:44 
AnswerRe: MySql - No results from query with WHERE Pin
Mycroft Holmes2-Jan-17 20:45
professionalMycroft Holmes2-Jan-17 20:45 
GeneralRe: MySql - No results from query with WHERE Pin
Jörgen Andersson2-Jan-17 22:56
professionalJörgen Andersson2-Jan-17 22:56 
GeneralRe: MySql - No results from query with WHERE Pin
Mycroft Holmes3-Jan-17 10:29
professionalMycroft Holmes3-Jan-17 10:29 
AnswerRe: MySql - No results from query with WHERE Pin
Bernhard Hiller2-Jan-17 21:01
Bernhard Hiller2-Jan-17 21:01 
GeneralRe: MySql - No results from query with WHERE Pin
BobbyStrain3-Jan-17 4:30
BobbyStrain3-Jan-17 4:30 
QuestionDelete rows from a foxpro dbf file, that seems to be locked Pin
jkirkerx28-Dec-16 13:04
professionaljkirkerx28-Dec-16 13:04 
AnswerRe: Delete rows from a foxpro dbf file, that seems to be locked Pin
CHill6029-Dec-16 3:59
mveCHill6029-Dec-16 3:59 
GeneralRe: Delete rows from a foxpro dbf file, that seems to be locked Pin
jkirkerx29-Dec-16 7:04
professionaljkirkerx29-Dec-16 7:04 
AnswerI got this working partially, but can't figure out why I can't delete by Invoice Number Pin
jkirkerx29-Dec-16 8:07
professionaljkirkerx29-Dec-16 8:07 
GeneralI got it working, not sure it will always work Pin
jkirkerx29-Dec-16 9:23
professionaljkirkerx29-Dec-16 9:23 
I think I finally got the code correct to delete the records by customer number and invoice, guess I should run 1 more test on it.
Maybe I just fixed the index file and now it works. Tired of working on this, not fun!
Dim dwXCode As Integer = registry_shared.read_HKCU_dataPath(m_path)
        Dim connString As String = "Provider=VFPOLEDB; Data Source=" & m_path & "; DELETED = FALSE;"

        Using connection As New System.Data.OleDb.OleDbConnection(connString)
            Dim c1 As New System.Data.OleDb.OleDbCommand("SET EXCLUSIVE ON", connection)
            Dim c2 As New System.Data.OleDb.OleDbCommand("SET DELETED ON", connection)
            Dim c3 As New System.Data.OleDb.OleDbCommand("DELETE FROM ARTRS01H WHERE FCUSTNO = ? AND FINVNO = ?", connection)
            Dim c4 As New System.Data.OleDb.OleDbCommand("DELETE FROM ARTRS01 WHERE FCUSTNO = ? AND FINVNO = ?", connection)
            Dim c5 As New System.Data.OleDb.OleDbCommand("PACK", connection)

            c3.Parameters.Add("@FCUSTNO", OleDbType.VarChar).Value = pCustNo
            c3.Parameters.Add("@FINVNO", OleDbType.VarChar).Value = pInvNo

            c4.Parameters.Add("@FCUSTNO", OleDbType.VarChar).Value = pCustNo
            c4.Parameters.Add("@FINVNO", OleDbType.VarChar).Value = pInvNo

            Try
                connection.Open()
                c1.ExecuteNonQuery()
                c2.ExecuteNonQuery()
                Dim x As Integer = c3.ExecuteNonQuery()
                x += c4.ExecuteNonQuery()
                c5.ExecuteNonQuery()
                pValue.Result = If(x > 0, True, False)
                pValue.Message = x & " record(s) were deleted successfully"

            Catch sqlEx As SqlClient.SqlException
                pValue.Result = False
                pValue.Message = sqlEx.Message.ToString

            Catch exdb As OleDb.OleDbException
                pValue.Result = False
                pValue.Message = exdb.Message.ToString

            Catch ex As Exception
                pValue.Result = False
                pValue.Message = ex.Message.ToString

            Finally
                connection.Close()

            End Try
21st Century Globalism has become Socialism on a planetary scale, in which the unequal treaties of the past have come back into play.

QuestionUpdating a FoxPro dbf file using VB.net Pin
jkirkerx22-Dec-16 11:32
professionaljkirkerx22-Dec-16 11:32 
AnswerRe: Updating a FoxPro dbf file using VB.net Pin
jkirkerx22-Dec-16 11:37
professionaljkirkerx22-Dec-16 11:37 
AnswerRe: Updating a FoxPro dbf file using VB.net Pin
jschell26-Dec-16 7:17
jschell26-Dec-16 7:17 
GeneralRe: Updating a FoxPro dbf file using VB.net Pin
jkirkerx27-Dec-16 7:09
professionaljkirkerx27-Dec-16 7:09 
QuestionDrop & Recreate the DB Pin
Kevin Marois21-Dec-16 12:48
professionalKevin Marois21-Dec-16 12:48 
AnswerRe: Drop & Recreate the DB Pin
Chris Quinn21-Dec-16 22:03
Chris Quinn21-Dec-16 22:03 
GeneralRe: Drop & Recreate the DB Pin
Kevin Marois22-Dec-16 4:37
professionalKevin Marois22-Dec-16 4:37 
QuestionRe: Drop & Recreate the DB Pin
Richard MacCutchan22-Dec-16 4:59
mveRichard MacCutchan22-Dec-16 4:59 

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.