Viewing 15 posts - 1,501 through 1,515 (of 6,486 total)
Aloha (2/18/2010)
so this is a SQL limitation?
No - the syntax coming out of your dynamic SQL is incorrect. correct syntax is
[somecolumn] = somevalue or [somecolumn] is null
You can't...
February 18, 2010 at 3:09 pm
Lynn Pettis (2/18/2010)
Matt Miller (#4) (2/18/2010)
Lynn Pettis (2/18/2010)
February 18, 2010 at 2:17 pm
Lynn Pettis (2/18/2010)
February 18, 2010 at 1:32 pm
You've still got a problem here:
deptmaster as
(
select
dm.Company, dm.Acct_Unit, dm.Description, dm.Dept_Type
From dbo.Dept_Master_old dm
inner join dbo.Dept_Master_old ON fa.Acct_unit = dm.ACCT_UNIT
)
Notice two problems:
- you're linking a table to itself, but...
February 18, 2010 at 1:29 pm
Anam Verma (2/16/2010)
I am using T-SQL for data transformation. I think i have confused everyone on the forum.
Let me rephrase what i am doing. I have a source...
February 17, 2010 at 2:08 pm
There's a rather distinct difference.
If you were to "translate" your colleague's way to your notation, it would be:
IF @Var1 Is Null OR @var1='SomeValue'
exec someSP
ELSE
Exec SomeOtherSP
That's essentially an entirely different possible...
February 16, 2010 at 9:32 pm
on #3, the thing to look at closely is how Books online defines a LEFT OUTER JOIN. Per BOL:
Specifies that all rows from the left table not meeting the...
February 16, 2010 at 9:23 pm
like2innovate (2/15/2010)
February 16, 2010 at 9:15 pm
steve dassin (2/16/2010)
PaulB-TheOneAndOnly (2/16/2010)
What's your background?Do you have any foundation in relational theory? No? ==> check C. J. Date
What does relational theory have to do with sql?:-) The problem is...
February 16, 2010 at 9:08 pm
You're looking to do some form of Dynamic SQL. In other words - you will have to build the SQL statement in a varchar variable, then use EXEC or...
February 15, 2010 at 10:43 pm
The joys of null!
NULL is not a value, so as such, NULL is neither equal nor not equal to any value. Unfortunately, that also means that it's not LIKE...
February 15, 2010 at 2:57 pm
stan.teitelbaum (2/15/2010)
That's my point. If something can generate both a negative and positive number 2, they may look random but abs reverses that effect.
Also, it seems to us...
February 15, 2010 at 2:52 pm
Your conclusions are actually backwards. The first one returns NULL, the second one returns nothing. Run them separately.
February 15, 2010 at 2:00 pm
Are you sure you're not looking for something like the xml.nodes() method from the SQLXML functionality? This does allow you to pass in a single XML datatype, and split...
February 15, 2010 at 10:39 am
Are the two SQL Servers in the same domain? The errors you've posted kind of imply that they are not, in which case "in the same context" is not...
February 15, 2010 at 9:42 am
Viewing 15 posts - 1,501 through 1,515 (of 6,486 total)