Viewing 15 posts - 3,301 through 3,315 (of 7,187 total)
Dave
Here's what I'd do.
(1) Script all indexes and constraints and then drop them
(2) Add the new column to the table. You should only need int - it will allow...
December 9, 2014 at 3:38 am
Does it make any difference if you rewrite the last part of your query like below? You haven't given us anything to work with, so obviously I haven't been...
December 8, 2014 at 9:29 am
Ah yes - didn't notice that! Thanks, Gail.
John
December 5, 2014 at 7:28 am
Just as a matter of interest, why are you switching to single user mode? It's not necessary under normal circumstances to do so before taking a transaction log backup.
John
December 5, 2014 at 7:13 am
If we don't understand your requirement, it's difficult to advise you. Such arbitrary stipulations make this sound a bit like a homework assignment. So, what makes you so...
December 4, 2014 at 4:22 am
Excellent. By the way, you can avoid repeating that concatenation in the GROUP BY clause by using a CTE:
WITH CTE AS (
SELECT
CONCAT(CONVERT(varchar(5),LEFT(IMADD.Postcode, 5)collate DATABASE_DEFAULT),
'/',
CASE
WHEN DATEDIFF([year],IMIND.DOB, GETDATE()) - CASE...
December 3, 2014 at 6:15 am
Since the error occurred in the concat operation, you just need to make sure that all the things you are concatenating have the same collation. One way of doing...
December 3, 2014 at 5:53 am
If you don't have BIDS or SSDT or Visual Studio, but you know the name of the stored procedures(s) you wish to compare, you can script them out and use...
December 3, 2014 at 5:35 am
You can use ranges for pattern-matching, such as [0-9] and [A-Z]. See the LIKE topic in Books Online for more information.
John
December 1, 2014 at 9:37 am
Please will you post the result of this query?
John
SELECT type_desc, data_space_id, name, size, max_size, growth
FROM MyDB.sys.database_files
December 1, 2014 at 4:27 am
I think you just need to add [font="Courier New"]@Startingdate =[/font] before [font="Courier New"]s2.StartDate[/font]. Can you guarantee that the SELECT query will always return a single row only?
John
December 1, 2014 at 4:22 am
Are you looking for separate rows for each backup type for each database? If so, just add backup type to your SELECT list and GROUP clause. If ,...
December 1, 2014 at 3:48 am
Petr
In that case, yes, change CategoryID to varchar something, and then use something like this page[/url] for tips on how to perform your concatenation.
John
November 28, 2014 at 7:54 am
Petr
This isn't possible - CategoryID is int, so you can't change it to 2,7. Even if you could, I'd advise you not to - you're breaking the laws of...
November 28, 2014 at 7:32 am
Viewing 15 posts - 3,301 through 3,315 (of 7,187 total)