Viewing 15 posts - 21,001 through 21,015 (of 26,490 total)
Need the DDL (CREATE TABLE) for the table(s), sample data (in a readily consumable format), expected results based on the sample data, and your complete existing code that is failing.
Please...
May 14, 2009 at 11:23 am
If it is growing, it is because it needs to in order to store the data being inserted. Constantly growing and shrinking the mdf file is going to result...
May 14, 2009 at 10:58 am
The following sample code should get you started.
declare @ThisDate datetime;
set @ThisDate = getdate();
select dateadd(wk, datediff(wk, 0, @ThisDate) - 1, -1) -- Beginning of last week (Sunday)
select dateadd(wk, datediff(wk, 0, @ThisDate),...
May 14, 2009 at 10:54 am
purushotham.k9 (5/14/2009)
suppose...
May 14, 2009 at 10:50 am
But that may not be the "week" that the OP wants to report. That is why it is important to know what is meant by the previous week.
May 14, 2009 at 10:48 am
Please don't double post, it just fragments any responses you may get.
Please reply here.
May 14, 2009 at 10:44 am
daniel.gardiner (5/14/2009)
subtract 7 days from the current date
determine the 'week' part of this date
select records with dates from this...
May 14, 2009 at 10:28 am
Doesn't answer the question. What is the previous week? Does it start on Monday, Tuesday, Sunday? Define what the previous week is. Also, take a look at...
May 14, 2009 at 9:48 am
I do agree, contact Microsoft to be sure. I, howver, read it differently. If you have dual processor system, and purchase 2 processor licenses for the server, you...
May 14, 2009 at 9:41 am
Please define what you mean by the previous week. Also, go to my blog (SQL Musings from the Desert), and you will find some common date computation formulas.
May 14, 2009 at 9:32 am
Question, why is it called "Common Sense" when it appears to be so uncommon today?
May 14, 2009 at 8:28 am
It is a scope issue. A temporary table (#TempTable) created inside of a stored procedure can be seen by other stored procedures invoked inside that stored procedure. This...
May 14, 2009 at 8:17 am
Yes, it is possible but I wouldn't do it unless it was a result of a one off process being run. If it has grown to a specific size...
May 14, 2009 at 8:09 am
I'm curious as to why you feel you need to put a new column in a specific location? The order of the columns is immaterial in SQL Server, in...
May 14, 2009 at 8:07 am
Really need more information to help you. It would help if you would take the time read and follow the guidelines in the first article I reference below in...
May 14, 2009 at 8:01 am
Viewing 15 posts - 21,001 through 21,015 (of 26,490 total)