Viewing 15 posts - 76 through 90 (of 103 total)
Hi
I have now created a view but I am still havving problems...I using the following syntax:
bcp "SELECT * from
.[dbo].[myviewname]" queryout "C:\WORK\'+@LCAREA+'.TXT" -f c:\work\ASHLEY\MIDAS\midas_bcpformatfile.fmt -T -k
And now I am getting...
September 25, 2009 at 5:29 am
Thanks alot twillcomp - That has sorted the issue
The process is now working a treat!
Thanks everyone for all your help - You have been Great!!
March 10, 2009 at 5:10 am
Hello Jeff
I tried that but I get the BCP error (the one which advises the correct syntax to use) Can you test the command and hopefully provide one that works...
March 10, 2009 at 3:11 am
Update - I have got around this for now by adding an additional column and populating the column with a double quote. I then adjusted the command to read:
declare...
March 9, 2009 at 10:08 am
OK seems to be nearly working now I am just having trouble inserting the leading quote
I tried running the following:
declare @bcpcommand nvarchar(1000)
SET @bcpcommand = 'bcp "SELECT ""+title,forename,surname,pafad1,pafad2,pafad3,pafad4,pafad5,pafad6,postcode,urn,emailaddress from ASHLEY.DBO.tablename" queryout...
March 9, 2009 at 6:55 am
This is very annoying!!
Right I have created the format file in the way you suggested now Jeff (Thanks)
But on trying to execute the following BCP Command:
declare @bcpcommand nvarchar(1000)
SET @bcpcommand =...
March 9, 2009 at 4:25 am
From looking in other places for a solution this is what I have so far:
The terminators needs to be :
/t"\",\""
And can do this directly from the BCP command without a...
March 5, 2009 at 8:27 am
Hello Jeff
I am not trying to import I am trying to export to a comma delimited Quote qualified text file...
The fields in my table are:
Title
Forename
Surname
Ad1
Ad2
Ad3
Ad4
Ad5
Ad6
Postcode
URN
And need the data to look...
March 5, 2009 at 6:35 am
Sorry My bad!!
Right I have created the Format file now (Thanks for the help)
I now need to ensure the file is Comma Delimited with Quote Qualifiers
The format File I have...
March 5, 2009 at 4:39 am
Ok I am now trying to run via command line in the following way:
declare @cmdcommand nvarchar(1000)
set @cmdcommand='bcp bicky.dbo.output format nul -c -f bcpformatfile.fmt -T'
exec @cmdcommand
But now getting the following error:...
March 5, 2009 at 4:01 am
Tried the latest suggestion but I am still getting the same error - Sorry but this is the first time I have delved into the BCP Format files - But...
March 5, 2009 at 3:29 am
Hi all
When I run:
bcp AdventureWorks.Sales.SalesOrderDetail out c:\Currency.txt -c -S student\sqlserver2005
I get the error: "Incorrect syntax near '.'."
So the format file isn't created! I am using SQL Server 2005...
I saw...
March 5, 2009 at 2:47 am
Already tried that...Job completes but no notification is sent...
February 16, 2009 at 6:03 am
Gianluca Sartori (2/12/2009)
I call database mail in a separate step as well, I find it being the simplest way.If it works, don't touch it! 😉
Fair point - Although would be...
February 12, 2009 at 4:43 am
Viewing 15 posts - 76 through 90 (of 103 total)