Forum Replies Created

Viewing 15 posts - 12,526 through 12,540 (of 13,461 total)

  • RE: Grouping help

    you have to group by the case statment in this situation..it's wordy, but that's how it works...only in the ORDER BY clause can you reference by alias, so it's like...

  • RE: Using Conn.Execute() in an ASP file

    glad I could help.

    I was wondering if your stored procedure will save your notes correctly  if no notes exist yet...it wasn't obvious to me whether the notes get saved based...

  • RE: Using Conn.Execute() in an ASP file

    I'm assuming that on this document, it looks something like this based on your original post.

    You would want to add something similar in blue; note how i removed the...

  • RE: Using Conn.Execute() in an ASP file

    I don't think the issue is with Conn.Execute where it is calling that stored proc.

     I think you have a statement after Conn.execute that is referencing a recordset (notes maybe?) that...

  • RE: DB Timing and investigative procedures

    here's one of many ideas you'll get:

    since you have the SQL, put it in query analyzer and get the estimated execution plan.(control K in QA)

    look at the plan and see...

  • RE: Physical name of server

    usually select @@SERVERNAME wil return what you are looking for. if it were a n instance, like MYSERVER\SQL2005, it would be the part before the slash.

  • RE: status = 0 in Sysindexes

    the status column is used a s a bitfield mask to query whether an index is clustered,unique, etc.

    the status of zero is going to mean false for all indexproperties; it...

  • RE: Querying the max row length

    ok i see the difference.... I was concentrating on max field size, , so my version would simply find the largest used column size a for the MaxActualLength.each max size...

  • RE: Bitwise options for bigint?

    of course someone already had done this, so I didn't follow the rabbit down the hole to reinvent the wheel;

    here's a link:

    http://sqljunkies.com/WebLog/amachanic/archive/2005/01/25/6897.aspx

  • RE: Querying the max row length

    the script does...just look for anything with an DefinedSize greater than 8060:

    create table BadExample(

    varint int,

    var1 varchar(8000),

    var2 varchar(8000),

    var3 varchar(8000),

    var4 varchar(8000))

    insert into BadExample(varint,var1,var2,var3,var4) values (1,'sometext','more text than before','etc,etc',null)

    you get this on creation and insert:

    Warning: The...

  • RE: Database name with special character(Urgent)

    I'm going to start a [Bankers Rounding] is the [Best Practice] thread now.

  • RE: Querying the max row length

    Nice Jeff; your version does a much better job of analysis and presenting a basisi for improvements to someone's schema, i like it.

  • RE: Querying the max row length

    Thanks Jeff; I'm sure you are right...I should initialize the MaxActualLength with the values from syscolumns, and then update...makes the comparison much better.

    You contribute a lot to SSC; thanks!

    I also...

  • RE: Querying the max row length

    ok how about this:

    it gives results that look something like this:

    there is also an underlying table ##tmp, where you can see which columsn are defined but never used

  • RE: Create exe file for n number of scripts

    Sugesh getting a program to call them all is pretty easy...the problem is usually dependancy issues....you know, script 42 has to be run after some other specific scripts, something in...

Viewing 15 posts - 12,526 through 12,540 (of 13,461 total)