Viewing 15 posts - 1,711 through 1,725 (of 1,838 total)
gavinparnaby (10/22/2008)
We've just switched from multiple Access DB's to a SQL Server 2005 for our datawarehousing, but we're still using Access as a front end for our users.
I think Lynn...
October 22, 2008 at 9:15 am
Here's a script that someone else helped me with (sorry I don't remember who to give credit to). This will generate all of the commands to move your nonclustered...
October 21, 2008 at 11:57 am
I don't think that's quite what the original post asked for, I think he wants to exchange first_name values from different rows. If it doesn't need to be an...
October 21, 2008 at 11:43 am
here's my attempt, after pondering this over lunch:
SELECT id, LEFT(iname, CommaLoc-1) AS lastname,
SUBSTRING(iname, CommaLoc + 2, Space2Loc - CommaLoc - 1) AS firstname,
...
October 21, 2008 at 11:07 am
In your formula for firstname, you have PATINDEX looking for '%, %', but then taking the 1st LEFT letter, so it will always be returning the space after the comma.
In...
October 21, 2008 at 10:26 am
OK, vnguyen, yes this solution won't work on 2000, (didn't realize you needed a 2000 solution) but it should work fine on 2005 unless you have compatibility level set below...
October 21, 2008 at 10:00 am
I think I see what you are trying to do, find the difference between each month. Is your column1 an int, datetime, or is it actually storing the month...
October 21, 2008 at 9:36 am
You're database needs up time 24x7, but is there a time that the system usage is lowwer than others? A healthy database does need some maintenance, and if some...
October 21, 2008 at 9:04 am
Something to consider when virtual memory paging is happening, it's causing a read from disk and an extra write to disk to happen. When SQL Server is managing its...
October 21, 2008 at 8:14 am
Is this INSERT statement inside a stored procedure? We typically make the parameters of the stored procedure optional when they can be NULL in the database, and then the...
October 17, 2008 at 12:00 pm
arctica82 (10/17/2008)
(
[DateSince2000] ASC,
[shape] ASC,
[EventDateTime] ASC,
[ID] ASC
) ON [PRIMARY]
) ON [PRIMARY]
...
Select Top 1 EventDatetime
From Table1 with(index(PK_test))
WhereDateSince2000 = @DateSince2000
And Shape =...
October 17, 2008 at 11:51 am
I have a custom solution that will return not only the stored procedures, views, or triggers that have a specified search string in them, but also what line number the...
October 17, 2008 at 11:18 am
Probably the easiest way to write this would be to use a combination of the ROW_NUMBER function to determine how recent each record per GOAL is, and a common table...
October 16, 2008 at 3:13 pm
If you do an ALTER INDEX REBUILD, by default the server will update the statistics on its own. If you did ALTER INDEX REBUILD WITH (STATISTICS_NORECOMPUTE = ON) then...
October 16, 2008 at 3:04 pm
Views based on other views shouldn't be too much of a problem, the database engine typcially is able to resolve a query with a view and a derived table subquery...
October 16, 2008 at 2:05 pm
Viewing 15 posts - 1,711 through 1,725 (of 1,838 total)