Viewing 15 posts - 12,496 through 12,510 (of 15,379 total)
Seems that the bigger question is what are hoping to do with this information? I have a feeling that you want to see if the data right now contains anything...
April 10, 2012 at 8:34 am
Pretty hard to figure out what you are trying to do but it sounds like it may be a dynamic pivot??
Take a look at these articles from Jeff Moden.
April 10, 2012 at 8:02 am
SandyD (4/10/2012)
April 10, 2012 at 7:47 am
Looks like Lynn was typing with his uber fast response keys again while I was typing. 😀
April 9, 2012 at 3:03 pm
You have TableA in both schemas. When you execute your proc with a specific schema it will first try to find a table with that name under the schema of...
April 9, 2012 at 3:02 pm
njdevils39 (4/9/2012)
Lynn Pettis (4/9/2012)
njdevils39 (4/9/2012)
Sean Lange (4/9/2012)
The code Lutz posted about 20-30 posts ago was more than 99% of what...
April 9, 2012 at 2:30 pm
Wow here we have another last minute addition to the specs...sheesh.
The code Lutz posted about 20-30 posts ago was more than 99% of what you needed.
declare @emp_id int = 7
;WITH...
April 9, 2012 at 2:09 pm
Not really too hard. Just hard code something like this but with the values you expect.
select 1 as RowNum, 3 as EMP_ID, 'Whitehead, Molly' as EMP_NAME, 'Silver Manor' as EMP_ORGANIZATION,...
April 9, 2012 at 1:43 pm
Well here is the challenge...for some reason our "net nanny" does not allow images from ssc. Maybe somebody else that can view the image can help? Otherwise can you post...
April 9, 2012 at 1:32 pm
Can you put together what you want as desired output? Hard code into a table or whatever. That way I have an idea that what I get is matching what...
April 9, 2012 at 12:51 pm
mymail.default (4/9/2012)
Thanks, but doesn't help here 😉Very stumped on this one!!
How can you say that providing the ddl and sample data to the people trying to help you won't help...
April 9, 2012 at 12:34 pm
I don't know that I would call this a problem. In order to have a persisted column that uses a scalar function the function must be deterministic, hence the reason...
April 9, 2012 at 12:16 pm
You're welcome. So did you get it resolved now or did you still need some help?
April 9, 2012 at 11:09 am
Well sort of...but your order by column is not unique so which value of 'A' is first? This makes it rather challenging.
this is close...
IF OBJECT_ID('tempdb..#GETID') IS NOT NULL drop table...
April 9, 2012 at 9:56 am
Well since it is public facing Windows Authentication is not going to work. You could add a SysModUID column or something along those lines to each table, make it not...
April 9, 2012 at 9:43 am
Viewing 15 posts - 12,496 through 12,510 (of 15,379 total)