Forum Replies Created

Viewing 15 posts - 61 through 75 (of 102 total)

  • RE: Can I do this in one Update Statement?

    That works great - thank you for helping me out.

  • RE: Cross Server Inserts

    More details...

    I have an application that handles customer's requests to add users to be able to run our various software applications. To save time, I am adding functionality that allows...

  • RE: Getting DB roles from SQL2000 and 2005

    I'll give that a try, So far looks good. Thanks for helping me out.

  • RE: Getting DB roles from SQL2000 and 2005

    That's my problem - from where I'm running my query, I don't know if it is a 2000 or 2005 version. The select @@version gives too much information to accurately...

  • RE: Getting DB roles from SQL2000 and 2005

    On a 2005 DB I get rows when I perform:

    SELECT * FROM sys.database_principals

    On a 2000 DB I get:

    Invalid object name 'sys.database_principals'.

    Under the scenario I am using, I cannot log in...

  • RE: SQL taking a long time

    "So check how is SQL Server memory/OS memory? How is the disk I/O system is there backlog in the disk system that it is taking I/O to get information to...

  • RE: SQL taking a long time

    DBCC SHOWCONTIG scanning 'mytable' table...

    Table: 'mytable'(1800393483); index ID: 1, database ID: 14

    TABLE level scan performed.

    - Pages Scanned................................: 6573

    - Extents Scanned..............................: 826

    - Extent Switches..............................: 825

    - Avg. Pages per Extent........................: 8.0

    - Scan...

  • RE: SQL taking a long time

    We ran this last night

    DBCC DBREINDEX(my_table,' ',90)

    sp_recompile my_table

    I am just running a select count(*). Before took 29 seconds. Ran a minute ago took 6 seconds.

    Here is a main question. We...

  • RE: SQL taking a long time

    7) There is an index using these 5 columns and these values are checked: clustered index, unique values, filegroup - primary, fill factor -90.

    If I perform some re-index, how can...

  • RE: Left outer join

    This works great and I can use it as a template going forward. Thank you very much.

  • RE: Treeview Select

    My original result set returns 348 rows from #tmp. I am using the 'with' you suggested after my original select. I get:

    (2 row(s) affected)

    ....

    ....

    ....

    ....

    (348 row(s) affected)

    (1 row(s) affected)

    Msg 530, Level...

  • RE: Treeview Select

    The statement terminated. The maximum recursion 100 has been exhausted before statement completion

    I have a pretty big table - 350 rows

  • RE: Treeview Select

    I got it to run with no errors. I will change it up and try it with all of the real data and I'll let you know. Thanks for your...

  • RE: Treeview Select

    Bevan -

    Msg 336, Level 15, State 1, Line 11

    Incorrect syntax near 'cte'. If this is intended to be a common table expression, you need to explicitly terminate the previous...

  • RE: Update based on values in the same table

    Thank you so much for heling me out - I will give it a try.

Viewing 15 posts - 61 through 75 (of 102 total)