Viewing 15 posts - 6,316 through 6,330 (of 15,381 total)
Hi and welcome to the forums. It is generally preferred if you can post ddl and sample data in a consumable format. Since you are brand new around here I...
November 7, 2013 at 2:19 pm
Patrick Dooley (11/7/2013)
November 7, 2013 at 12:38 pm
spin (11/7/2013)
i have the following field in a progress db which contains analysis codes for a given account. I need to split the codes into their own columns.
here's an...
November 7, 2013 at 9:07 am
Excellent job posting ddl and sample data. I wish everyone posted everything like that to make it easy!!!
Something like this should work.
declare @EmployeeID int = 285;
with EmployeeTree as
(
select e.ManagerID, e.EmployeeID,...
November 7, 2013 at 8:44 am
By far the simplest approach here is to use the technique I described. I guess since everyone is completely ignoring it that either I have lost my mind or nobody...
November 6, 2013 at 2:49 pm
The "simple" fix here is to use something like this:
where (@All <> 'Y' and CLIENT_IDENTIFIER_TYPE.Code between @Code and @CODE2)
or @All = 'Y'
However, this now is exactly the pattern that the...
November 6, 2013 at 10:48 am
Unless it is a totally different thing I would think in this thread is fine. You already have a couple people following this one anyway. 🙂
November 6, 2013 at 10:05 am
You mentioned an article from Lynn, but i cannot see it.
Oops. Forgot to post the link. 😉
http://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/%5B/url%5D
November 6, 2013 at 7:14 am
Generically you can use ROW_NUMBER for this.
INSERT INTO SPEDDTL (spdd_f1, spdd_f2, spdd_f3, spdd_f4, spdd_f5, spdd_f6, spdd_f7)
( SELECT spd_f1, spd_f2, spd_f3, spd_f4, ROW_NUMBER() over (order by (select null)), spd_f6, spd_f7
FROM...
November 5, 2013 at 2:13 pm
a20213 (11/5/2013)
in this case, yes, but my goal is to make it calculate for any kind of date and delta future (1 month, 2 month, ... 1 and 1/2 years).
It...
November 5, 2013 at 2:07 pm
You might want to take a look at this article from Lynn. It has lots of datetime routines. You are going to need to utilize a number of these once...
November 5, 2013 at 1:46 pm
a20213 (11/5/2013)
November 5, 2013 at 1:40 pm
Tej_7342 (11/5/2013)
November 5, 2013 at 1:38 pm
You could greatly simplify your code by using a foreach instead of a for loop. This way you don't have to try to control the row counter. Your entire Main...
November 5, 2013 at 11:53 am
Tej_7342 (11/5/2013)
i have to delete data from a table which is older than 2 weeks, how can i use a cursor to do it.
I will have to place the...
November 5, 2013 at 11:41 am
Viewing 15 posts - 6,316 through 6,330 (of 15,381 total)