Viewing 15 posts - 3,211 through 3,225 (of 8,731 total)
How about reducing some steps?
DECLARE @str VARCHAR(250) = 'DWDate,Email,UserID,ID,LoanNum,PersonEmail,LoanDate,Paymt'
SELECT RIGHT(@str, CHARINDEX(',', REVERSE(@str))-1)
March 14, 2016 at 7:09 am
Ed Wagner (3/14/2016)
planetmatt (3/14/2016)
Alan.B (3/11/2016)
TryWHERE Item LIKE '%S' OR Item LIKE '%B'
WHERE Item like '%[S,B]'
That leading wildcard in the search will force a scan of the column, so the...
March 14, 2016 at 7:06 am
whereisSQL? (3/10/2016)
Ed Wagner (3/10/2016)
crookj (3/10/2016)
Manic Star (3/10/2016)
Ed Wagner (3/10/2016)
Revenant (3/10/2016)
Ed Wagner (3/10/2016)
Manic Star (3/10/2016)
DonlSimpson (3/10/2016)
Grumpy DBA (3/10/2016)
Ed Wagner (3/10/2016)
SoundOff
On
Superposition
Supposition
Suppository
Sick
Tired
Tracked
Terms and Conditions :sick:
Fineprint
Unread
March 10, 2016 at 3:20 pm
You might find some inaccurate results, but a simple conversion to datetime then to time might work.
SELECT CONVERT( time, CONVERT(datetime, 0.416666666666667))
March 10, 2016 at 2:54 pm
Are you sure that you don't have invalid strings that escape your validation? Something like 'asd%'
I tried to replicate the error but wasn't able to do it. This is my...
March 10, 2016 at 1:37 pm
Use a CTE with ROW_NUMBER to find the first for each group.
WITH CTE AS(
SELECT c.CompanyName,
v.UserId,
...
March 10, 2016 at 1:22 pm
rcooper 78099 (3/10/2016)
Luis Cazares (3/10/2016)
rcooper 78099 (3/10/2016)
=DateAdd("d",-1,Today())I am assuming it would be
=DateAdd("d",+1,Today())
or
=DateAdd("d",1,Today())
which have both not worked.
What do you mean by...
March 10, 2016 at 1:03 pm
Did you follow these steps?
- Open the Parameter properties.
- Set Data type to Date/Time.
- Go to Default Values tab.
- Click on the formula (fx) button.
-...
March 10, 2016 at 12:50 pm
rcooper 78099 (3/10/2016)
=DateAdd("d",-1,Today())I am assuming it would be
=DateAdd("d",+1,Today())
or
=DateAdd("d",1,Today())
which have both not worked.
What do you mean by have not worked? How are you assigning the default value?
I just tested both approaches...
March 10, 2016 at 12:46 pm
It's a nice article that explains this problem which unfortunately is more common that it should be.
I'd take a different approach which includes some "safe nets". It seems that your...
March 10, 2016 at 7:27 am
gabtugm (3/5/2016)
Luis Cazares (3/4/2016)
oneteabag (3/4/2016)
March 9, 2016 at 1:38 pm
ThomasRushton (3/9/2016)
Ed Wagner (3/9/2016)
BWFC (3/9/2016)
Grumpy DBA (3/9/2016)
Ed Wagner (3/9/2016)
Stuart Davies (3/9/2016)
shippingReceiving
Yards
Hard
Boiled
shirt
pants
March 9, 2016 at 8:25 am
Del Lee (3/9/2016)
Luis Cazares (2/25/2016)
Try thisLuis, I imagine the original poster already did a google search. Which ones do you have experience with? Do you have a recommendation?
You're...
March 9, 2016 at 8:24 am
The code already has that value. If you can't find it, maybe you're not understanding how this works.
Please, try to explain it and ask any questions you might have.
March 8, 2016 at 3:20 pm
Using a tally table and SUBSTRING(), it's very easy to accomplish this. In this example, I'm using a cte to create the tally table on the fly.
Consider changing the text...
March 8, 2016 at 3:10 pm
Viewing 15 posts - 3,211 through 3,225 (of 8,731 total)