Viewing 15 posts - 106 through 120 (of 183 total)
If it is the tempdb.mdf then restarting will reset the size to the original creation size which is likely a couple mb. However you will want to identify the...
November 13, 2008 at 8:09 am
Use sp_send_dbmail. There is the following parameter.
Per Bol:
@query = ] 'query'
Is a query to execute. The results of the query can be attached as a file, or included...
November 13, 2008 at 7:07 am
This is what the code looks like (top portion is just to generate your sample data). Hope it helps.
DECLARE @Tbl AS TABLE (
[Name] VARCHAR(10),
Question VARCHAR(10),
Answer VARCHAR(10)
)
INSERT INTO @Tbl
SELECT 'A',...
November 12, 2008 at 2:00 pm
I would create a profiler job that captures events for that database and filter it for truncate commands. That should get you the informaiton you need.
November 10, 2008 at 12:03 pm
There are also some microsfot reports and tools you can use to get some of this information.
and the SQLH2
November 7, 2008 at 12:17 pm
I assume this code is part of a trigger? Are you sure there are records in the deleted virtual table?
November 7, 2008 at 9:01 am
Its not an Excel file, so you can't do excel specific formatting. You are essentially creating a csv file and calling it .xls which Excel automatically opens and applys...
November 7, 2008 at 8:51 am
Can you explain what you mean by the first 10? With out knowing your data or what you mean by the first 10 records I would limit the SELECT...
November 6, 2008 at 2:44 pm
Interesting question. I am not sure of the best way to do this either but I will give it some more thought. But my initial thought is just...
November 6, 2008 at 2:40 pm
This can easily be done with a CTE and RANK() function. Something like the following example:
DECLARE @Temp AS TABLE (
DayId INT,
Hits INT,
Title VARCHAR(20)
)
INSERT INTO @Temp
VALUES (4112, 20, 'Gone with...
November 6, 2008 at 12:31 pm
Can you just do a simple where clause as follows or was there a reason for the EXISTS() use?
SELECT T_Customers.CustomerID, T_Customers.CustTypeID, T_Customers.Surname, T_Customers.Forename, T_Customers.TitleID, T_Customers.Ref1,
...
November 6, 2008 at 12:20 pm
Don't use two sets...
update crt_student_test2
set crt_student_test2.class_id = cactus.cactus,
crt_student_test2.ClassID_Updt = 'Y'
where cactus.teacher = crt_student_test2.class_id
and crt_student_test2.school_year = 2008
...
November 6, 2008 at 12:02 pm
It sounds like you are running the MSDE versus the full version of SQL if you don't have a graphical UI for the sp4 install. Is this correct? ...
November 6, 2008 at 9:18 am
Bitwise comparison to a binary representaiton. Looks like 0X40 is a log file.
http://msdn.microsoft.com/en-us/library/ms178009(SQL.90).aspx
November 6, 2008 at 7:43 am
Viewing 15 posts - 106 through 120 (of 183 total)