Forum Replies Created

Viewing 15 posts - 12,751 through 12,765 (of 13,465 total)

  • RE: SQL 200 view problem

    not an "automatic" way that I'm aware of;

    you can make it a habit  to recompile objects on a regular basis (exec sp_recompile object name) for all procs, views and functions,...

  • RE: DB Design Question - Grouping, Ordering & Randomization

    newid() is the function most people use in order to get random order, and random counts use the rand() function.

    I had to build the schema and data in order to...

  • RE: Working with Text data in T-SQL

    just pasting some code that might be helpful: my snippets catalog named this "Find and Replace TEXT/NTEXT" this is really for when you cannot display a TEXT/NTEXT because it's more...

  • RE: Minutely Job Problems

    losts of good suggestions here...I wanted to mention that you should look at what the jobs are doing as well....maybe they can be replaced outright.

    I had a similar issue where...

  • RE: Fatal error 625 - Connection broken problem (Help needed)

    connection broken is typically a one time kind of error, where you lost your connection to your database, whether a cable was kicked out, an admin killed your spid, or...

  • RE: Identity Column

    you'll want to do the following:

    do this on test first, and not production. I'm recommending using Enterprise manager for part of this, because it will handle a lot of the...

  • RE: selecting all index info

    I had previously written a script that does exactly that...build sthe commands: try this out:

    Results:
    CREATE  UNIQUE             INDEX [UQPRJEXC]                    ON [GMPRJEXC]            (PRJTBLKEY,GMSFEXCTBLKEY) WITH...
  • RE: selecting all index info

    not 100% sure that this is what you want, but this is pretty close: limiting to top 100 because this can be a whopper of a resultset.

    Table...
  • RE: Validating a directory on the SQL server

    there are several scripts in the scripts section that do this:

    i searched "directory exists"

    Verify Directory Exists and Create if Necessary

    http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=1463

    therre are several others as well:

    ScriptsRatingSearch...
  • RE: triggering a view filtered by getdate()

    don't try and find the items that are no longer in the view....create the OPPOSITE of the view, and have a schedule job email you or something for every item...

  • RE: Bulk Insert Task - Where Does The First Row Begin

    i typically bulk insert EVERYTHING into a staging table, and then in the staging table i would Select * from the column where column not (like HEDR%') and not like...

  • RE: Create one database, or several?

    On the other hand, if the applications are even slightly related, there's an advantage to having a single, unified schema though...ease of deployment and maintenance, because you need to support...

  • RE: query tuning

    structure wise, if you were to change it all to inner joins, the execution plans would be the same, so there's no speed difference...

    i think this is functionally the same...

  • RE: Random numbers generation SP

    here's an example of random letters:

    select ' C7116A-'

    + char(65 + convert(int, 25 * Rand() + 1 ))

    + char(65 + convert(int, 25 * Rand() + 1 ))

    + char(65 + convert(int,...

  • RE: Random numbers generation SP

    it sounds like you need just a random number of a fixed length, which you are appending to the first 6 fixed characters.

    you already identified that a random number does...

Viewing 15 posts - 12,751 through 12,765 (of 13,465 total)