Forum Replies Created

Viewing 15 posts - 331 through 345 (of 541 total)

  • RE: No DBAs allowed access to Production DB Servers...

    Not only that, but if the DBA actually DOES learn the system well, is he then not allowed to be DBA anymore? 

    That sort of thinking is screwed, and not standard...

  • RE: Need list of tables which a application is accessing.

    As an aside, this is a good reason why your applicate shouldn't access tables directly.  In this case, you would only have to change the procs (which you would still...

  • RE: Using Temp Tables in SPROC output

    Kevin,

    The code you posted compiled and executed just fine for me.  If I try to run the estimated execution plan I get the "Invalid object name '#output'." error.

    In this case,...

  • RE: Creating a System Stored Procedure

    Man, this article does not go into any depth.  Your example proc has capitals in it, which Microsoft specifically says not to do.  The script for a system proc should...

  • RE: How to Transfer SQL server database to MS Access

    Yeah, you should use DTS, that's going to be the fastest.  Simply set up your SQL db as one data source and your access db as the other.  Use a...

  • RE: How To Check if Job is Running?

    Oops!  wrong forum post.  I was on the same track you guys were, though...so that's good

  • RE: How To Check if Job is Running?

    if you look at sp_job_help, it's a wrapper proc for "sp_get_composite_job_info".  If you are not using any parameters there is no danger in executing sp_get_composite_job_info directly.  Much faster, too.

    Also, if...

  • RE: How to quickly obtain number of rows in a table?

    A variation on above sysindex posts:

    Select  so.name, sc.rowcnt as RowsInTable

    From sysobjects so (nolock)

    JOIN sysindexes sc (nolock) on so.id = sc.id

    WHERE  sc.indid < 2

    order by RowsInTable desc

    I have found this to be...

  • RE: Use ARRAY for CASE Statements II

    Here's a simpler example:

    if object_ID('tempdb..#Test') is not null drop table #Test

    Create Table #Test

     ([id] [char] (22) ,

      [ques_name] [varchar] (50) ,

      [ques_val] [varchar] (100) )

    Insert #Test Values ('1','date','10/14/2004')

    Insert #Test Values ('1','country','usa')

    Insert #Test...

  • RE: Select

    Or, if you want the columns to be dynamic based on distinct values in ques_name:

    ----------------------------------------------------------------

    if object_ID('tempdb..#Test') is not null drop table #Test

    Create Table #Test

     ([id] [char] (22) ,

      [ques_name] [varchar] (50)...

  • RE: Use ARRAY for CASE Statements II

    Very thorough data...the first one one this site that I would say is almost too thorough.  Very very nice...

    Abstracting it out, the key is:

    Create a temp table (#Event in the...

  • RE: JOIN PROBLEM

    Something like below:

    From T1 (nolock)

    JOIN T2 (nolock) on cast(T1.ID as char(10)) = cast(T2.ID as char(10))

     

    I can't really help you more without the actual data types and some sample data.

  • RE: Connection String from Apache Server

    Commonly, the way to do this is to put the connection string in a separate dbConnection class.  If the connection string changes then only this class must be re-compiled, not...

  • RE: how to handle delimiter in SQL?

    Steve,

    Very cool!  Thumbs up for obscure but useful ASCII knowledge.

    cl

  • RE: Expression Interpretation

    Ducati,

    That's what we're saying...that parsing the xls formulas is extremely hard, for exactly the questions you are asking, namely nesting and text delimiters.  There has got to be a better...

Viewing 15 posts - 331 through 345 (of 541 total)