Forum Replies Created

Viewing 15 posts - 7,006 through 7,020 (of 7,636 total)

  • RE: Stored Procedure - which is faster/better?

    matt6749 (5/2/2008)


    However, I don't understand what @skip = 90000 is. Do I need this - can you help?

    It's the number of rows to skip over and should normally...

  • RE: Datetime Function behaving wierdly....

    Try the following query:

    [font="Courier New"]select   tr.policy_expiration_date_key,ex.cal_date

    from  

               tr

          inner join

              ..datedim ex

             on ex.date_key = tr.policy_expiration_date_key

    where transaction_audit_key = 178

    AND (EX.Cal_Date < Cast('1900-01-01' as datetime) OR EX.Cal_Date > Cast('2079-01-01' as datetime))

    order...

  • RE: Delete Trigger

    Post the trigger code.

  • RE: Delete Trigger

    Yes, delete them all in one SQL statement instead of deleting one row per statement.

    Unlike Oracle, SQL triggers fire per statement, and not per-row.

  • RE: Query for login name and login status on SQL 2000 database?

    This is a SQL 2005 forum. There are SQL 2000 forums on this site also.

  • RE: Another Crappy Cursor

    OK, looking at your data now, it is clear that my routines do not respect the relationship between your "Order By" fields and the sequencing of CumInDemand. I do...

  • RE: Grant Create Index Privilege to a role?

    I think that you would need to write a stored procedure or a CLR to do it on their behalf. Very tricky to give them all of the abilities...

  • RE: Create a Tally or Numbers Table

    Jeff Moden (5/1/2008)


    Michael Valentine Jones (5/1/2008)


    Jeff Moden (5/1/2008)


    Michael Valentine Jones (5/1/2008)


    It's probably better to avoid using a reserved word, like INDEX, for a table name.

    Or "number" or "sequence" or... that's...

  • RE: Stored Procedure - which is faster/better?

    OK, well I am going away for the weekend and I don't have time to clean it up, so you'll have to take it as is...

    Here is the Test-Rig (everything...

  • RE: Auto Incrementing Primary Keys in SQL Server 2005

    You can also get this information through the ANSI-standard INFORMATION_SCHEMA views provided by SQL Server. All of these are read-only, of course.

  • RE: Restrict DBO user

    I have to agree with Jeff here. You *could* use DML triggers to achieve the same effect for data, but I really think that you would be buying yourself...

  • RE: Create a Tally or Numbers Table

    Jeff Moden (5/1/2008)


    Just to throw another name into the mix, I've heard some people call what I'm calling a "Tally" table, an "Index" table, which also seems appropriate considering its...

  • RE: Create a Tally or Numbers Table

    Just google "tally table". The procedural (manual) form is used by schools a lot.

  • RE: Stored Procedure - which is faster/better?

    None of the TOP(XX) methods that I have been testing are able to keep up with the Row_Number() technique that I posted.

  • RE: DatePart Function

    Jeff Moden (5/1/2008)


    rbarryyoung (4/30/2008)


    Jeff Moden (4/30/2008)


    I'm curious... Why 4 months? That's a third of a year...

    That's probabrly why, Jeff. I did some work for an insurance company several...

Viewing 15 posts - 7,006 through 7,020 (of 7,636 total)