Forum Replies Created

Viewing 15 posts - 91 through 105 (of 171 total)

  • RE: Need to replace #temp tables with CTE

    mic.con87 (2/10/2012)


    Hi,

    I've been asked to adjust my query by using CTE instead of #temp tables as it is slowing down the entire network.

    ...

    I have a question.

    Why are temp tables...

  • RE: Query SQL to return back a XML string created Select Combobox

    I need to ask...

    Why in god sake are you returning a html control from the database?

  • RE: One thing I keep missing in SQL

    Samuel Vella (2/9/2012)


    ...

    Agreed, having to define the type first is not exactly elegant.

    Defining the type before or after the variable is just language flavor.

  • RE: SQL Server 2012: Creative Thinking for a Creative New Licensing Model

    I never agreed "licensing for computing power" since its sounds some smart *** marketing guy saying "Hey, if you can afford a big server you can afford to pay more...

  • RE: One thing I keep missing in SQL

    Thanks Samuel,

    It can be achieved from many ways and for dynamic arrays we can use any kind of split function and strings.

    But I miss the simplicy arrays can give for...

  • RE: One thing I keep missing in SQL

    I miss arrays a lot in SQL. Like this:

    create procedure ImissArrayParam(@array Array(Integer))

    as

    begin

    select * from myTable where myId in @array

    end

    GO

  • RE: Old Dog, New Tricks

    GSquared (2/8/2012)


    ...

    Assuming the database is on a server the person trying to steal your code has access to, all they have to do to steal your code is start a...

  • RE: problem using left join - not showing all possible results

    This is a good example of "dont rely on casting" when modeling.

    (and implicit casting is still worst).

    Since it appears to be only some type of academic exercise (students tables are...

  • RE: Old Dog, New Tricks

    You can encript yours SPs.

    But I never used it in real world, I dont know if its easy to break.

    From BOL:

    "

    ...

    ENCRYPTION

    Indicates that SQL Server will convert the original text...

  • RE: Old Dog, New Tricks

    SQL Injection and Performance are 2 items from a wide list why I hate dynamic sql.

    Some app use, at least, parameterized dynamic sql and it blocks most problems with SQL...

  • RE: Help in Updating an exception table

    Gail,

    After you post I changed my avat accordly.

  • RE: Help in Updating an exception table

    All answers ill do the trick.

    The solution from myself is just a trick to put both insert and update statements in the same procedure.

    Jonhitech solutions is best for OO applications...

  • RE: Old Dog, New Tricks

    You are right, no verbatim literal strings to VB.net...sorry

    But you can use:

    Dim s as String _

    = "string1" _

    & "string2" _

    & "string3"

    😛

  • RE: Table design bias to rows or columns

    The partition design is different.

    For the example above keep the first table definition.

    So create a different table for each transaction type, all pointing tho the main transaction table.

    The transaction table...

  • RE: Old Dog, New Tricks

    I dislike using dynamic SQL but for .net I sugest using @

    String sqlcode = @" /*this

    ill keep

    the break lines

    no need to fancy concatenations */

    select *

    from

    mytable

    where

    myfavoritesqlresource = 'SSC';

    ";

    😎

Viewing 15 posts - 91 through 105 (of 171 total)