Viewing 15 posts - 1,786 through 1,800 (of 3,957 total)
Sean Lange (6/13/2013)
WayneS (6/13/2013)
dwain.c (6/12/2013)
June 13, 2013 at 10:48 pm
Stefan Krzywicki (6/13/2013)
June 13, 2013 at 10:47 pm
SQLRNNR (6/12/2013)
Steve Jones - SSC Editor (6/12/2013)
jasona.work (6/12/2013)
June 12, 2013 at 7:23 pm
Stefan Krzywicki (6/5/2013)
Don't you hate it when you finally figure out a solution for a difficult problem and it creates 5 more problems that the old way disguised?
I would say...
June 5, 2013 at 5:48 pm
Sean Lange (6/5/2013)
dwain.c (6/4/2013)
SELECT cStudentID, iSchoolYearCode
,IsRepeat=CASE WHEN n<>iSchoolYearCode THEN 1 ELSE 0 END
FROM (
SELECT...
June 5, 2013 at 5:44 pm
Thanks for the replies.
I have come to the awkward conclustion that the client has no DBA. I do believe they have some folks that are familiar with Windows domain...
June 5, 2013 at 5:40 pm
andrew gothard (6/5/2013)
Brandie Tarvin (6/4/2013)
1) SCREAM really loudly so everyone knows there is a problem.
2) Run out of the building as fast as possible.
3) Update my resume.
4) Job...
June 5, 2013 at 6:28 am
I was thinking more something like this:
With MySampleData([val])
AS
(
SELECT '1596424@DAR'
)
SELECT *,
LEFT(val,PATINDEX('%[^0-9]%', val)-1) as OneWay
FROM MySampleData;
June 5, 2013 at 1:48 am
Further poking around leads me to believe that the only accounts listed by the Config Mgr are Windows authenticated accounts, whereas 'myaccount' is a SQL authenticated account.
I'm wondering if it...
June 5, 2013 at 1:02 am
Wolf Kill - If you're still listening I need some further advice.
I was able to get the thing to work by changing this line in the SP:
,@useself='TRUE', @locallogin='myaccount';
To something like:
,@useself='FALSE',...
June 5, 2013 at 12:23 am
I like Luis's first choice (to avoid the triangular join). Here's another:
SELECT cStudentID, iSchoolYearCode
,IsRepeat=CASE WHEN n<>iSchoolYearCode THEN 1 ELSE 0 END
FROM (
SELECT *
...
June 4, 2013 at 9:22 pm
What if the first non-numeric character in the string is not @?
Answer: You could use PATINDEX instead of CHARINDEX.
June 4, 2013 at 8:42 pm
Lynn Pettis (6/4/2013)
This is posted in a SQL Server 2008 forum, why not use MERGE?
I agree! I just didn't see your suggestion before I posted mine.
June 4, 2013 at 8:39 pm
ChrisM@Work (6/4/2013)
Kingston Dhasian (6/4/2013)
ChrisM@Work (6/4/2013)
ALTER PROCEDURE update_use
(
@name varchar(20),
@class nvarchar(30)
)
AS
UPDATE grts SET class = @class WHERE name = @name
IF @@ROWCOUNT = 0
INSERT INTO grts (name, class) VALUES (@name, @class)
Wow. This is...
June 4, 2013 at 8:37 pm
mickyT (6/3/2013)
dwain.c (6/3/2013)
Now if I can just figure out how to export that so I can keep in sync the various SQL servers I operate on, I'd be happy as...
June 3, 2013 at 7:58 pm
Viewing 15 posts - 1,786 through 1,800 (of 3,957 total)