Viewing 15 posts - 25,576 through 25,590 (of 26,490 total)
I have run into a couple of situations where a cursor based solution was a lot faster than the set based solutions I was attempting, 45 minutes for the cursor...
August 10, 2007 at 1:25 pm
Looks like you are trying to delete SQL Server system tables. NOT a good idea. What tables have you been able to delete so far?
![]()
August 10, 2007 at 1:02 pm
I can't find xp_GetFileDetails on my SQL Server 2005 SP 2 system.
August 10, 2007 at 11:15 am
Looking at the July CTP:
xp_DirTree Yes
xp_SubDirs Yes
xp_FileExist Yes
xp_GetFileDetails No
![]()
August 10, 2007 at 11:13 am
I'll disagree with #4. There are instances where cursors are usable. Before using them, be sure you have looked at all other alternatives.
![]()
August 10, 2007 at 10:47 am
Try this:
SET @cmd = 'USE ' + @dbname + ';CREATE TABLE dbo.ETL_LAAD (LAAD_KEY bigint IDENTITY (1, 1) NOT NULL , LAAD_DATUM datetime NOT NULL) ON [PRIMARY]'
--EXEC @cmd
August 10, 2007 at 7:47 am
It would probably help more if you explained what it is you are try to accomplish besides just modifying the code. An example of the expected output would also help.
August 9, 2007 at 1:58 pm
What exactly are you trying change in OLE DB source?
August 9, 2007 at 12:37 pm
update dbo.TargetTable set
targetfield = dateadd(yyyy, targetfield, 1)
where
(any criteria to restrict the update)
![]()
August 9, 2007 at 11:50 am
Have you also included the size of the indexes in your calculations?
August 9, 2007 at 9:58 am
Here is the problem (only thing I can think of why it worked on my system is I am running on SQL Server 2005):
WHERE
(class.class_date > GETDATE()) AND (course.course_type_id =...
August 8, 2007 at 8:34 pm
Here is my suggestion, contact Microsoft. With the configuration you listed, you may be able use the Developer Edition for your Development, QA, and Training servers, and then use the...
August 8, 2007 at 9:04 am
True, I goofed with the THEN, I sometimes put it in as a line comment to keep things straight in my mind.
August 7, 2007 at 5:00 pm
Just for me, can you post back what you copied? Thanks.
![]()
August 6, 2007 at 5:12 pm
Check out John's code, I think it will do what you need also (I haven't tried myself). Also, as you didn't post the code you are running based on my...
August 6, 2007 at 4:35 pm
Viewing 15 posts - 25,576 through 25,590 (of 26,490 total)