- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Journey to SQL Authority
Collapse
X
-
-
I don't usually have time for MVP's they tend to just regurgitate the help files or spew out regurgitated MS sales pitches of products they have spent no longer than 5 minutes with.
From what I've seen of him, Pinal Dave, is one of the few exceptions who does actually spend some time investigating and passing some proper first hand experience on.
Which of his solutions were you having problems with?Coffee's for closers -
His articles on Bulk importing from CSV into SQl Server. I want to skip the identity column. Though, to be fair, the actual problem is in the design:Originally posted by Spacecadet View PostI don't usually have time for MVP's they tend to just regurgitate the help files or spew out regurgitated MS sales pitches of products they have spent no longer than 5 minutes with.
From what I've seen of him, Pinal Dave, is one of the few exceptions who does actually spend some time investigating and passing some proper first hand experience on.
Which of his solutions were you having problems with?
from Microsoft:
With an XML format file, you cannot skip a column when you are importing directly into a table by using a bcp command or a BULK INSERT statement. However, you can import into all but the last column of a table. If you have to skip any but the last column, you must create a view of the target table that contains only the columns contained in the data file. Then, you can bulk import data from that file into the view.
What a load of pony.Comment
-
Wouldn't there some simple way of importing selectively from Excel, or writing a transformed CSV file that could be imported more easily.Originally posted by wurzel View PostHis articles on Bulk importing from CSV into SQl Server. I want to skip the identity column. Though, to be fair, the actual problem is in the design:
from Microsoft:
With an XML format file, you cannot skip a column when you are importing directly into a table by using a bcp command or a BULK INSERT statement. However, you can import into all but the last column of a table. If you have to skip any but the last column, you must create a view of the target table that contains only the columns contained in the data file. Then, you can bulk import data from that file into the view.
What a load of pony.
Failing that, one could knock up a perl script in five minutes to do it.
Work in the public sector? Read the IR35 FAQ hereComment
-
As your quote from microsoft says:Originally posted by wurzel View PostHis articles on Bulk importing from CSV into SQl Server. I want to skip the identity column. Though, to be fair, the actual problem is in the design:
from Microsoft:
With an XML format file, you cannot skip a column when you are importing directly into a table by using a bcp command or a BULK INSERT statement. However, you can import into all but the last column of a table. If you have to skip any but the last column, you must create a view of the target table that contains only the columns contained in the data file. Then, you can bulk import data from that file into the view.
What a load of pony.
bulk insert into a view which is a select on the table for all columns minus the identity columnCoffee's for closersComment
-
If your data source is good you can create an SSIS task to do it in literally seconds. If the data source is bad then it might take as long as 2 minutesOriginally posted by OwlHoot View PostWouldn't there some simple way of importing selectively from Excel, or writing a transformed CSV file that could be imported more easily.
Failing that, one could knock up a perl script in five minutes to do it.
Coffee's for closersComment
-
To date I have not seen a data problem which SSIS can't deal with. When it's too complicated just use a script task and code it to do what you want, whatever the source of the data may be.If your data source is good you can create an SSIS task to do it in literally seconds. If the data source is bad then it might take as long as 2 minutesComment
-
No SSIS here.... it's SQL express. Going with the view solution at the moment. Thanks.
This all has to be performed from within an MSI file. Got the joys of Wix files to deal with next.Comment
-
You've not pushed it hard enough thenOriginally posted by NorthWestPerm2Contr View PostTo date I have not seen a data problem which SSIS can't deal with. When it's too complicated just use a script task and code it to do what you want, whatever the source of the data may be.
I hit a problem this morning whilst adding some lookups. I wanted to compare several columns in order to the lookup table - which itself is about 30 million rows.
SSIS fell over trying to cache the data and not caching took way to long.
Ended up having to move that functionality into SQL.Coffee's for closersComment
-
True say, I was referring to complexity rather than performance. You may be force to moving the data to SQL for it to deal with.You've not pushed it hard enough then
I hit a problem this morning whilst adding some lookups. I wanted to compare several columns in order to the lookup table - which itself is about 30 million rows.
SSIS fell over trying to cache the data and not caching took way to long.
Ended up having to move that functionality into SQL.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- National Minimum Wage increase: operational for most umbrella staff, but brace for impact Mar 19 09:13
- Contractors, Joint & Several Liability’s unintended consequences are already piling up Mar 18 07:29
- Contractors, did you know self-employed DBS Checks have changed, for the better? Mar 17 07:56
- Offshoring harms already fraught IT contractors. Here’s what ministers can do Mar 16 07:57
- Dividends in 2026/27: an expert’s explainer for contractors Mar 13 07:20
- Dividends in 2026/27: an expert’s explainer for contractors Mar 13 07:04
- Contracting Awards 2026 opens for entries — with new AI category Mar 12 07:26
- Contracting Awards 2026 opens for entries — with new AI category Mar 12 07:26
- Contractors, beware these four traps in the UK’s Statutory Residence Test Mar 11 08:18
- Contractors, beware these four traps in the UK’s Statutory Residence Test Mar 11 00:23


Comment