Viewing 15 posts - 361 through 375 (of 902 total)
THe Cross apply will only return rows if the function you are calling returns rows that match x.Id. If you want to return all rows from EMP regardless of there...
February 5, 2013 at 1:40 am
The problem you are facing is that the TVF returns 2 columns, thus you cannot put it in the Column List, so you must either use a JOIN or APPLY...
February 5, 2013 at 1:23 am
As the TVF returns 2 columns you will have to do that as a using a CROSS APPLY
Something like this
SELECT x.Id, x.Name, y.Col1, y.Col2
FROM Emp x
CROSS APPLY udf_GetEmpDetail(x.Id) y
February 5, 2013 at 12:11 am
I'm not suprised it took a couple of hours looking at the query you have loops with cursors which is going to drag performance down into the basement and beyond...
February 5, 2013 at 12:04 am
I have the unleashed book and there is something in it for developers of all levels, there are some advanced topics but starts with the basics, such as terminoogy as...
February 4, 2013 at 3:03 am
You can add in the DBSchema file for the missing references databases, this is then use to validated the references used by the synonym.
January 31, 2013 at 8:42 am
I'm afraid you will need to be a little more specific about what you want to know, as its a very broad subject and can cover a multitude of areas...
January 30, 2013 at 11:58 pm
GilaMonster (1/30/2013)
Jason-299789 (1/30/2013)
Sorry I spotted that, and just changed them to work. Theres still a problem with the ISNULL though.this is the isnull
SELECT ID,COLOR
FROM #TBLCOLOR
WHERE ISNULL(COLOR,'')=ISNULL(@COLOR,ISNULL(COLOR,''))
Just bear in mind that...
January 30, 2013 at 2:15 am
Mr. Kapsicum (1/30/2013)
But Can U explain its working to me.,? I m a bit naive to SQL , cant understand its in depth working.!!
Thanks again...
January 30, 2013 at 12:55 am
Sorry I spotted that, and just changed them to work. Theres still a problem with the ISNULL though.
this is the isnull
SELECT ID,COLOR
FROM #TBLCOLOR
WHERE ISNULL(COLOR,'')=ISNULL(@COLOR,ISNULL(COLOR,''))
January 30, 2013 at 12:41 am
Personally I would try an avoide the COALESCE and ISNULL funtion on a where clause
the simplest way
SELECT Id,Color
From TBLCOLOR
WHERE Color=@Color OR @Color is NULL
with IsNULL function
SELECT Id,Color
From TBLCOLOR
WHERE...
January 30, 2013 at 12:27 am
As Gail has said yes, i would caveat that with the in an emergancy on a critical system then you may have no choice but to shrink in order to...
January 30, 2013 at 12:16 am
Not exactly, You can create a project level Data Source, then in the connection Managers you can use the New Connection From Data Source option
this will inherit the settings...
January 29, 2013 at 8:48 am
This URL may explain it better http://sqlinthewild.co.za/index.php/2009/08/17/exists-vs-in/
January 29, 2013 at 7:28 am
erics44 (1/29/2013)
good idea thanksi have also found this
Thats the way I would suggest,
Personally I would invest in setting up the SQLServer stored variables, as this way you can store...
January 29, 2013 at 6:40 am
Viewing 15 posts - 361 through 375 (of 902 total)