Viewing 15 posts - 16 through 30 (of 156 total)
Is the phone data stored in a separate table ? Can you give DDL of the tables involved ?
September 6, 2007 at 1:38 pm
Is this what you are looking for -
SELECT getdate()
September 5, 2007 at 12:05 pm
Your cursor declaration needs to select a single column - EmailId. You cannot select all column into a single variable.
August 29, 2007 at 3:57 pm
Leave the clustered index. You may need to add an index on the month column.
Also the log size will grow. This might give you some more insight.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=65&messageid=222360
August 29, 2007 at 12:41 pm
Couple of things to check:
What index on there on the table. Index would be rebuilt as deletion takes places which would slow the process. An option to consider would be...
August 29, 2007 at 10:45 am
SELECT t.FKID, MAX(t.Item) Item, t.ATime
FROM #Test t INNER JOIN (
select FKID, MAX(ATime) ATime FROM #Test
GROUP BY FKID ) t1 ON t.FKID = t1.FKID AND t.[ATime] = t1.[ATime]
GROUP BY t.[FKID], t.[ATime]
August 24, 2007 at 12:15 pm
MAX(CASE WHEN CL.Category NOT IN ('A', 'B', 'C', 'N', 'O') THEN 'Z' ELSE '' END) AS 'Category Z'
August 22, 2007 at 12:48 pm
DECLARE @tbl TABLE (Pole_ID int, Attachment_ID int, dt datetime)
INSERT INTO @tbl
SELECT 1, 101, '2008-01-01'
UNION
SELECT 1, 102, '2008-01-01'
UNION
SELECT 2, 103, NULL
UNION
SELECT 2, 104, '2008-01-01'
UNION
SELECT 3, 105, '2008-01-01'...
August 22, 2007 at 7:38 am
A good article by Brian kelley
http://www.sqlservercentral.com/columnists/bkelley/sqlserversecuritythedb_executorrole.asp
This would get you started.
August 17, 2007 at 8:37 am
How do you convert 73459 to 02/13/2002
declare @i int
SET @i = 73459
SELECT CONVERT(datetime, @i)
When I run this, I get 02/15/2101
August 16, 2007 at 9:33 am
Look up DATEADD function in BOL (Books Online)
DECLARE @PayDate datetime
SET
@PayDate = '2007-01-01'
SELECT
August 15, 2007 at 11:41 am
August 15, 2007 at 7:38 am
In the job schedule option (in Job properties), change the Frequnecy from Daily to weekly and check all days except Saturday.
August 15, 2007 at 6:22 am
Viewing 15 posts - 16 through 30 (of 156 total)