Viewing 15 posts - 21,691 through 21,705 (of 26,484 total)
Can you provide us with more details, like the complete error message.
April 1, 2009 at 8:43 am
Without the code for your stored procedure, table structure (CREATE TABLE statements), sample data, and expected results there isn't much we can do to help you.
April 1, 2009 at 8:40 am
Please do not double post. Please post replies here.
April 1, 2009 at 8:38 am
Geez, some people with no sense of humor. I read it thinking it was a real horror story unfolding on a poor DBA. Glad to see it was...
April 1, 2009 at 8:35 am
How about providing ALL the code not just snippets? From what you have posted, I have no idea why it didn't work.
April 1, 2009 at 8:21 am
Does this mean that the posts may be gettng better, or are we just showing greater tolerance for the moment??
March 31, 2009 at 9:44 pm
Does this code help:
declare @ThisDate datetime;
set @ThisDate = getdate();
select dateadd(wk, datediff(wk, 0, @ThisDate) - 1, -1), -- Beginning of previous week (Sunday)
dateadd(wk, datediff(wk,...
March 31, 2009 at 4:36 pm
Can you provide a concrete example of what you are talking about? For instance, what dates would be used today (2009-03-31) if either or both paramteres are null.
March 31, 2009 at 4:33 pm
JJ B (3/31/2009)
I'm not sure most people made bad choices. there are always some that made poor financial choices, but buying a larger car, or a less efficient car because...
March 31, 2009 at 4:24 pm
RJ (3/31/2009)
March 31, 2009 at 4:18 pm
RJ (3/31/2009)
March 31, 2009 at 3:51 pm
JJ B (3/31/2009)
March 31, 2009 at 3:31 pm
Does this give you what you want? Realize that this is going to be a large insert query for your actual table.
insert dbo.audit_abc (col1,col2,col3,col4,col5,audittype)
select
d.col1,
...
March 31, 2009 at 3:02 pm
Viewing 15 posts - 21,691 through 21,705 (of 26,484 total)