Viewing 15 posts - 2,071 through 2,085 (of 7,191 total)
You've posted in the SQL Server 2008 forum, so I assume that's what you're using. If so, search this site (or elsewhere) for Running Totals. If you're on...
December 23, 2016 at 2:40 am
Once you've got the views created, the rest is easy. All you need to do is grant SELECT on the views to all users, and revoke SELECT on the...
December 22, 2016 at 9:53 am
The problem here appears to be that you've got too many (more than one, that is) different pieces of information stored in each value of nine_data. Such denormalisation may...
December 22, 2016 at 9:07 am
It gives info for all active sessions. If you have the patience, you can look at the stored procedure definition and try to find the part that retrieves tempdb...
December 22, 2016 at 7:48 am
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
Viewing 15 posts - 2,071 through 2,085 (of 7,191 total)