Viewing 15 posts - 376 through 390 (of 1,409 total)
This is the script I use to genereate the CREATE LOGIN code:
select
sp.name
, sp.type_desc
, 'CREATE LOGIN [' + sp.name + '] '
+ case when sp.type in ('U', 'G')
then 'FROM WINDOWS '
else...
August 1, 2014 at 7:35 am
For the fun of it you wish you could increase the TEMPDB to 93000TB and then watch how the developer handles the resultset in the application. He probably will loop...
August 1, 2014 at 6:22 am
Can't you use an IF statement?
IF (
SELECT COUNT(*)
FROM databasename.sys.tables
WHERE databasename.sys.tables.NAME = 'tableX'
) = 1
BEGIN
SELECT TOP 1 NAME
FROM databasename.tableX
WHERE cc.cnr = c.ccnr
END
ELSE
BEGIN
SELECT UPPER(c.FinalNAME) AS 'Name'
FROM tableY c
END
August 1, 2014 at 5:44 am
SQLRNNR (7/31/2014)
Disable the jobs on the mirror that are trying to perform the backups (or other maintenance). Those should only be enabled in the event of a failover.
You could...
July 31, 2014 at 1:11 pm
It depends on what you want to be faster: the nightly recreate process or the daily activities?
If you want the recreate process be faster I would place the LDF on...
July 31, 2014 at 7:51 am
The mirrored databases are there for disaster purposes. When the principal database/server goes down you could (manually or automatically when configured) failover. At that moment the partner database will come...
July 31, 2014 at 7:38 am
If you have another instance available try the following:
1. Restore vendor backup on default destination instance using NAS storage and run CHECKDB
2. Create a new backup of above database (include...
July 31, 2014 at 7:04 am
Take a good look at the URL in my previous post about the meaning and position of the parameters. Here is some sample code to help you:
declare @exists int
set @exists...
July 29, 2014 at 8:25 am
This will come close to what you want:
declare @two table (id int, value int)
insert into @one select 1, 11 union all select 2, 12 union all select 3, 13 union...
July 29, 2014 at 7:26 am
The RAISERROR parameters need to be provided within brackets and seperated by a comma. See http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(RAISERROR_TSQL);k(SQL11.SWB.TSQLRESULTS.F1);k(SQL11.SWB.TSQLQUERY.F1);k(MISCELLANEOUSFILESPROJECT)&rd=true
July 29, 2014 at 7:08 am
Markus (7/25/2014)
July 26, 2014 at 2:53 pm
A cursor is not the right approach for this scenario. Allthough it is not very clear what your situation is, it sounds like you can just insert the results from...
July 25, 2014 at 7:23 am
tommy 28778 (7/25/2014)
July 25, 2014 at 5:40 am
see this article: http://www.sqlservercentral.com/articles/alerts/89885/ on how to create an alert. From SSMS you can script the actions just before clicking the final [OK] or you can script the object when...
July 25, 2014 at 4:36 am
Markus (7/24/2014)
...If we restore it TO the NAS device the restore works...
In addition to Runaldo's post:
Reading your post it looks like you can succesfully restore the database to the NAS....
July 25, 2014 at 3:40 am
Viewing 15 posts - 376 through 390 (of 1,409 total)