Viewing 15 posts - 5,026 through 5,040 (of 5,393 total)
You can use the SSMS coming with SQLExpress and it is almost fully functional.
Unfortunately the coloured status bar works only for query windows opened with "New Query", but doesn't work...
-- Gianluca Sartori
July 15, 2009 at 9:42 am
Very strange...
Have you tried this:
select hostname from master.dbo.sysprocesses where spid = @@spid
Does it return the same?
-- Gianluca Sartori
July 15, 2009 at 6:40 am
Try with shrinkfile:
USE TempDB
DBCC SHRINKFILE('tempdev', 0)
If it does not work, the TempDB contains objects that are in use by some connection or were not deleted (temp tables for instance).
For...
-- Gianluca Sartori
July 15, 2009 at 6:30 am
It depends on the data stored in the table. Try running this:
SELECT Original_Dollar_Amt , Serial_No FROM Properties where ISNUMERIC(Original_Dollar_Amt) = 0 OR ISNUMERIC(Serial_No) = 0
Does it return rows? If so,...
-- Gianluca Sartori
July 15, 2009 at 6:21 am
You could set the param values this way:
SET @sDate = CONVERT(char(8), GETDATE(), 112)
SET @eDate = DATEADD(day, 1,DATEADD(second, -1, CONVERT(char(8), GETDATE(), 112)))
Hope this helps
Gianluca
-- Gianluca Sartori
July 15, 2009 at 6:17 am
July 15, 2009 at 6:09 am
It could be anything, from db related (indexes, triggers, blocking processes) to system related (disk queues, high cpu load, network traffic).
I suggest you narrow the search by adding SET STATISTICS...
-- Gianluca Sartori
July 15, 2009 at 6:07 am
You could backup and restore under different name the original database and truncate tables that don't need data inside.
If the instance you're working on is dedicated to this application, you...
-- Gianluca Sartori
July 15, 2009 at 6:03 am
This should do the trick:
WITH CTE (TimeStart, KnownAsName, ServiceDetails)
AS (
SELECT ServiceAppointments.TimeStart,
Employees.KnownAsName,
ServiceCubicles.ServiceCubicleName + '|' +
Services.FullDescription + '|' +
Clients.ClientName + '|' +
CONVERT(varchar(50),ServiceAppointments.TimeFinish,108) AS ServiceDetails
FROM ...
-- Gianluca Sartori
July 15, 2009 at 2:03 am
What I would have expected you to post was DDL for tables and sample data, something similar to this:
/*
* DDL FOR TABLES
*/
IF OBJECT_ID('Tempdb..#ServiceAppointments') IS NOT NULL DROP...
-- Gianluca Sartori
July 15, 2009 at 1:16 am
RBarryYoung (7/14/2009)
Paul White (7/14/2009)
Yep. Just couldn't be bothered...I'd gone to the trouble of wrapping it inand thought that would be good enough...seems notHmmm,
should work?
Interesting reading:
http://en.wikipedia.org/wiki/Number_of_the_Beast
Will...
-- Gianluca Sartori
July 14, 2009 at 9:50 am
Thanks Gail,
I knew that BULK_LOGGED had minimal logging, but I didn't know it was THAT minimal.
Nice to know, will be useful in the future.
-- Gianluca Sartori
July 14, 2009 at 9:19 am
Deepak Jain (7/14/2009)
Your solution too has a bug. It is not adding the third level of child. When I run it, it gives the following result:
RecordID SumCredit
125
220
The Sum...
-- Gianluca Sartori
July 14, 2009 at 7:47 am
If SELECT ... INTO runs in a single transaction, that transaction is logged while running, so it keeps growing the log file until it's over.
When the query is over,...
-- Gianluca Sartori
July 14, 2009 at 7:43 am
Deepak Jain (7/14/2009)
It seems that only solution here is to use cursor......
I already posted a solution without cursors. If you can't get Dave's one to work, use mine.
There are very...
-- Gianluca Sartori
July 14, 2009 at 7:13 am
Viewing 15 posts - 5,026 through 5,040 (of 5,393 total)