Viewing 15 posts - 2,281 through 2,295 (of 5,103 total)
Indexed views are the "equivalent" to materialized views. They have to be created with the "with schemabinding" option and you can only change the columns that are not associated with...
May 19, 2006 at 12:01 pm
have a look at sp_addextendedproperty !
May 18, 2006 at 1:52 pm
are you reading SCOPE_IDENTITY after EACH insert?
May 18, 2006 at 1:43 pm
Soething that you can easily remove are:
if @@error > 0
begin
select @errornum = @@error ...
@errornum will always be 0 if done that way!!!!
you need to change that to...
May 18, 2006 at 1:37 pm
Chris,
Without data samples it is going to be difficult.
May 18, 2006 at 1:16 pm
N stands for National Language in SQL92 and is used to denote unicode literals
:: Denotes GLOBAL SCOPE in other words system scope ![]()
May 17, 2006 at 4:20 pm
EM makes it look like one move but it really isn't ![]()
And as you see it's a LOT of work
May 17, 2006 at 4:12 pm
If you are planing to join(inner) those results with some local table there may be a chance. Other wise the only way to ensure remote dynamic filtering is Openquery and yes it...
May 17, 2006 at 4:10 pm
what is wrong with this:
SELECT SessionID, Creative, Count(*) Cnt
FROM PageHits
where adate = 'Todays'
GROUP BY SessionID, Creative
May 17, 2006 at 3:57 pm
Vivian,
the alias are bct_day and bct_month
May 17, 2006 at 3:48 pm
Well then use dynamic and Openquery. It is for sure you'll get the filtered records only ![]()
Cheers,
May 17, 2006 at 3:47 pm
If there are not many tables linked to this one you can do it with EM and it won't be a LOT of work ... for you at least .......
May 17, 2006 at 3:42 pm
use Openquery if your literal value is hardcoded. If you can create an sp with a parameter and it works as you needed why do you need dynamic sql?
May 17, 2006 at 3:36 pm
Is there something I am missing? You don't have a GROUP BY on your first statement including the BatchDateTime column??? did that ever worked?
May 17, 2006 at 3:29 pm
Viewing 15 posts - 2,281 through 2,295 (of 5,103 total)