Viewing 11 posts - 226 through 236 (of 236 total)
Hi Erikkur,
Thanks for the reply. Here is my try.
SELECT *
FROM
(
select Val,Cat,ROW_NUMBER() over (partition by Cat ORDER BY Empid ) AS Rn
FROM (SELECT Empid,Empname,CAST(Empsalary as varchar(50)) AS EmpSalary,CAST(Empdesignation as varchar(50)) AS...
May 6, 2014 at 5:42 am
Finall i am able to achieve with the below line,
queryout D:\Report.txt -T -c -t, -b 100 -S Resdox-0043\KGJ-DEV -U sa -P Pasword123
May 5, 2014 at 1:58 pm
Ok, After browsing the web i found and i tried with the below option.
EXECUTE master.dbo.xp_cmdshell 'bcp "SELECT N from sample.dbo.tally" queryout D:\Report.txt -N -S Resdox-0043\KGJ-DEV -U sa -P Pasword123'
.
...
May 5, 2014 at 1:37 pm
thanks, got the difference. If it is float, it does.
Appreciate your time.
May 1, 2014 at 9:54 am
Found the issue. It's problem with my text. it has some extra comma's. Thanks.
April 22, 2014 at 5:32 am
Hi Andrew,
Thanks for the reply.i did analyse further and seems it's problem with the CSV file. When i convert my excel data to CSV and if i open the CSV...
April 22, 2014 at 5:19 am
This is my updated Logic
declare @dt date,@UserCompanyId int = 100
declare @year char(4) = '2014',
@month char(2) = '03'
set @dt = @year + '-' + @month +...
April 18, 2014 at 12:18 pm
Hi Josh.
Thank you Man. understood how to include quotes. Awesome.
April 11, 2014 at 9:31 am
Hi Jhon,
Yes, i knew i am missing the quotation for the path. that's what i mentioned on my first post. Here is my another try
set @sql= 'BULK INSERT...
April 11, 2014 at 9:23 am
Hey guys,
thanks for your replies.
my try :
set @sql= 'BULK INSERT ' + @TableName +
' FROM ' + @FilePath + ' WITH (
FIELDTERMINATOR = ''' + @delimiter +'''
,ROWTERMINATOR...
April 11, 2014 at 9:16 am
Hi Luis.
Yes, I don't have duplicates. So the first suggestion should work for me. Thank you for your suggestion and time on this.
April 9, 2014 at 12:19 pm
Viewing 11 posts - 226 through 236 (of 236 total)