Viewing 15 posts - 1,696 through 1,710 (of 1,957 total)
Do you have a consultant id that you an use instead as the data value in your drop down?
December 10, 2010 at 10:21 am
The convert is working, it is just the display using "print" that is truncating it.
IF you print LEN(CONVERT(VARCHAR(MAX),xmltypevariable)) you will see the conversion has worked.
What are you hoping to do...
December 10, 2010 at 2:44 am
And just to show how it can be done with the first query:
EXECUTE sp_msforeachdb 'use ?;select DB_NAME(),s.*, p.*
from sys.sql_modules s
inner join sys.procedures p
on s.object_id = p.object_id'
December 9, 2010 at 12:52 pm
ramadesai108 (12/9/2010)
I found it myself and it is:EXECUTE sp_msforeachdb 'select specific_catalog, specific_name, routine_definition from information_schema.routines'
It does work, you just missed the "?"
EXECUTE sp_msforeachdb 'select specific_catalog, specific_name, routine_definition from ?.information_schema.routines'
December 9, 2010 at 12:51 pm
you could build a table from this list : http://msdn.microsoft.com/en-us/library/0h88fahh(VS.85).aspx
December 9, 2010 at 1:21 am
Try having a read of Jacob's article here : http://beyondrelational.com/blogs/jacob/archive/2010/05/12/for-xml-workshop-for-xml-explicit-and-cdata-xml-and-xmltext-attributes.aspx
It explains how to do this with FOR XML EXPLICIT
December 7, 2010 at 4:30 pm
ScottPletcher (12/7/2010)
I don't know... you have 4 instances of CHARINDEX vs just 2
Quite true. A valid point.
3 of them are exactly the same function. Unfortunately,...
December 7, 2010 at 3:35 pm
I will take a crack at it...
First get all the pilot names
Now get all the plane names
Now check for each combination of pilot name and plane name is there a...
December 6, 2010 at 5:57 pm
Unless you can guarantee the data will be in that format, I would personally be looking for a valid web site address.
This is not a complete solution as I have...
December 6, 2010 at 5:16 pm
Another "ugly" method...just for the sake of it...
select *,
CASE WHEN 32*Work0110+16*Work0210+8*Work0310+4*Work0410+2*Work0510+Work0610 NOT IN (0,1,2,3,4,6,7,8,12,14,15,24,28,30,31,32,48,56,60,62,63) THEN 'Y' ELSE 'N' END
from #Employee
December 6, 2010 at 4:29 pm
No problem. It is ugly code, so by rights should have something wrong!
December 6, 2010 at 4:28 pm
HI Craig, can you explain why? It produces the correct answer for me...
December 6, 2010 at 4:18 pm
Probably not the most elegant answer you will receive....
select *,
CASE WHEN
...
December 6, 2010 at 4:09 pm
Brandie, I found your response to be curious - I was merely pointing out that you had not answered the question as asked - and I did not have time...
November 30, 2010 at 11:15 am
GSquared (11/30/2010)
... the part that says:
1 duplicate record occurs ONLY in p table and none of the duplicate records have a reference to it in pic table:
- all records, except...
November 30, 2010 at 7:17 am
Viewing 15 posts - 1,696 through 1,710 (of 1,957 total)