Viewing 15 posts - 11,761 through 11,775 (of 13,464 total)
Oh, I'm sure I've got tunnel vision on the issue, instead of understanding....my knee jerk reaction was that an IF statement would automatically void schemabinding, but that's clearly not...
January 15, 2009 at 10:33 am
it's not obvious, but what you want to do is stick your query into a subquery, and use the where statement outside:
[font="Courier New"]SELECT MySubQueryAlias.*,
(MySubQueryAlias.New_Sell_price2
- MySubQueryAlias.commision_cost)
/ MySubQueryAlias.New_Sell_price2 AS MYRESULTS
FROM...
January 15, 2009 at 10:27 am
well it doesn't complaina s i expected it to;
here's the way i thought it had to be, and then the way it thought would not be allowed with an "IF"...
January 15, 2009 at 10:19 am
i ended up doing it a different way...i got a sub select of all default values cross joined against the customers, and then used a COALESCE to get the updated...
January 15, 2009 at 6:29 am
Matt that's interesting, i didn't know about WITH SCHEMABINDING to a function...
does the results have to come from a SELECT statement in order to be deterministic?
I'd assume that an IF...
January 14, 2009 at 8:15 pm
I'm watching for better answers, but this is how i understand it:
suppose you had a table with every address in the united states...200 million or so.
any search is going to...
January 14, 2009 at 9:43 am
i would not put the counter_id data in the table...instead i would make a view which had the value you were looking for:
[font="Courier New"]
SELECT Row_number() OVER (PARTITION BY x.chk_no ORDER...
January 13, 2009 at 1:21 pm
I'd tripped over the same issue previously.
ok, really you only need to search columns that are of type varchar,char,nvarchar and ntext....you obviously wouldn't need to search a numeric field for...
January 13, 2009 at 12:23 pm
truncation implies that x number of characters of a string are not being saved....that wouldn't happen to a number(int for example)
do you mean decimal information? the definition for your columns...
January 9, 2009 at 6:17 am
i don't know if you'll find it;for the indexes on all the PK's and UQ indexes, you can find it because the creation date of the PK and it's index...
January 8, 2009 at 9:30 pm
there is an example in this forum post which has my example:
creates a database and two example roles: one that can create and alter tables, and one that can just...
January 8, 2009 at 9:13 pm
well first you need a proof of concept: can you find a char(0) in a field...actually, you don't need to search every column,
but rather every char, varchar, nchar and...
January 8, 2009 at 9:01 pm
see the thread here:http://www.sqlservercentral.com/Forums/Topic326235-5-2.aspxit's got a complete explanation on the flags., as well as a code snippet to plug in your status and get the results.
January 8, 2009 at 5:04 pm
as long as the logon exists, you could then add lots of users to the same logon. once the logon exists, you don't need to throw the password around...is that...
January 7, 2009 at 3:47 pm
while you were in master, you should have added a login to the server, and then in your database, add a user to that login
here's a simple example, where I'm...
January 7, 2009 at 2:30 pm
Viewing 15 posts - 11,761 through 11,775 (of 13,464 total)