Viewing 15 posts - 1,876 through 1,890 (of 2,647 total)
Gail, I see in the backup that he is not using WITH INIT. Does this mean that by default the backups are being appended?
Jared
CE - Microsoft
January 24, 2012 at 9:58 am
Can you provide a sample of your data set, not the report. Also, what is your report currently grouped on?
Jared
CE - Microsoft
January 24, 2012 at 8:33 am
Ok, well first I see that the sample data you gave is not looking correct. You have 2 people, 4 dates, and 2 sales numbers. I assume it looks...
Jared
CE - Microsoft
January 24, 2012 at 8:13 am
Shree-903371 (1/24/2012)
I need total based on a group. For example I have
Salesperson ...
Jared
CE - Microsoft
January 24, 2012 at 8:00 am
Rob-350472 (1/24/2012)
Jared
CE - Microsoft
January 24, 2012 at 7:49 am
Marios Philippopoulos (1/24/2012)
Jeff Moden (1/23/2012)
SQLKnowItAll (1/23/2012)
Is EXECUTE AS not an option?It might not be an option if you've written a nice, high performance, inline Table Valued Function.
Sorry, I don't follow,...
Jared
CE - Microsoft
January 24, 2012 at 5:54 am
Side note... Current is a reserved SQL keyword. If you must use it, put it in []. However, I suggest picking something else.
Jared
CE - Microsoft
January 23, 2012 at 3:41 pm
As you can see, my query works. In order for us to help you, please post the ddl of the table you are running this on, some sample data,...
Jared
CE - Microsoft
January 23, 2012 at 3:39 pm
Is EXECUTE AS not an option?
http://msdn.microsoft.com/en-us/library/ms188354.aspx
Jared
CE - Microsoft
January 23, 2012 at 3:30 pm
Looks fine to me:
use tempdb
CREATE TABLE #temp (id int identity(1,1), value money)
INSERT INTO #temp
SELECT 2.50
UNION ALL
SELECT 4.00
UNION ALL
SELECT 500.00
SELECT SUM(CASE
WHEN id <= 2 THEN value
ELSE 0
END) AS sum_value
FROM #temp
DROP TABLE...
Jared
CE - Microsoft
January 23, 2012 at 3:16 pm
I would ask why they are shrinking the log when the databases are in simple recovery mode. Start there...
http://msdn.microsoft.com/en-us/library/ms189275.aspx
Jared
CE - Microsoft
January 23, 2012 at 2:43 pm
Try this...
SELECT CAST(CAST(GETDATE() AS DATE) AS DATETIME)
This will 0 out the date. If you want the actual date only, then just do this:
SELECT CAST(GETDATE() AS DATE)
NOTE: This will not...
Jared
CE - Microsoft
January 23, 2012 at 2:20 pm
Michael L John (1/23/2012)
Bron Tamulis (1/20/2012)
I know DYNSA is not an orphaned user. DYNSA user is automatically created when Great Plains is installed on a...
Jared
CE - Microsoft
January 23, 2012 at 1:56 pm
I assume you are doing what I used to do for this: Take backup of productionCompany database, restore to test database, run replace script to replace the company name.
The...
Jared
CE - Microsoft
January 23, 2012 at 1:34 pm
Viewing 15 posts - 1,876 through 1,890 (of 2,647 total)