Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 using BCP to import from csv file to temp table

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2007-01-04 : 23:41:27

This script works well for me:

exec master..xp_cmdshell 'bcp mosaikDB741.dbo.FilelistInput in csvFilePath.csv -t -c -userName -Ppassword -Sinstance'

But I want to use a dynamic table since the user who will run the script might not have the permissions to create the database mosaikDB741 and the physiacal table FilelistInput
Is there a way please
Thanks a lot
   

- Advertisement -