Viewing 15 posts - 76 through 90 (of 238 total)
Example:
create table table_name
(a datetime
,b datetime
,CONSTRAINT constraint_name CHECK ( a > b )
)
March 11, 2003 at 12:31 pm
If you are talking to a text file through ADO, then you are using an OLE DB (or ODBC) driver for text files. In a way, you are using the...
March 10, 2003 at 4:33 pm
This would work:
DECLARE @NAME varchar(30)
SELECT EXAMINER_ID
FROM USER_GROUP
WHERE PATINDEX('%' + @NAME + '%',EXAMINER_ID) > 0
Michael
March 10, 2003 at 11:32 am
To accomplish this is one SELECT statement, something like this would work:
SELECTSUM( CASE iDEAS_sTATUS WHEN 'implemented' THEN 1. ELSE 0. END ) / COUNT(*)
FROMIdeas
WHEREdateSubmitted BETWEEN ...
Edited by - mromm on...
March 10, 2003 at 10:44 am
The other thing that might cause slow changes to the table is if you have foreign key defined on the table.
Also, if this is OLTP, why so many indexes?
Those...
March 7, 2003 at 2:41 pm
Multiple instances of SQL Server on one machine is a feature of SQL Server 2000 (already forgot if it was in 7). Even then it should not be used in...
March 7, 2003 at 11:34 am
I think you can do it without cursor in one table scan like this (only replace NULL values with, say, '' using ISNULL function):
SELECT PersonId
, CASE t1.FirstName WHEN...
March 6, 2003 at 11:58 am
Ron, I realize that about clustered indexes. I only meant there is the option but, of course, you use it only with non-clustered indexes.
March 6, 2003 at 10:22 am
Just make sure you do not get too excited about UDF. It is a good replacement for parameterized views not supported by SQL Server. However if you start putting UDF...
March 5, 2003 at 4:59 pm
Good idea: eBay for database contracts with the bids for hourly rate strting high and going down... Just kidding.
March 5, 2003 at 4:04 pm
There is a version column in the same table. If you record the current version, you can monitor if it was changed. It inrements every time you alter the object....
March 5, 2003 at 2:37 pm
You can create a variable of the type TABLE only in SQL Server 2000, not in version 7.
Edited by - mromm on 03/05/2003 2:30:01 PM
March 5, 2003 at 2:29 pm
Consider replacing a stored procedure with a user-defined function that returns a table. It may satisfy your need. Something like this:
CREATE FUNCTION fn_abc ( <parameter list> )
AS TABLE
BEGIN
...
END
March 5, 2003 at 1:56 pm
I think there is no performance difference because a unique constraint is implemented in MS SQL Server through a unique index creation. In the same manner, a PRIMARY KEY constraint...
March 4, 2003 at 6:39 pm
Viewing 15 posts - 76 through 90 (of 238 total)