Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)

  • RE: Index Strategy on a Very Large Table.. Any Ideas ??

    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...

  • RE: Variable Issue

    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...

  • RE: UPDATE Query problem

    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.

  • RE: SQL 2000 Update Query Issue -- Performance

    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...

  • RE: Problem with arithabort

    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...

  • RE: Copy DB to another DB on the same Server?

    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...

  • RE: Merge into one Row

    Check out the topic "insert three rows into one row of another table".

  • RE: Really poor checksum (Checksum_agg())

    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....

  • RE: Error with returning, or not, a recordset

    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".

  • RE: INFORMATION_SCHEMA question

    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!...

  • RE: INFORMATION_SCHEMA question

    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...

  • RE: Table Name As a parameter!!!

    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...

  • RE: Really poor checksum (Checksum_agg())

    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...

  • RE: Outputting XML from table(Using XML AUTO)

    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

  • RE: nth record of a recordset

    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...

Viewing 15 posts - 1 through 15 (of 18 total)