Viewing 15 posts - 6,841 through 6,855 (of 7,168 total)
SQL_Padawan_Learner (3/22/2011)
parthi-1705 (3/22/2011)
Have a look on this
declare @flg tinyint
Select @flg= case when cmptlevel=100 then 1 when cmptlevel=90 then 2 when cmptlevel=80 then 3 end
from master.dbo.sysdatabases
Select @flg
IF...
March 22, 2011 at 1:31 pm
mtassin (3/22/2011)
opc.three (3/22/2011)
What you want is a dynamic cross-tab. Here is a comprehensive article about how to do that...and why cross-tabs almost always outperform the built-in PIVOT operator:http://www.sqlservercentral.com/articles/Crosstab/65048/%5B/url%5D
Jeff writes great...
March 22, 2011 at 1:05 pm
I cannot think of how you could know programmatically in T-SQL that the first one occurred...it's a popular topic right now though. Here is a related thread:
http://www.sqlservercentral.com/Forums/Topic1082102-338-1.aspx
As a side note...
March 22, 2011 at 12:26 pm
mtassin (3/22/2011)
He definately wants to use Pivot here...
Sorry, I misunderstood the original intent behind the question.
sku370870 (3/22/2011)
... are [Project 1] and [Project 2] hard-coded?
In the real data...
March 22, 2011 at 11:54 am
crazy4sql (3/22/2011)
But if your database almost full and then you increasing the space then you will see more...
March 22, 2011 at 11:04 am
It must have to do with how SQL Server handles data-type conversions internally. The rule surrounding converting character data to the NUMERIC/DECIMAL data type requires that there be either a...
March 22, 2011 at 10:50 am
Kindly provide the DDL and DML used to construct the environment in your example.
March 22, 2011 at 9:58 am
You can vote for an enhancement to add support for that:
March 22, 2011 at 9:51 am
PIVOTs and cross-tabs change rows to columns. What you want is UNPIVOT, i.e. to change columns to rows.
March 22, 2011 at 9:10 am
Craig Farrell (3/21/2011)
I usually tag my network admins when this happens and explain to them that I'm doublehopping, they take it from there.
You have it good...
I wished many times that...
March 21, 2011 at 5:16 pm
It's also known as the "double-hop issue" (winces, grits teeth)
March 21, 2011 at 3:53 pm
The Agent tables are not my favorite thing in the world to dig through 😀 The way dates are stored, the lack of an easy way to find a job's...
March 21, 2011 at 3:49 pm
Glad to help...now please use it to post some DML so we can help you with your solution 😉
March 21, 2011 at 2:23 pm
Actually used in production:
- proc: access web services
- proc: accessing third-party address standardization software
- scalar function: use assemblies installed in local GAC containing proprietary encryption methods
- data type: IP address
Toying...
March 21, 2011 at 2:17 pm
Please proceed knowing that this is not an SSMS / Query Analyzer issue.
Hopefully you will find the issue by checking these four things:
1. In DEV: Is there a table name...
March 21, 2011 at 2:06 pm
Viewing 15 posts - 6,841 through 6,855 (of 7,168 total)