Viewing 15 posts - 11,791 through 11,805 (of 13,464 total)
double post;
continued with suggestions Here:
http://www.sqlservercentral.com/Forums/Topic625801-1291-1.aspx
December 26, 2008 at 5:41 am
can you post the actual query? that would allow us to give an exact answer; for here, i think general suggestions will just lead to more questions and confusion.
December 26, 2008 at 5:38 am
stored procs and functions are a little harder to migrate; most of it is manually editing the procs, sorry.
things to look for:
10G uses the standard JOIN syntax, so that's a...
December 26, 2008 at 5:00 am
IF your table has a a datetime column with a default value of getdate(), you whould simply use a WHERE MYDateColumn BETWEEN date1 AND Date2; If there is not column...
December 25, 2008 at 8:32 am
Here's my first guess, and it's probably right:
when they are coming thru your UI, they are using a different login than when they connect vi SSMS....
if i connect with user...
December 25, 2008 at 8:26 am
i think it's Vista;
compared to XP, where every login was also an admin, didn't Vista remove some rights you might expect by default for security purposes? so your login...
December 25, 2008 at 8:10 am
do you mean something other than using sp_who or sp_who2?
December 25, 2008 at 8:06 am
post the query.
you might be suffering from parameter sniffing, where an execution plan is built on an assumption by the Query optimizer about one or more of the parameters;...
December 24, 2008 at 7:48 pm
i think what you are looking for is using a CASE and sum together to get the value you are after;
here's a the core example:
[font="Courier New"]SUM(CASE WHEN A.Trans_Type_ID IN ('Reversal',...
December 24, 2008 at 12:48 pm
15 seconds is a long time, unless it is fiddling with billions of records.
post the query itself so we can see, maybe a missing join or something is killing performance.
saving...
December 24, 2008 at 5:15 am
on a similar issue, if you want to drop a FK on a column, but don't know the actual FK constraint name, i made the proc below...
you simply call
EXEC DROP_FK_FROM_SPECIFIC_COLUMN...
December 23, 2008 at 12:56 pm
the error tells you exactly which line to go to to fix it....
it's pure syntax:
Msg 102, Level 15, State 1, Procedure SP_ResetCreditLimit, Line 32
Incorrect syntax near 'UPDDATE'.
Update is misspelled. remove...
December 22, 2008 at 2:13 pm
i use something like this, involving an ORDER BY featuring a case statement:
i want nulls at the end, but non-numerics at the beginning;
ORDER BY
CASE WHEN ISNULL(Yourfield) = 1...
December 22, 2008 at 11:47 am
if you add the access database as a linked server, you can treat it as any otehr table...
so you could SELECT...INTO NEWTABLENAME FROM ACCESS:
for example, if you created a linked...
December 22, 2008 at 10:42 am
yes, but he needs the same WHERE clauses in his subsequent inserts/updates to his other three tables....so I thought he needed the comparison for the later SQL's....
same thing, different island,...
December 22, 2008 at 8:25 am
Viewing 15 posts - 11,791 through 11,805 (of 13,464 total)