हो सकता है कि यह आपके लिए प्रारंभ करने देगा:
http://weblogs.sqlteam.com/brettk/archive/2005/04/13/4395.aspx
संपादित करें:
उदाहरण बीसीपी का उपयोग करता है, और यह काम करने के लिए आपको कुछ सुविधाओं को पुन: कॉन्फ़िगर करना पड़ सकता है पाने के लिए।
-- To allow advanced options to be changed.
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO
-- Dump the table
DECLARE @sql VARCHAR(8000)
SELECT @sql = 'bcp <database>.dbo.<table> out d:\bcp\output.txt -c -t, -T -Slocalhost'
EXEC xp_cmdshell @sql
स्रोत
2009-03-12 18:49:27
यह एक एकबारगी निर्यात है या आप सेटअप करने के लिए एक नौकरी की कोशिश कर रहा? – JoshBerke
क्या आप एंटरप्राइज़ मैनेजर या प्रबंधन स्टूडियो का उपयोग कर रहे हैं? –