Viewing 15 posts - 1 through 15 (of 49 total)
April 11, 2017 at 11:35 am
Nice query but not exactly what I was hoping to find. I need to add the workstation name to our audit table.
Funny, this works perfect in SQL trace but...
September 20, 2016 at 5:49 am
Could you provide an example? When I run the following command no text shows for the SQL_TEXT
SELECT
spid
,sp.STATUS
...
March 7, 2016 at 5:55 am
SSCrazy that is absolutley perfect!!! Exactly what I needed. Thank you so much.
September 27, 2015 at 11:33 am
Thanks for the replies! I thought it wasn't possible but I wanted to ask just in case.
I will probably use the wrapper techinque.
We have a table with secure and unsecure...
September 25, 2015 at 10:52 am
What happens when you uncheck the 'use default' button?
June 10, 2015 at 8:51 am
Eirikur Eiriksson (2/14/2015)
SELECT
OBJECT_NAME(SD.object_id) AS OBJ_NAME
,OBJECT_NAME(SD.referenced_major_id) AS DEPENDENT_NAME
...
February 15, 2015 at 6:38 pm
I got past the last post but I'm still struggling
DECLARE @Variable1 VARCHAR(MAX), @Variable2 VARCHAR(MAX)
DECLARE CursorName CURSOR FAST_FORWARD
FOR
SELECT TABLE_NAME
FROM dbo.MY_HISTORY_TBL
OPEN CursorName
FETCH NEXT
FROM CursorName
INTO @Variable1
WHILE @@FETCH_STATUS = 0
BEGIN...
February 14, 2015 at 10:17 pm
So why can't I pass a varible to this script?
Declare @TableName VARCHAR(30)
SET @TableName = 'MY_HISTORY_TBL'
Select
(Name)
From sys.procedures
Where OBJECT_DEFINITION(object_id) Like @TableName
Order by (Name)
Go
February 14, 2015 at 9:53 pm
I found the problem. Auto-refresh was enabled for the variable in the RDL. Thanks for the help!
February 14, 2015 at 7:08 pm
Thanks every one especially SSCrazy, that was perfect. Now I can reverse engineer it.
December 17, 2014 at 7:49 pm
I'm still getting an error. I added the truncate command just to give an idea of what I was trying to do.
"Conversion failed when converting the nvarchar value 'Select COUNT(*)...
December 16, 2014 at 3:45 pm
I apologize that my statement confused the result I was looking for. How can I find the tables
below that failed and were never successful for the same day? Some tables...
November 22, 2014 at 4:07 am
Viewing 15 posts - 1 through 15 (of 49 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy