Viewing 15 posts - 136 through 150 (of 1,216 total)
Hi Jeff,
I'm glad you posted this, because I was trying to explain it several times, but it seems that Rich didn't understand (or understood differently than I meant it).
Let's hope...
October 6, 2008 at 12:50 am
Alex Barefoot (10/2/2008)
I'm wanting to create a report that looks like this:
State State_County State_County_City
TX TXSAN ...
October 3, 2008 at 1:23 am
That's because you need to qualify view with schema (owner in SQLS 2000) every time you mention its name... or use an alias.
select 'EXEC sp_dropextendedproperty
@name = ''MS_Description''
,@level0type =...
October 3, 2008 at 1:05 am
Rich96 (10/2/2008)
October 2, 2008 at 8:57 am
If you put USE into dynamic SQL, you switch the database just for the duration of EXEC of dynamic SQL, because it runs in a different scope. Next execute (with...
October 2, 2008 at 5:07 am
Hi,
there are 2 main problems in what you were trying. First, COUNT(*) < 2 means that there are no duplicates (given the used GROUP BY)... not that it is the...
October 2, 2008 at 1:59 am
I agree with Daryl, it is not possible to return different table for each row... which the poster was trying to do. But the entire query is written in such...
October 1, 2008 at 8:59 am
Could you please describe what are you trying to do? I suspect that this can be done a lot easier without the table function - it seems to me it...
October 1, 2008 at 3:53 am
Oh 🙁 I'm sorry. Thanks Gail for catching that, I found the ELSEIF already in your first post and edited my post, but forgot to delete THEN. Well, that happens...
September 30, 2008 at 7:19 am
What you are trying is not proper SQL syntax - you have to use SET, and @ with the variables... like this:
DECLARE @newvar varchar(8)
IF @APRIORITY = 1 THEN
SET @newvar...
September 30, 2008 at 7:07 am
I've noticed that column MRN is defined as varchar, while parameter @MRN is defined as nvarchar. In the procedure execution plan, you can see CONVERT IMPLICIT in the first step....
September 30, 2008 at 1:02 am
Sprocking,
the use of DATEADD and DATEDIFF functions looks a bit strange at first, but is more efficient - and also more flexible. Once you learn how it works, you may...
September 29, 2008 at 1:22 am
What do you mean by "invisible in the backend"? Maybe you are looking for some encryption, so that if someone runs a query, that person will not see actual data...
September 25, 2008 at 8:23 am
I'm glad it helped :-).
Another possibility - in case that you need to run start and end of the code, skipping the middle part, you can use GOTO label:
select...
September 25, 2008 at 6:52 am
My opinion is that size matters :-). I would recommend doing large scale data modifications in batches. But not Row-by-row! That is the opposite extreme, what you should try to...
September 25, 2008 at 5:43 am
Viewing 15 posts - 136 through 150 (of 1,216 total)