Viewing 15 posts - 1,276 through 1,290 (of 1,825 total)
martin.edward (11/3/2009)
November 3, 2009 at 7:28 am
Hi Martin,
apologies, Im having a hard time exactly where you issue lies.
Please remember this data means nothing to me.
If i execute this...
DECLARE @itemcode VARCHAR (20)
DECLARE @prodnum VARCHAR ...
November 3, 2009 at 4:20 am
You need to do a catch all query
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
November 3, 2009 at 2:05 am
Try this link
http://www.simple-talk.com/sql/t-sql-programming/concatenating-row-values-in-transact-sql/
November 2, 2009 at 4:03 pm
Bite the bullet , its a small one, and go for the table.
The reason i like a table is so that not only can you ask the question , which...
November 2, 2009 at 3:45 pm
I generally find that a calendar table is usually the solution for this (and many other) date related issues
November 2, 2009 at 2:23 pm
Bcp it out then, for example...
SELECT top 1 planxml = convert(text,query_plan)
into xmlout
FROM sys.dm_exec_cached_plans
CROSS APPLY sys.dm_exec_sql_text(plan_handle)
Cross Apply sys.dm_exec_text_query_plan(plan_handle,0,-1)
order by datalength(TEXT) desc
Then
bcp yourdatabase..xmlout out c:\xmlout.sqlplan -c -Syourserver...
November 2, 2009 at 6:17 am
Are any errors reported ?
try using executing the script after using SETUSER to move your session to someone with non dba permissions
November 2, 2009 at 5:38 am
Hi ,
im not seeing your attachments.
But is all your after a chain of CTE's ?
use TESTQUERY
DECLARE @itemcode VARCHAR (20)
DECLARE @prodnum VARCHAR (20)
SET @itemcode = 'P10004';
WITH BOM (Father,Code,Quantity)...
November 2, 2009 at 5:25 am
First try
SELECT UseCounts,RefCounts, Cacheobjtype, Objtype,
TEXT AS SQL ,
planxml = convert(xml,query_plan)
FROM sys.dm_exec_cached_plans
CROSS APPLY sys.dm_exec_sql_text(plan_handle)
Cross Apply sys.dm_exec_text_query_plan(plan_handle,0,-1)
Which may fail with a 'maximum level error.'
If you push...
November 2, 2009 at 4:50 am
Viewing 15 posts - 1,276 through 1,290 (of 1,825 total)