I have a question about Bulk Insert query. I have a file which contains the following format
| |Test|test1|test2|
| | a | b | c |
| | d | e | f |
I use in sql the following code. I can skip the first row by using firstow=2 but is there something to ignore the first three characters from each row?
SET @s = N'BULK INSERT ' + @t + ' FROM ''' + @f + '''
WITH ( FIELDTERMINATOR = ''|'' ,ROWTERMINATOR = ''0x0a'',FIRSTROW=2 )'
In power shell you have something like this. Is there also something to ignore the first three characters?
$columns = Get-Content $full | Select-Object -First 1