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.
Author |
Topic |
mary_itohan
Posting Yak Master
191 Posts |
Posted - 2014-04-25 : 08:24:27
|
Hi guys,pls advise on thisset @sql = 'BULK INSERT CSV_TESTINGFROM ''d:\MAM-NAP.csv''WITH(FIELDTERMINATOR = '','',ROWTERMINATOR = ''\n'');'exec @sql as I get the errorMsg 2812, Level 16, State 62, Procedure upload_bulk_insert_MAM_NAP_Step1, Line 22Could not find stored procedure 'BULK INSERT CSV_TESTINGFROM 'd:\MAM-NAP.csv'WITH(FIELDTERMINATOR = ',',ROWTERMINATOR = '\n');'._____________________Yes O ! |
|
gbritton
Master Smack Fu Yak Hacker
2780 Posts |
Posted - 2014-04-25 : 08:28:23
|
See example C here: http://technet.microsoft.com/en-us/library/ms188332.aspx |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2014-04-25 : 10:42:20
|
you need to enclose the string in parentheses:exec (@sql)EDIT:otherwise it assumes you are trying to exec an SPBe One with the OptimizerTG |
|
|
|
|
|