Forum Replies Created

Viewing 15 posts - 7,576 through 7,590 (of 7,608 total)

  • RE: database table search

    D'OH, sorry, change the TINYINTs to SMALLINTs.

  • RE: database table search

    I assume you know the column type is char/varchar/nchar/nvarchar.  If not, remove the check for "%char%"; if you know it's varchar, naturally you can change it to "%varchar%".

    For one db:

    SELECT...

  • RE: Please allow feedback on "Script of the Day"

    > Kill connections is pretty good. <

    No, it's not - ALTER DATABASE should be used.

    And if you really want  to issue specific KILLs, you can do it something...

  • RE: Structure of SP results

    Sorry, correct, I mis-read the original q.

  • RE: Structure of SP results

    Try looking at table "syscolumns".  It includes not just table columns but also stored procedure columns .

    For example:

    SELECT *

    FROM syscolumns WITH (NOLOCK)

    WHERE id...

  • RE: Facing problem with executing large-value query variable

    Change @Qry from VARCHAR(5000) to VARCHAR(8000).

  • RE: Naming Conventions

    I too don't like a "t"|"tb[l]" prefix, no least of all because a view can be changed to a table and vice-versa.  Column prefixes, of any type, are even worse.

    I do...

  • RE: How do you spell S-Q-L?

    No, "wrong situation" refers primarily to an application being added to the server.  And not necessarily a full-blown business app either. 

    Say, instead, Java applets are added to the server. ...

  • RE: How do you spell S-Q-L?

    >> How much memory does SQL use on startup? <<

    I disagree about the relevance of this q.  This knowledge is not only useful but vital for a senior DBA.  Otherwise,...

  • RE: Building a string range

    Split the varchar and int portions for storage purposes only.  You can still combine them for display, etc..

    So, create two new columns, one varchar and one (small)int, copy the existing...

  • RE: Introductory book on T-SQL

    I recommend (Philip) Pratt's "A Guide to SQL".  I used it for db classes I taught and thought it was excellent for students.

  • RE: design question for "master" Item data structure

    All those LEFT JOINs will kill your performance.

    But, would you really ever need to process the Item master table?  Wouldn't you be more likely to be processing the Applications, etc.,...

  • RE: Effects of encrypting stored procedures

    I would think that the first time the proc is run, and any future time that it has been paged out of the cache, there will be more overhead for...

  • RE: A Fix() Function in T-SQL

    Very sweet!

    But why the extra overhead of declaring and setting a variable?  Why not just return the calc'd value?

    ...

    BEGIN

    RETURN CASE WHEN ...

    END

  • RE: Performance on full table scans

    Make sure the table is not fragmented.  You will have to add an index to check and/or adjust fragmentation.  Once the table is compacted, if necessary, you can drop the...

Viewing 15 posts - 7,576 through 7,590 (of 7,608 total)