> Tech > Listing 4 : Usp_SecureBCPCommand

Listing 4 : Usp_SecureBCPCommand

Tech - Par Renaud ROSSET - Publié le 24 juin 2010
email

CREATE PROCEDURE usp_SecureBCPCommand
(@FileName varchar(255))
AS
DECLARE @BCPCommand varchar(255)
SET @BCPCommand = 'BCP db1..TableName out E:\Export\' + @FileName +
' /T /c'
EXECUTE master..xp_cmdshell @BCPCommand
GO
EXEC usp_SecureBCPCommand ‘Table1.txt'

Téléchargez cette ressource

Guide inmac wstore pour l’équipement IT de l’entreprise

Guide inmac wstore pour l’équipement IT de l’entreprise

Découvrez toutes nos actualités à travers des interviews, avis d'experts et témoignages clients et ainsi, retrouvez les dernières tendances et solutions IT autour de nos 4 univers produits : Poste de travail, Affichage et collaboration, Impression et capture et Infrastructure.

Tech - Par Renaud ROSSET - Publié le 24 juin 2010