Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping for timeout while connecting to server
Message
Information générale
Forum:
Visual Basic
Catégorie:
SQL Server
Titre:
Trapping for timeout while connecting to server
Divers
Thread ID:
00674181
Message ID:
00674181
Vues:
74
Hi,

I have the following code in one of my projects. This code performs a bulk insert into a SQL Server table:
Dim cmdBulkInsDetails As New ADODB.Command
Set cmdBulkInsDetails.ActiveConnection = gobjDataAccess.objConn
    
With cmdBulkInsDetails
   .CommandText = "BULK INSERT ATMPOS.dbo.[TransactionDetails] From " & _
    "'" & App.Path & "\Temp\SwitchDetails.txt' " & _
    "WITH (FIELDTERMINATOR = '|',KEEPNULLS)"
   .Execute
End With
The code works just fine, but I'd like to trap for a timeout while performing the Bulk Insert - any assistance would be appreciated.

Al
Al Williams

Anola MB, CANADA
Répondre
Fil
Voir

Click here to load this message in the networking platform