Viewing 15 posts - 616 through 630 (of 1,229 total)
Mark-101232 (1/13/2012)
Can someone jump in here... seems like a simple problem made really complicated and I'm losing the will to live.http://www.sqlservercentral.com/Forums/Topic1234021-1292-1.aspx
Mark - it looks like the OP is still evolving...
January 13, 2012 at 8:49 am
No problem - take "c.data_view = 'BASE' " out of the WHERE clause and put it back into the CASE statements.
January 13, 2012 at 3:23 am
Cool, that's good so far. Thanks for posting the results.
You can get rid of the "extra rows" by using a simple aggregate:
SELECT DISTINCT
org_id = a.organization,
org_name = a.name,
TB...
January 13, 2012 at 2:19 am
yingchai (1/13/2012)
Removing the WHERE clause does not help. It still throws the same error...
Msg 8152, Level 16, State 14, Line 9
String or binary data would be truncated.
The statement has...
January 13, 2012 at 1:27 am
Ooops sorry my mistake - you want to check that [Organization] exists in the Organization_table.
Firstly, can you try this alternative to the existing code? I don't think you need...
January 13, 2012 at 1:18 am
yingchai (1/13/2012)
January 13, 2012 at 1:06 am
Since the query above resolves out children from parents, you first have to resolve the parents of the groups you want to pass in:
;WITH
Groups AS (
SELECT GroupId = g.Id,...
January 13, 2012 at 12:18 am
Evil Kraig F (1/12/2012)
nick-1043370 (1/12/2012)
January 12, 2012 at 11:30 pm
sjimmo (1/12/2012)
Peter
What is the contents of the @phonenum variable?
The variable contains a telephone number. In this case, it could be a cell, home or work phone. The reason for the...
January 12, 2012 at 11:18 am
You're welcome.
Can I recommend to you the link in my sig "please read this"? It's quite funny, and it's helpful for new forum members too.
Cheers
ChrisM
January 12, 2012 at 11:14 am
I think that's the same as this:
Select i.name as Server, fd.path
FROM dbo.Inv_Installed_File_Details fd
JOIN vComputer i ON i.Guid = fd._ResourceGuid
WHERE fd.name = 'ESRDEF.BIN' and Path not like '%BinHub'
AND (
(i.[OS Name]...
January 12, 2012 at 11:06 am
lawson2305 (1/12/2012)
can you be more specific on what you mean? by CASE?I'm researching case now if I find something I will respond regarding this.
Not without a clearer idea of what...
January 12, 2012 at 10:49 am
GSquared (1/12/2012)
Brandie Tarvin (1/12/2012)
GilaMonster (1/12/2012)
Bex (1/12/2012)
January 12, 2012 at 8:50 am
SQL Kiwi (1/12/2012)
You've missed the point I was making, and have chosen to assume that I am either (a) not aware of the performance issues involved; or (b)...
January 12, 2012 at 7:10 am
Jeff Moden (1/12/2012)
SQL Kiwi (1/11/2012)
January 12, 2012 at 6:45 am
Viewing 15 posts - 616 through 630 (of 1,229 total)