Forum Replies Created

Viewing 15 posts - 20,626 through 20,640 (of 22,202 total)

  • RE: Stored Procedures - Must declare the scalar variable "@TempTable"

    Also, for what its worth, you're doing unecessary work, selecting into the temporary table and then selecting from the temporary table. Instead, just use the select statement that would load...

  • RE: "Suspended" process caused by MS Access

    Suspended means waiting. Something interrupted the process and it's in a wait state. I'm not that familiar with Access, but from what you're describing, Access is in some manner holding...

  • RE: TOP vs Rowcount

    Either way you go, to ensure that you're getting the exact same result set you need to use ORDER BY to ensure that the 1000 rows you get is the...

  • RE: using database tuning advisor

    Everything Gail said and look at your execution plan (I'm getting sick of typing that. Anyone have a macro?) to see which indexes have a positive affect and which have...

  • RE: Chastised for recommending use of bit data type

    This looks like a fun one to pile on to

    1) A bit field, all by its lonesome, can be a horrible choice for an index (although in rare circumstances as...

  • RE: Sp to run in all the Database

    Some like this would work. Instead of just the SELECT statement, use that statement with an INSERT statement into the auditing table of choice.

    DECLARE @SqlString NVARCHAR(MAX)

    DECLARE @DbName NVARCHAR(MAX)

    DECLARE MyDatabases CURSOR...

  • RE: nHibernate

    Thanks for the reply. Yes, ORM, in this case, meant Object Relational Mapping.

    We are talking about new projects and new databases. Although actually, we've had databases and projects running, but...

  • RE: Complex Stored Procedure

    Nice. Much better, and I'm sure it performs a lot better.

  • RE: Recursive Query

    Or, you can have a procedure call itself. That too is recursion. Triggers can call themselves too. That's usually referred to as "an error."

    😀

  • RE: Select date period with Vb.net

    Check your structure. I created a structure like this:

    CREATE TABLE dbo.FileName

    (

    tipcon INT

    ,data DATETIME

    ,field1...

  • RE: Complex Stored Procedure

    Johann Montfort (4/15/2008)


    Dear All,

    I have a complex stored proc, which I inherited from the previous developer, and I wish to fine tune it a bit, because its taking 1.36 mins...

  • RE: Complex Stored Procedure

    Mahesh Bote (4/15/2008)


    [font="Verdana"]Johann, look at the below SProc, I tried to update.

    ALTER PROCEDURE [dbo].[sp_getpageidsforedb]

    @projectid int

    AS

    Set Nocount On

    Begin

    create table #ebdindex (

    [indexid] [int] IDENTITY (1, 1) NOT NULL ,

    [stringid]...

  • RE: How to Disable an index in sql server 2000

    First, having an index on a table won't slow down reads of that table assuming the reads use a different index. Second, get an execution plan for the query and...

  • RE: Sp to run in all the Database

    Quick & dirty, this will run your proc on all databases within a given instance:

    sp_msforeachdb 'use ?;select schema_name(schema_id)as ObjectName, name,type,type_desc from sys.objects

    where schema_name(schema_id) <> ''dbo''

    and type in(''U'',''P'',''V'', ''FN'',''TF'',''IF'',''K'',''UQ'')'

    However, to gather...

  • RE: replace characters on condition in table and cell

    So you want to udpate data based on the name of a column? Is that right?

Viewing 15 posts - 20,626 through 20,640 (of 22,202 total)