Viewing 15 posts - 1,126 through 1,140 (of 1,347 total)
Check the compatibility level of the database:
exec sp_dbcmptlevel YourDBName
It needs to return 7.0 or greater, otherwise TOP isn't available.
February 28, 2005 at 4:15 pm
>>All 4 tables have indexes.
But are any of the columns being updated, indexed ? When you update an indexed column to change the value, SQL Server not only has...
February 28, 2005 at 3:45 pm
Are there any indexes on the columns being regularly updated ? Are the columns being updated fixed or variable length ? Is the WHERE clause on each update statement referencing...
February 28, 2005 at 2:49 pm
To get text into a table in SqlServer, there are several alternatives:
- DTS package
- BULK INSERT command from within a T-SQL batch/procedure
- bcp command line tool (and calling bcp from...
February 28, 2005 at 11:57 am
There is no direct comparison & it depends on what you're trying to do. utl_file allows file I/O from within stored procs, right ?
February 28, 2005 at 11:41 am
Thanks for getting back to us on it.
Thankfully this will all go away when we get ROW_NUMBER() OVER() in Sql2005.
February 28, 2005 at 9:43 am
Possibly due to teh "*=" ? From BOL ...
In earlier versions of Microsoft® SQL Server™ 2000, left and right outer join conditions were specified in the WHERE...
February 28, 2005 at 9:39 am
Doh. Thanks Remi.
Cerebral cortex system error: Please install more caffeine and try the operation again.
February 25, 2005 at 3:11 pm
Heh, good catch. The images get inserted with file: tags pointing to the local disk, so only the author of the reply can see them. Guess you have to host...
February 25, 2005 at 3:02 pm
Select Name, Sum(Laps) As TotalLaps
From
(
Select Name, Laps
From Tom
Union All
Select Name, Laps
From Dick
Union All
Select Name, Laps
From Harry
) vtable
February 25, 2005 at 2:11 pm
Yes, you can use CASE in a WHERE clause:
SELECT *
FROM YourTable
WHERE pkID =
CASE @ID
WHEN 0 THEN pkID
ELSE @ID
END
This:
>>try using the...
February 25, 2005 at 10:29 am
When SQL Server generates statistics, it uses sysindexes to hold entries, and these are named "_WA_Sys_*". The 'status' column should distinguish them from 'normal' indexes.
February 24, 2005 at 3:10 pm
Create a new package. Add the text file source from either the connection toolbox, or the connection menu:
February 24, 2005 at 2:45 pm
You need to post the full SQL - considering that the error relates to columns in the Select and Order By lists and you omitted the column names from both,...
February 24, 2005 at 2:23 pm
Open EM. Expand this item:
Management->SQL Server Agent->Jobs
Right-click on Jobs, select New Job. See the "Steps" tab, create a new step and observe where a SQL statement can be pasted. This...
February 24, 2005 at 1:22 pm
Viewing 15 posts - 1,126 through 1,140 (of 1,347 total)