Viewing 15 posts - 91 through 105 (of 171 total)
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...
February 10, 2012 at 3:19 am
I need to ask...
Why in god sake are you returning a html control from the database?
February 9, 2012 at 9:08 am
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.
February 9, 2012 at 5:15 am
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...
February 9, 2012 at 5:03 am
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...
February 9, 2012 at 4:29 am
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
February 9, 2012 at 3:58 am
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...
February 9, 2012 at 3:02 am
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...
February 6, 2012 at 9:54 am
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...
February 6, 2012 at 6:24 am
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...
February 6, 2012 at 5:57 am
Gail,
After you post I changed my avat accordly.
February 6, 2012 at 4:54 am
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...
February 6, 2012 at 3:41 am
You are right, no verbatim literal strings to VB.net...sorry
But you can use:
Dim s as String _
= "string1" _
& "string2" _
& "string3"
😛
February 3, 2012 at 11:21 am
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...
February 3, 2012 at 10:46 am
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';
";
😎
February 3, 2012 at 10:00 am
Viewing 15 posts - 91 through 105 (of 171 total)