Viewing 15 posts - 1,096 through 1,110 (of 1,923 total)
You can , but only when u have a JOIN clause on the JobTitle table..
September 27, 2010 at 10:08 pm
Look up on Books Online (free 'Help' that comes with the SQL Server) for OPENROWSET.. that will help you resolve this issue..
September 27, 2010 at 8:20 pm
Look, your City.txt file is a comma-separated file. Thus a delimiter of "\t" ( = Tab) will not do any good for you.. so i edited the format file to...
September 26, 2010 at 10:45 pm
try this:
; with numbered_dupes_cte as
(
select rn = row_Number() over (partition by c1, c2),
c1, c2
from table
)
select...
September 26, 2010 at 9:47 am
Are u using the correct path of the txt file? is your txt file well-formed? can u attach your input file?
September 26, 2010 at 9:43 am
Harag, you seem to be very new to the forum, so i recommend you going through this following Jeff Moden's article first ; this article will help you present your...
September 25, 2010 at 11:29 pm
I definitely agree with Ron here ; you have not tried anything, then why would people consider working for you when u haven't even tried, or atleast that's what u...
September 25, 2010 at 11:20 pm
1. Create a format file using the command mentioned in the following step:
bcp Scratch.dbo.Names format nul -T -c -f Client.Fmt
Things to note here is, i have used -c switch, which...
September 25, 2010 at 11:01 pm
rothj (9/24/2010)
Understood. You are absolutely correct and I will definitely apply this lesson learned in the future.Thank you very much for assisting me despite my short sightedness.
Thanks for understanding,...
September 24, 2010 at 9:46 am
The only values for User are Bob Jones , Tim Ralph , Rob Tims ?
September 24, 2010 at 9:40 am
rothj (9/24/2010)
I thought it would be a quick an easy select for...
September 24, 2010 at 9:25 am
Ok, with my frustration apart, here is one of the solution for this:
First lest prepare a temp table and sample data:
DECLARE @Tab TABLE
(
INAME VARCHAR(20),
[DATE]...
September 24, 2010 at 9:22 am
693 visits, 246 points and still you are not clear on how to ask a question.. Hmm.. without ready-to-use sample data, its hard to spend time on checking this.. lets...
September 24, 2010 at 9:08 am
DECLARE @XML XML;
SELECT @XML = '<r>'+REPLACE(@Code_String, ',', '</r><r>')+'</r>';
This
1. removes any comma ( , ) character in the input string
2. Replces </r><r> tags for the commas; the first </r>...
September 24, 2010 at 8:48 am
Use BCP/BULK INSET using "FORMAT FILE" or as u said, using OPENROWSET..
September 24, 2010 at 4:29 am
Viewing 15 posts - 1,096 through 1,110 (of 1,923 total)