This is the procedure..
create Procedure LoadTable
@TableName varchar(150)
as
begin
Declare @BCPCMD varchar(8000)
declare @BCPPath varchar(150)
select @BCPPath = 'C:\ProgramFiles\Microsoft SQL Server\100\tools\binn\'
select @BCPCMD = '"'+@BCPPath+'BCP" TheDW.DBO.' + @TableName + ' in C:\'+ @TableName + '.BCP -w -T'
exec master..XP_CmdShell @BCPCMD
end
go
Execute LoadTable "Tables_Table"
Go
Execute LoadTable " Extract_File_Translation_Table"
Go
I am really new at Sql stuff so any help will be appreciated
Open up SSMS.
type
Hit F5
More on using SSMS.
That space looks suspicious in
LoadTable " Extract_File_Translation_Table"