Viewing 15 posts - 5,026 through 5,040 (of 5,394 total)
Graham.Irons (7/15/2009)
I've not seen the use of # before.
# denotes a temporary table, which I created in the DDL and test data script I posted earlier.
Temporary tables are visible...
July 16, 2009 at 12:59 am
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...
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?
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...
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,...
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
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...
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...
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 ...
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...
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 not
Hmmm,
should work?
Interesting reading:
http://en.wikipedia.org/wiki/Number_of_the_Beast
Will...
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.
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...
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,...
July 14, 2009 at 7:43 am
Viewing 15 posts - 5,026 through 5,040 (of 5,394 total)