October 27, 2010 at 4:32 pm
Nope... I mean you can if you want but BULK INSERT may be a better option. It's very similar to BCP except that it doesn't require the use of xp_CmdShell. You only need to have bulk admin privs.
Its an option, how does this work?
October 27, 2010 at 8:15 pm
jez.lisle (10/27/2010)
Nope... I mean you can if you want but BULK INSERT may be a better option. It's very similar to BCP except that it doesn't require the use of xp_CmdShell. You only need to have bulk admin privs.
Its an option, how does this work?
Pretty much like Bulk Insert but without the trip through xp_CmdShell. Have a look at it in Books Online.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 27, 2010 at 9:11 pm
The Meannig Of BCP is Bulk Copy Program ,Are u using SQlcmd or powershell for bulk insert ?
October 27, 2010 at 9:17 pm
Soory To all For the format of writeing in the previous post.
October 28, 2010 at 4:21 am
Ivan Mohapatra (10/27/2010)
Soory To all For the format of writeing in the previous post.
Ivan, that's okay. Just please don't use text-speak like "u" and "r" in these forums. When the abbreviations compound, it makes it difficult to understand what you're saying. Could you repost or edit your original post so I can understand it?
October 28, 2010 at 4:35 am
Ivan Mohapatra (10/27/2010)
The Meannig Of BCP is Bulk Copy Program ,Are u using SQlcmd or powershell for bulk insert ?
I would be using SSMS to run this
October 28, 2010 at 4:40 am
Jez,
So you'd be doing this manually instead of scheduled as an automatic job?
Have you tried the Import / Export Wizard? It can import flat files.
October 28, 2010 at 6:16 am
Brandie Tarvin (10/28/2010)
Jez,So you'd be doing this manually instead of scheduled as an automatic job?
Have you tried the Import / Export Wizard? It can import flat files.
Where I'm working I can only use SQL Server Express... This version I have doesnt have the Import/Export Wizard and we dont have Visual Studio to create any SSIS packages. So I'm stuck and this is why I have been looking at using BCP to get text files into SQL server
October 28, 2010 at 6:53 am
I have been googling Bulk Inserts and found this below... I have tried and it seems to work very well at the moment.
http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
Thanks for all the help getting me to this point.
October 28, 2010 at 9:56 am
jez.lisle (10/28/2010)
I have been googling Bulk Inserts and found this below... I have tried and it seems to work very well at the moment.http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
Thanks for all the help getting me to this point.
That's fine but, as many articles are prone, it's missing a huge amount of information on other VERY useful options available in BULK INSERT. Trust me... look it up in Books Online (the free help system/documentation that comes with SQL Server). You won't regret it. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 29, 2010 at 6:50 am
You are missing a space between the server name and -T
Viewing 11 posts - 16 through 25 (of 25 total)
You must be logged in to reply to this topic. Login to reply