Forum Replies Created

Viewing 15 posts - 31 through 45 (of 116 total)

  • RE: Usages of CONTEXT_INFO

    Also, you should probably not be querying sys.dm_exec_sessions, sys.dm_exec_requests, or sys.sysprocesses directly becuase you probably won't have the correct permissions.

    Maybe that's why I never got it to work properly, but...

  • RE: Mini-Me

    We maintain a database called the Data Quality Engine (DQE) into which an operator can insert various kinds of tests that target data either on our SQL Server or Oracle...

  • RE: Creative SPAM

    My favorite subject line of all time:

    "Increase your income by becoming a Sociologist"

  • RE: How to get column names of a given table.

    rudy komacsar (10/14/2008)


    ... and also ...

    exec sp_help 'Tablename'

    You can also select the table name and hit alt-F1 which is the shortcut for the code above.

  • RE: A case with GROUP BY

    Vladan (9/29/2008)


    Sprocking,

    the use of DATEADD and DATEDIFF functions looks a bit strange at first, but is more efficient - and also more flexible. Once you learn how it works, you...

  • RE: A case with GROUP BY

    Why do summersaults with the date like that? The convert() function works well. One of my favorite uses is for the 'YYYYMMDD' output using 112 as the input "style" argument....

  • RE: Data dictionary builder for SQL Server 2005

    You can get a lot of information out of the information_schema views. See BOL:

    ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/7e9f1dfe-27e9-40e7-8fc7-bfc5cae6be10.htm

    If you join the views in a clever manner, you can show each column as well as...

  • RE: Errors trapped by CATCH block persist

    The error is being caught properly, but the error state is not being reset for the error_message() and error_line() functions. They continue to return stuff and it messes up the...

  • RE: Usages of CONTEXT_INFO

    I have several layers of nested procedures and when it reached trigger time, @@spid returned the top executing sproc rather than the update sproc, so it failed out. The only...

  • RE: How to retrive Drive capacity in SQL Server

    Almost!

    Sometimes sys.servers does not have a record for @@ServerName to return, so it comes back null.

    The foolproof way is:

    select @server_name = cast( SERVERPROPERTY( 'servername' ) as sysname )

  • RE: Is there a command in T-SQL to open an object browser connection?

    That's true: I can double-click in registered servers, but I would still like to script it out in T-SQL and avoid all that clicking.

  • RE: Is there a command in T-SQL to open an object browser connection?

    GSquared (6/25/2008)


    If I'm reading this correctly, there's an option in Management Studio to open the object browser when you open Management Studio. Does that do what you need?

    No, I'm...

  • RE: Intermittent dataflow and logging failure

    And, I figured it out shortly after posting!

    The problem is that the job deployed to production was pointing to the package on the development server. It's intermittent because those days...

  • RE: Can't see the system databases in object explorer

    Thanks a lot, that did it!

  • RE: Editorial control on columnists

    Steve Jones - Editor (10/30/2007)


    I can appreciate your ire at Mr. Celko, but I'd argue he has helped advance our profession and comes up with some interesting solutions to problems...

Viewing 15 posts - 31 through 45 (of 116 total)