Viewing 15 posts - 16 through 30 (of 42 total)
August 27, 2012 at 8:59 pm
please send DDL and elaborate your question.
August 27, 2012 at 8:54 pm
use merge statement to achieve the required .
For more detail
http://technet.microsoft.com/en-us/library/bb510625.aspx
or
August 27, 2012 at 7:43 am
Lynn Pettis (8/23/2012)
sandeep rawat (8/23/2012)
table deftable
(
price int,
typeofpen varchar (20)
)
query
-----
,WITH Temp AS
(MAX(price ) OVER(PARTITION BY typeofpen) AS price
FROM
table
)
SELECT SUM(mx) FROM temp
Curious, this doesn't even...
August 23, 2012 at 9:37 pm
Create table type.
http://msdn.microsoft.com/en-us/library/ms175007.aspx
and use that as output parameter
August 23, 2012 at 10:50 am
table def
table
(
price int,
typeofpen varchar (20)
)
query
-----
,WITH Temp AS
(MAX(price ) OVER(PARTITION BY typeofpen) AS price
FROM
table
)
SELECT SUM(mx) FROM temp
August 23, 2012 at 6:47 am
please refer below link
http://www.simple-talk.com/sql/performance/how-to-identify-slow-running-queries-with-sql-profiler/
August 23, 2012 at 12:48 am
You can use order by in sub query with TOP 100 PERCENT as sub query is treated as inline view
IE:
SELECT * FROM Tbale
WHERE ColumnName IN
(SELECT TOP...
August 23, 2012 at 12:20 am
indexed view works fine with static data (non changing data).
if your dimension changes frequently drop and create index .
August 22, 2012 at 11:10 pm
Plz read
http://www.sqlmag.com/article/c3/store-rtf-data-in-a-sql-server-database
For SQL Server 2005 and up, use VARCHAR(MAX) / NVARCHAR(MAX) if you're dealing with pure text files (like source code or CSV files), or VARBINARY(MAX)...
August 21, 2012 at 6:39 am
Plz send bcp query
August 17, 2012 at 3:54 am
Viewing 15 posts - 16 through 30 (of 42 total)