Viewing 15 posts - 1 through 15 (of 18 total)
Actually, a clustered index may not be necessary, depending on how the data is queried. If each client is selecting only a single record at a time, the clustered index...
November 30, 2006 at 10:32 am
Here is some code that will create a temporary table with the filenames that match a filespec. (Note that the filename do NOT contain the path.) You can...
July 29, 2003 at 9:08 am
To get the length of a column, you can use the following function:
COLUMNPROPERTY( OBJECT_ID('tablename'),'columnname','PRECISION')
It seems the query optimizer should evaluate it only once instead of for every row.
July 29, 2003 at 8:44 am
First (but likely not the cause of any of your problems), I would suggest using ISNULL() instead of <fieldname> = NULL.
Secondly, I would suggest using SQL Profiler to determine if...
July 21, 2003 at 7:34 am
I had this problem before and I believe I found out that the ODBC SQL Server driver always sets ARITHABORT OFF. You may have to set it ON with...
June 23, 2003 at 11:50 am
I agree with antares. The backup/restore method has become our standard way of copying a database at my company. Not only is it easy, but it seems to...
April 10, 2003 at 7:38 am
Check out the topic "insert three rows into one row of another table".
February 24, 2003 at 4:32 pm
It's almost humorous (to everyone except you, probably ) that such a simple scenario breaks their algorithm! I bet it was never in their test cases....
February 24, 2003 at 4:14 pm
How about trying "select null" instead of calling the extra stored procedure? If you need a specific column name, you can do something like "select null as columnname".
February 24, 2003 at 4:01 pm
Yes, I understand now. I was too quick in trying to reply and didn't completely read your problem. Maybe I can reply later with something that actually helps!...
February 24, 2003 at 3:45 pm
Try this:
exec sp_MSforeachtable @command1 = "select top 1 * from ?"
Of course, you can replace the SQL command inside the quotes to be whatever you want, including calling another stored...
February 24, 2003 at 2:47 pm
Greg Larson is right. However, for more information, check out BOL. Find "sp_executesql" in Index, then open the "Using sp_executesql" topic. It explains how to use parameters...
February 24, 2003 at 2:26 pm
I'd say those results point to the Binary_Checksum algorithm relying heavily on XOR functions. Any odd number of identical records produces an identical checksum, and any even number of...
February 24, 2003 at 2:19 pm
This is closer...
select distinct
t1.PeopleCode
t2.FirstName,
t2.LastName
from TempTable as t1
join TempTable as t2
on t2.PeopleCode = t1.PeopleCode
for xml auto, elements
February 24, 2003 at 2:06 pm
Part of the problem is MSSQL's limit on the TOP clause--you cannot specify a variable. However, if you do know which record you want, you can use MSSQL2K's new...
February 24, 2003 at 1:43 pm
Viewing 15 posts - 1 through 15 (of 18 total)