Viewing 15 posts - 2,071 through 2,085 (of 7,187 total)
Have you looked at sp_whoisactive?
John
December 22, 2016 at 7:36 am
You can't build a table name from variables. You'd need to use dynamic SQL, which I don't think you can use in a function, so you'd need to change...
December 22, 2016 at 7:29 am
One alternative is to use a calendar table, with a row for each date and an IsWorkingDay column that you can use to count three working days forward. If...
December 22, 2016 at 5:39 am
Steve
DDL, code and execution plans would indeed be helpful, please.
When you do a UNION, the result sets all have to be sorted together to eliminate duplicates, so it does seem...
December 21, 2016 at 3:41 am
Do you get the same problem if you choose a matrix style other than Forest?
John
December 20, 2016 at 9:25 am
What command are you using to do the restore, or are you using the GUI? If you're using the GUI, please use the Script button on the Restore Database...
December 20, 2016 at 3:02 am
Damian
Just right-click on the job in SSMS, choose Script Job As and use one of the options to generate the script.
John
December 19, 2016 at 4:01 am
From what we know, we can't assume that Product is a table and not a view. What does this query return?SELECT
SCHEMA_NAME(schema_id) + '.' + name AS ObjectName
,'View' AS ObjectType
FROM...
December 19, 2016 at 3:28 am
Anandkumar-SQL_Developer (12/15/2016)
Thank you very much for your valuable time . your code is working well. it showing clustered & nonclustered index only...
December 15, 2016 at 7:04 am
So you want the CREATE INDEX statement for the given index? You could right-click on the index in SSMS and choose Script Index As. If you want it...
December 15, 2016 at 4:47 am
You could run the job on a server that does have SQL Server Agent, I suppose. (Your job, that is, not Ola's.)
John
December 14, 2016 at 9:13 am
I recommend that you use Ola Hallengren's backup solution. No sense in wasting time writing it yourself when he's already done so for you!
John
December 14, 2016 at 8:57 am
This will give you an idea of how to do it. I'm sure you'll be able to make it a lot simpler than I have!CREATE TABLE #Names (Col1 varchar(4000),...
December 14, 2016 at 7:34 am
Vikram
If Col1 is always in the format shown, then you can indeed use SUBSTRING, something like this:
SUBSTRING(Col1,Col2*2-1,1)
John
December 14, 2016 at 5:23 am
Viewing 15 posts - 2,071 through 2,085 (of 7,187 total)