Viewing 15 posts - 1 through 15 (of 26 total)
Jeff,
Sorry to bother you. You are the format file guru, could you please take a look at the new problem I have with BULK INSERT?
http://www.sqlservercentral.com/Forums/Topic622222-145-1.aspx
December 19, 2008 at 7:02 am
The problem is, the import doesn't fail - it simply sticks the next line into the 6th column (which is sufficiently large). So the only way to see that it...
December 19, 2008 at 6:57 am
I coudn't find a relevant example. Could you at least point me in the right direction?
December 19, 2008 at 4:18 am
We found in 2005 BULK INSERT wouldn't work when running under a Windows-authenticated account and importing from a UNC path. If you run under a SQL login, it should work...
December 17, 2008 at 1:50 pm
I have a similar problem. How do you work around it with a format file?
December 17, 2008 at 1:47 pm
The "i.id = t.id" in the WHERE clause is not needed because it's already in the join condition.
Since we are looking for primary keys and text fields cannot be part...
May 20, 2008 at 1:47 pm
Jeff,
Thank you! That's an awesome hack you did with the leading and trailing quotes.
May 5, 2008 at 9:23 am
1) My server was barking on sysproperties table
2) Why bother creating a stored procedure if it's only reporting in the current database? A simple query would do
3) The Oracle-ish *=...
December 13, 2007 at 1:10 pm
Jeff Moden (12/11/2007)
I don't understand why you need BCP for this... what's wrong with just doing a straight insert into the new tables?
Speed. an INSERT is recorded in the transaction...
December 11, 2007 at 10:04 pm
Jason,
I finally figured it out. The new table had an identity column, so bcp wasn't inserting garbage, it was simply renumbering my rows! Running SET IDENTITY INSERT NewTable ON before...
December 11, 2007 at 3:41 pm
Adam Machanic liked a cursor-based solution for running sums:
http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/running-sums-redux.aspx
December 7, 2007 at 6:13 am
Do you have the same for SQL2005?
December 4, 2007 at 1:42 pm
Running the set identity_insert in the sproc is residing in a different session.
Is there any way to force the SP to run the set identity_insert command in the same session...
October 25, 2007 at 3:41 pm
Viewing 15 posts - 1 through 15 (of 26 total)