Viewing 15 posts - 2,626 through 2,640 (of 8,731 total)
Have you tried this options?
,CODEPAGE = 'RAW'
,DATAFILETYPE ...
June 22, 2016 at 2:12 pm
Brandie Tarvin (6/22/2016)
jasona.work (6/22/2016)
[Commentary deleted by me]
I decided I was getting a little too vitriolic...
June 22, 2016 at 1:49 pm
You're missing your row delimiter in the last row from your format file.
16 SQLCHAR ...
June 22, 2016 at 1:40 pm
Here's a way.
Uncomment your preferred line.
WITH CTE AS(
SELECT *, ROW_NUMBER() OVER( PARTITION BY AccountID, Name, Region ORDER BY Special_Flag DESC) rn
FROM MyTable
)
--DELETE...
June 22, 2016 at 1:30 pm
It's not returning anything because you're telling to return nothing. Your string has a length of 13 chars, if you remove the period, it will only have 12 chars. You're...
June 22, 2016 at 1:24 pm
Basically, you just change InStr for CHARINDEX(). The following code simplifies the validation, the FROM is just used to generate sample data.
SELECT LEFT(PID, CHARINDEX('.', PID + '.') - 1)
FROM (VALUES('123.21'),...
June 22, 2016 at 12:45 pm
As mentioned, no need for scalar functions as they perform really bad in queries. A CASE statement will work just fine and it's not really lengthy.
SELECT CASE WHEN LEN(phone) >...
June 22, 2016 at 10:30 am
You could use the Quirky Update. Be sure to read and understand the following article as you might get this wrong if you don't know what you're doing. http://www.sqlservercentral.com/articles/T-SQL/68467/
After that,...
June 22, 2016 at 10:24 am
Here are 2 options that might help you depending on your data.
SELECT *,
PARSENAME( REPLACE(JobNum, '-', '.'), 3) + '-'
+ REPLICATE(...
June 22, 2016 at 8:45 am
You have strings larger than the length of your column. Is that correct?
Even after formatting, you have different lengths on each section. Do you have a predefined length or will...
June 22, 2016 at 8:35 am
rajemessage 14195 (6/22/2016)
thank u , but my query was , will try cache block any thing?yours sincerley
TRY...CATCH... won't block. Locks can block and locks are issued by SELECTs, DML and...
June 22, 2016 at 8:29 am
Revenant (6/22/2016)
ThomasRushton (6/22/2016)
Manic Star (6/22/2016)
Ed Wagner (6/22/2016)
Grumpy DBA (6/22/2016)
Ed Wagner (6/22/2016)
PerformanceReview
Rate
Raise
Drawbridge
Castle
Palace
June 22, 2016 at 8:08 am
You just need to define the groups in your tablix. Identify which columns define a group and use them to get what you need. Your query should show the same...
June 22, 2016 at 7:01 am
Douglas Osborne-229812 (6/21/2016)
Wouldn't that work in 2400 - not 4000? Divisible by 4 but not 400?
No, that would become '29-feb-2' which translates as '2002-02-29'.
Only 22 dates will successfully convert in...
June 21, 2016 at 1:32 pm
Ken Hiatt (6/21/2016)
dhaveedh (6/21/2016)
Ken Hiatt (6/20/2016)
June 21, 2016 at 1:09 pm
Viewing 15 posts - 2,626 through 2,640 (of 8,731 total)