Quantcast
Channel: SQL Server Database Engine forum
Viewing all 12644 articles
Browse latest View live

SQL 2005 Server Agent not starting job

$
0
0

Apologies if this question has been asked elsewhere on these forums, I've had a search around and have not been able to find something with the same issues.

Last year I took over management of a SQL server (SQL2005 on a Server 2003 R2 O/S), as part of the expansion of operation the DB server is being used for an agent job was created to take customer information from our web site and, where the customer has selected to be contacted, pass those details to our dialler system, so we can rech our customer ideally within 20 minutes of them interacting with the website.

This job runs daily Monday to Friday from 8am to 4:30pm at 15 minute intervals and once a day at 5pm on Saturday and Sunday(same job with muliple schedules), 3 week ago the Saturday job failed to start, then following week the Sunday job failed to start then last weekend the job failed to start on both Saturday and Sunday. There have been no updates or changes made to the job or the server and the job has run for 6 months with this multiple scehduling without any issues at all.

I have checked through the server event/system/application logs and the SQL logs (that I know of) and can find no evidence of errors that would have an effect on the SQL or SQL Agent operation, I can also find no evidence that the server made an attempt to start the job at all, the application log will normally show an event 12288 and 12289 with the source of SQLISPackage for the start and stop of the job. There is no event start notice shown in the application event log on weekend days the job has failed to start. I've check the Agent service status, as well as all the other SQL services and they are all running as they should be.

Does anyone have any ideas where I should be looking next for the cause of this issue or has anyone ever experienced this before and found a cause?

Many thanks

Stuart.


MAXDOP and SQL Server Standard

$
0
0
I have gone through tons of articles and it seems pretty condiluted, Does standard edition limit you to MAXDOP 4? The server i am working on has 12 physical cores 12 hyper-threaded with 2 numa nodes so in reality it should be set to 6. But is setting it to 6 getting overwritten by the edition of standard?

Indenty column values is not correct order, can we reorganize it?

$
0
0

Hi All,

Identity values jumping when inserting new records. Looks like records were created and deleted before. How can I correct it, I know it doesn't impact the application but interested to know if we can correct it.

Thanks


Swapna

Why does session not release space in TEMPDB after dropping temporary tables?

$
0
0

I'm using sql 2008 r2.

I've noticed when a session creates and populates a temporary table and then drops it, the space in tempdb does NOT get released. I've run into a situation where the same session creates and drops many fairly large temp tables, and eventually I run out of space in the tempdb.

Is there a way to make it release the space in the tempdb without disconnecting the session?

This is fairly easy to demonstrate. In the below code, even though I keep dropping the table, the tempdb space used by the session keeps increasing as reported by sys.dm_db_session_space_usage.

-- create and populate temp table, then drop it
CREATE TABLE #test (x CHAR(8000)) GO INSERT INTO #test VALUES ('x') GO 100 DROP TABLE #test GO

-- How much space are we using now?

SELECT user_objects_alloc_page_count FROM sys.dm_db_session_space_usage WHERE session_id = @@spid GO
-- Create and populate a temp table again
CREATE TABLE #test (x CHAR(8000)) GO INSERT INTO #test VALUES ('x') GO 100 DROP TABLE #test GO
-- Now we are using even MORE space SELECT user_objects_alloc_page_count FROM sys.dm_db_session_space_usage WHERE session_id = @@spid GO
DROP TABLE #test
GO




Chuck

Can't remote connect to sql server

$
0
0

I have SQL Sever 2008 R2 on the cluster environment

cluster server name is A
Cluster Node 1 name is A1 (current active one)
Cluster Node2 name is A2

SQL Server name is Ab, default instance, tcp/ip port 1433

I am not able to remote connect to the server. I tried A, A1, Ab and their corresponding IP address, not of them works. Should I change to the SQL Server name to match with the cluster server name? Thanks in advance!

A job I have seen was running since 11 hours but in history its duration is 48 minutes only

$
0
0

SQL Server agent 2008 :

A job I have seen was running since 11 hours but in history its duration is 48 minutes only.is It possible.


Thanks

Excel Connection

$
0
0

Hi,

When I create an SQL connection from my workstation within an Excel file, other users are unable to refresh the data.

Error Message:

            “[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified”

The connection string being:

DRIVER=SQL Server Native Client 10.0;

SERVER=SQLSERVER;

UID=*ME*;

Trusted_Connection=Yes;

APP=Microsoft Office 2010;

WSID=0347;

But they are able to refresh the data if I create the connection from their own workstation.

The connection string being:

DRIVER=SQL Server Native Client 10.0;

SERVER=SQLSERVER;

UID=*OTHERUSER*;

Trusted_Connection=Yes;

APP=Microsoft Office 2010;

WSID=0348;

I can refresh any connection from my workstation regardless of who created it.


I need all users to be able to refresh files that I have created from my workstation.

Presumably the issue is the SQL Server credentials, but if someone is able to confirm this and offer a solution I’d be most grateful.


Can't add AlwaysOn replica

$
0
0

Hello!

I'm trying to add an AlwaysOn replica - db server Guest2 (Windows Server 2012R2 + SQL 2014 Ent.) - to the AlwaysOn group  with a contained DB and getting the following error:


I can't understand should I explicitly set any permissions on an endpoint for this procedure to succeed given that both SQL servers (Guest1 and Guest2) are members of the same domain?

Thank you in advance,

Michael



Unicode: issue with representation of Devanagari character (U+0940 and U+0947)

$
0
0

Hello,

I observe issue with representation of Devanagari  characters (U+0940 and U+0947) :

U+0940e0 a5 80DEVANAGARI VOWEL SIGN II
U+0947e0 a5 87DEVANAGARI VOWEL SIGN E

In SQL server database I think DEVANAGARI VOWEL SIGN E is represented as less than to DEVANAGARI VOWEL SIGN II. 

I think it is a bug in SQL Server database, and should be represented in other way round i.e, U+0947 should be represented as >  from U+0940.

The steps to reproduce with T-SQL :

   create table test (c1 int, c2 nvarchar(50))

insert values:

   insert into test(c1, c2) values (1,N'पीपे का सबसे चौड़ा भाग') 
   insert into test(c1, c2) values (2,N'पी') 
   insert into test(c1, c2) values (3,N'पे') 

Fetch records:

sql1: select * from test where c2 > N'पे' order by c2;

2पी
1पीपे का सबसे चौड़ा भाग

// it should not return any row as no row is having value > 'पे'

sql2: select * from test where c2 > N'पी' order by c2;

1पीपे का सबसे चौड़ा भाग

// it should return one more row as 'पे' should be greater than 'पी'.

Thanks,

Mukesh


Can't add AlwaysOn Listener

$
0
0

Hello!

When I'm trying to add an Availabilty group listener I get this error:


The cluster is up and running:


Prestaging Listener name in DNS as described here http://technet.microsoft.com/en-us/library/dn466519.aspx does not help - the error still the same. Our DNS servers do not experience any issues... What could be the cause of this???

Thank you in advance,

Michael

recovery is done in Analysis,Redo, undo phases serially

$
0
0

Hi Team,

As per article

http://blogs.msdn.com/b/psssql/archive/2010/12/29/tracking-database-recovery-progress-using-information-from-dmv.aspx

Since the redo and undo portions can actually happen on different tasks in fast recovery scenarios in Enterprise Edition,you could actually see 2 different session_id’s for the same database recovery process.

But recovery is done in Analysis,Redo, undo phases serially.

Regards


Manish

SmallDateTime Conversion Issue, Linked Servers & Remote Update Vs. Remote Query

$
0
0

Afternoon all, unsure if this exactly the right spot for this but here goes anyway:
I noticed an issue where my smalldatetime fields were being rounded down instead of up when converting from datetime.

The circumstance which this happens under is when running an update across a linked server while updating other columns that require some form of conversion or contain a variable. Straight away I will say this is in SQL 2005 and I don't know if this bug persists today, so what I am really asking is, does this still happen in later versions?

Table Definition:
CREATE TABLE [aDatabase].[dbo].aTempTable(
 [record_id] INT NOT NULL,
 [record_datetime] SMALLDATETIME NULL,
 [record_text] VARCHAR(200) NULL
)
INSERT INTO aTempTable ([record_id],[record_datetime]) VALUES (1, getdate())

The following sql results in the correct smalldatetime value appearing in the table:
UPDATE [LINKED_SERVER].[aDatabase].[dbo].aTempTable
 SET [record_text] = 'Literal Text'
 , [record_datetime] = '2014-07-24 17:15:38.330'
 WHERE [record_id] = 1
The correct value is '2014-07-25 17:16:00' as 38 seconds should round up to the next minute.

When running the following sql, the incorrectly rounded down version of the date is stored:
DECLARE @SOMETEXT VARCHAR(20)
SET @SOMETEXT = 'Dynamic Text'
UPDATE [LINKED_SERVER].[aDatabase].[dbo].aTempTable
 SET [record_text] = @SOMETEXT
 , [record_datetime] = '2014-07-24 17:15:38.330'
 WHERE [record_id] = 1
This query results in '2014-07-25 17:15:00' being stored, incorrectly.

The difference I see between the two queries is that the first causes a Remote Query to be executed by SQL and the second a Remote Update

Query 1:
  |--Remote Query(SOURCE:(LINKED_SERVER), QUERY:(UPDATE "aDatabase"."dbo"."aTempTable" set "record_text" = 'Literal Text',"record_datetime" = convert(datetime, '2014-07-24T17:15:38.330')  WHERE "record_id"=(1)))

Query 2:
  |--Remote Update(SOURCE:(####), OBJECT:("aDatabase"."dbo"."aTempTable"), SET:([LINKED_SERVER].[aDatabase].[dbo].[aTempTable].[record_text] = [Expr1003],[LINKED_SERVER].[aDatabase].[dbo].[aTempTable].[record_datetime] = [Expr1004]))
       |--Compute Scalar(DEFINE:([Expr1003]=CONVERT_IMPLICIT(varchar(200),[@SOMETEXT],0), [Expr1004]='2014-07-24 17:15:38.330'))
            |--Table Spool
                 |--Filter(WHERE:([LINKED_SERVER].[aDatabase].[dbo].[aTempTable].[record_id]=(1)))
                      |--Remote Scan(SOURCE:(####), OBJECT:("aDatabase"."dbo"."aTempTable"))

Anyone care to weigh in on this? As it is SQL 2005 I am just going to perform a workaround in my query that will drop the seconds before saving the field (as in this instance I actually wanted to round down - I just didn't expect it to! And don't wish to rely on a bug/undocumented behaviour)
A big if, but IF I get the chance I will check this on a more recent version of SQL server.

Regards, Dave

How to tell when all records are committed and Record commit time instead just getdate()

$
0
0

We have several processes  inserting records for one Batch.

Recently we’ve had some long blocking so some of the inserts for a batch were blocked while the select statement to get a count of this batch ran ( we use read_committed_snapshot) and returned an incorrect count because it was missing the blocked inserts.

Additionally the time_updated is using getdate() and that stores the time the record is parsed not the time it is finally written to the database so it is not correct.

Is there any way to store the time the record is actually saved?

Is there any method to ensure all records for a batch are committed before we run the select of the count? This is a very busy process and we need correct counts.  We’ve thought of using some sort of separate queuing when inserting and then making sure the number of records in the queue match the database. Is there a better way?


KD

Possible solution to avoid deadlock when two inserts happen on same table from two different machines.

$
0
0

Possible solution to avoid deadlock when two inserts happen on same table from two different machines.

Below are the details from deadlock trace.

Deadlock encountered .... Printing deadlock information
Wait-for graph
NULL
Node:1

KEY: 8:72057594811318272 (ffffffffffff) CleanCnt:3 Mode:RangeS-S Flags: 0x1
 Grant List 2:
   Owner:0x00000013F494A980 Mode: RangeS-S Flg:0x40 Ref:0 Life:02000000 SPID:376 ECID:0 XactLockInfo: 0x000000055014F400
   SPID: 376 ECID: 0 Statement Type: INSERT Line #: 70
   Input Buf: RPC Event: Proc [Database Id = 8 Object Id = 89923542]
Requested by: 
  ResType:LockOwner Stype:'OR'Xdes:0x0000002AA53383B0 Mode: RangeI-N SPID:238 BatchID:0 ECID:0 TaskProxy:(0x00000027669B4538) Value:0x10d8d500 Cost:(0/38828)
NULL
Node:2

KEY: 8:72057594811318272 (ffffffffffff) CleanCnt:3 Mode:RangeS-S Flags: 0x1
 Grant List 2:
   Owner:0x0000000B3486A780 Mode: RangeS-S Flg:0x40 Ref:0 Life:02000000 SPID:238 ECID:0 XactLockInfo: 0x0000002AA53383F0
   SPID: 238 ECID: 0 Statement Type: INSERT Line #: 70
   Input Buf: RPC Event: Proc [Database Id = 8 Object Id = 89923542]
Requested by: 
  ResType:LockOwner Stype:'OR'Xdes:0x000000055014F3C0 Mode: RangeI-N SPID:376 BatchID:0 ECID:0 TaskProxy:(0x000000080426E538) Value:0x30614e80 Cost:(0/41748)
NULL
Victim Resource Owner:
 ResType:LockOwner Stype:'OR'Xdes:0x0000002AA53383B0 Mode: RangeI-N SPID:238 BatchID:0 ECID:0 TaskProxy:(0x00000027669B4538) Value:0x10d8d500 Cost:(0/38828)
deadlock-list
 deadlock victim=process5daddc8
  process-list
   process id=process5daddc8 taskpriority=0 logused=38828 waitresource=KEY: 8:72057594811318272 (ffffffffffff) waittime=2444 ownerId=2994026815 transactionname=user_transaction lasttranstarted=2014-07-25T12:46:57.347 XDES=0x2aa53383b0 lockMode=RangeI-N schedulerid=43 kpid=14156 status=suspended spid=238 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2014-07-25T12:46:57.463 lastbatchcompleted=2014-07-25T12:46:57.463 clientapp=pa hostname=pa02 hostpid=1596 loginname=myuser isolationlevel=serializable (4) xactid=2994026815 currentdb=8 lockTimeout=4294967295 clientoption1=671088672 clientoption2=128056
    executionStack
     frame procname=mydb.dbo.SaveBill line=70 stmtstart=6148 stmtend=8060 sqlhandle=0x03000800d61f5c056bd3860170a300000100000000000000
INSERT INTO [dbo].[Prod1] .....
inputbuf
Proc [Database Id = 8 Object Id = 89923542]    
   process id=process5d84988 taskpriority=0 logused=41748 waitresource=KEY: 8:72057594811318272 (ffffffffffff) waittime=2444 ownerId=2994024748 transactionname=user_transaction lasttranstarted=2014-07-25T12:46:57.320 XDES=0x55014f3c0 lockMode=RangeI-N schedulerid=39 kpid=14292 status=suspended spid=376 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2014-07-25T12:46:57.440 lastbatchcompleted=2014-07-25T12:46:57.440 clientapp=pa hostname=pa01 hostpid=1548 loginname=myuser isolationlevel=serializable (4) xactid=2994024748 currentdb=8 lockTimeout=4294967295 clientoption1=671088672 clientoption2=128056
    executionStack
     frame procname=pa.dbo.SaveBill line=70 stmtstart=6148 stmtend=8060 sqlhandle=0x03000800d61f5c056bd3860170a300000100000000000000
INSERT INTO [dbo].[Prod1]....
    inputbuf
Proc [Database Id = 8 Object Id = 89923542]    
  resource-list
   keylock hobtid=72057594811318272 dbid=8 objectname=pa.dbo.prod1 indexname=PK_a id=lock1608ee1380 mode=RangeS-S associatedObjectId=72057594811318272
    owner-list
     owner id=process5d84988 mode=RangeS-S
    waiter-list
     waiter id=process5daddc8 mode=RangeI-N requestType=convert
   keylock hobtid=72057594811318272 dbid=8 objectname=pa.dbo.prod1 indexname=PK_a id=lock1608ee1380 mode=RangeS-S associatedObjectId=72057594811318272
    owner-list
     owner id=process5daddc8 mode=RangeS-S
    waiter-list
     waiter id=process5d84988 mode=RangeI-N requestType=convert

Multiple servers backing up on tape

$
0
0

Hi all,

We have tens of SQL Server instances and currently they perform regular log backup every 15 minutes.

So far we have been using disk based backups, for example on local disks of servers or shared storage on SAN.

Recently we decided to buy a tape.

My question is that what happens if for example 10 jobs on different servers try to write backup to tape?

Because on disk based backup, the disks of destination will become slow but never reject the backupset. Does the same thing happen for tape or the tape will reject the write operation if requests are too high?

Thanks in advance,

Leila


How to know information about drivers

$
0
0
Hi Everyone,

As a sql server dba how would one can identify or tell drives are not been updated (BIOS, firmware, network, storage ...) on your server.

Is there any command using which I can confirm drivers are not up to date?
Also, where can I find all the drivers information.

Any suggestions would be a great help.

Thanks.

relationships between tables, and diagrams

$
0
0
my question is ,, 
how to build a diagram, I don't understand that many to many , or one to many and about primary key and foreign key and etc..

here is my code. is about a hospital where i have ,

NURSES, WARD, PATIENTS, DOCTORS.


CREATE TABLE Nurses(
`idNurses` INT NOT NULL AUTO_INCREMENT,
`Fname` VARCHAR(45) NULL,
`Lname` VARCHAR(45) NULL,
`Speciality` VARCHAR(45) NULL,
PRIMARY KEY (`idNurses`))
ENGINE = InnoDB;


CREATE TABLE Doctors (
`idDoctors` INT NOT NULL AUTO_INCREMENT,
`Fname` VARCHAR(45) NULL,
`Lname` VARCHAR(45) NULL,
`Speciality` VARCHAR(45) NULL,
PRIMARY KEY (`idDoctors`))
ENGINE = InnoDB;



CREATE TABLE Ward(
`idWard` INT NOT NULL AUTO_INCREMENT,
`Name` VARCHAR(45) NULL,
`Location` VARCHAR(45) NULL,
`Nurses_idNurses` INT NOT NULL,
`Doctors_idDoctors` INT NOT NULL,
PRIMARY KEY (`idWard`, `Nurses_idNurses`, `Doctors_idDoctors`),
INDEX `fk_Ward_Nurses_idx` (`Nurses_idNurses` ASC),
INDEX `fk_Ward_Doctors1_idx` (`Doctors_idDoctors` ASC),
CONSTRAINT `fk_Ward_Nurses`
FOREIGN KEY (`Nurses_idNurses`)
REFERENCES `mydb`.`Nurses` (`idNurses`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Ward_Doctors1`
FOREIGN KEY (`Doctors_idDoctors`)
REFERENCES `mydb`.`Doctors` (`idDoctors`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;

CREATE TABLE Patient (
`idPatient` INT NOT NULL AUTO_INCREMENT,
`Fname` VARCHAR(45) NULL,
`Lname` VARCHAR(45) NULL,
`DOB` DATE NULL,
`Phone_number` INT NULL,
`Ward_idWard` INT NOT NULL,
`Ward_Nurses_idNurses` INT NOT NULL,
`Ward_Doctors_idDoctors` INT NOT NULL,
PRIMARY KEY (`idPatient`, `Ward_idWard`, `Ward_Nurses_idNurses`, `Ward_Doctors_idDoctors`),
INDEX `fk_Patient_Ward1_idx` (`Ward_idWard` ASC, `Ward_Nurses_idNurses` ASC, `Ward_Doctors_idDoctors` ASC),
CONSTRAINT `fk_Patient_Ward1`
FOREIGN KEY (`Ward_idWard` , `Ward_Nurses_idNurses` , `Ward_Doctors_idDoctors`)
REFERENCES `mydb`.`Ward` (`idWard` , `Nurses_idNurses` , `Doctors_idDoctors`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;

My HDD has 6 partitions when I received it

$
0
0

This website is a joke. Couldn't find my answer if my life depended on it. I was given this laptop as is. Here are the pecs:

Computer
Computer TypeACPI x64-based PC  (Mobile)
Operating SystemMicrosoft Windows 8.1 Professional
OS Service Pack-
Internet Explorer11.0.9600.17207
DirectXDirectX 11.0
Computer NameMAYNARD (Derek's PC)
User NameOwner
Logon DomainMAYNARD
Date / Time2014-07-26 / 16:34

Motherboard
CPU TypeMobile DualCore Intel Pentium B980, 2400 MHz (24 x 100)
Motherboard NameAsus X401A1 Series Notebook
Motherboard ChipsetIntel Panther Point HM70, Intel Sandy Bridge
System Memory3979 MB  (DDR3-1600 DDR3 SDRAM)
DIMM1: Ramaxel RMT3160ED58E9W16004 GB DDR3-1600 DDR3 SDRAM  (11-11-11-28 @ 800 MHz)  (10-10-10-27 @ 761 MHz)  (9-9-9-24 @ 685 MHz)  (8-8-8-22 @ 609 MHz)  (7-7-7-19 @ 533 MHz)  (6-6-6-16 @ 457 MHz)  (5-5-5-14 @ 380 MHz)
BIOS TypeUnknown (08/20/2012)

Display
Video AdapterIntel(R) HD Graphics  (1841062 KB)
Video AdapterIntel(R) HD Graphics  (1841062 KB)
3D AcceleratorIntel HD Graphics 2000
MonitorSamsung LTN140AT20P01  [14" LCD]

Multimedia
Audio AdapterIntel Panther Point HDMI @ Intel Panther Point PCH - High Definition Audio Controller [C-1]
Audio AdapterRealtek ALC270 @ Intel Panther Point PCH - High Definition Audio Controller [C-1]

Storage
IDE ControllerRealtek PCIE CardReader
IDE ControllerStandard SATA AHCI Controller
Storage ControllerMicrosoft Storage Spaces Controller
Disk DriveHitachi HTS543232A7A384  (320 GB, 5400 RPM, SATA-II)
Disk DriveSeagate FreeAgent GoFlex USB Device  (1397 GB, USB)
SMART Hard Disks StatusOK

Partitions
C: (NTFS)287.8 GB (89.5 GB free)
Total Size287.8 GB (89.5 GB free)

Input
KeyboardHID Keyboard Device
KeyboardKeyboard Device Filter
MouseHID-compliant mouse
MouseSynaptics PS/2 Port Compatible TouchPad

Network
Primary IP Address
Primary MAC Address
Network Adapter802.11n Wireless LAN Card  (192.168.1.67)
Network AdapterMicrosoft Wi-Fi Direct Virtual Adapter
Network AdapterRealtek PCIe GBE Family Controller
Network AdapterTAP-Win32 Adapter OAS #2
Network AdapterTAP-Win32 Adapter OAS #3
Network AdapterTAP-Win32 Adapter OAS #4
Network AdapterTAP-Win32 Adapter OAS #5
Network AdapterTAP-Win32 Adapter OAS
Network AdapterTAP-Windows Adapter V9 #2
Network AdapterTAP-Windows Adapter V9 #3
Network AdapterTAP-Windows Adapter V9 #4
Network AdapterTAP-Windows Adapter V9 #5
Network AdapterTAP-Windows Adapter V9

Peripherals
PrinterFax
PrinterMicrosoft XPS Document Writer
PrinterSend To OneNote 2013
PrinterSnagit 12
USB2 ControllerIntel Panther Point PCH - USB 2.0 EHCI Controller #1 [C-1]
USB2 ControllerIntel Panther Point PCH - USB 2.0 EHCI Controller #2 [C-1]
USB3 ControllerIntel Panther Point PCH - USB 3.0 xHCI Controller [C-1]
USB DeviceGeneric USB Hub
USB DeviceGeneric USB Hub
USB DeviceGeneric USB Hub
USB DeviceHID-compliand device
USB DeviceUSB 2.0 UVC HD Webcam
USB DeviceUSB Composite Device
USB DeviceUSB Composite Device
USB DeviceUSB Input Device
USB DeviceUSB Input Device
USB DeviceUSB Mass Storage Device
BatteryMicrosoft AC Adapter
BatteryMicrosoft ACPI-Compliant Control Method Battery

DMI
DMI BIOS VendorAmerican Megatrends Inc.
DMI BIOS VersionX401A1.211
DMI System ManufacturerASUSTeK COMPUTER INC.
DMI System ProductX401A1
DMI System Version1.0
DMI System Serial NumberC9N0BC434262396
DMI System UUID51544358-4A314E30-46325046-5D2D46A0
DMI Motherboard ManufacturerASUSTeK COMPUTER INC.
DMI Motherboard ProductX401A1
DMI Motherboard Version1.0
DMI Motherboard Serial NumberBSN12345678901234567
DMI Chassis ManufacturerASUSTeK COMPUTER INC.
DMI Chassis Version1.0
DMI Chassis Serial NumberC9N0BC434262396
DMI Chassis Asset TagNo Asset Tag
DMI Chassis TypeNotebook

All I want to do is is take 6 partitions down to  2 partitions. At first I didn't think it would be such a hassle...boy was I wrong. Is this even possible? I've provided all the information that I know. Can anyone offer any type of assistance? Or am I stuck with it like this? The Sea Gate external hard drive isn't mine...I wish it where. I couldn't get Windows to register it even though the device manager could recognize it. So I have no clue whats up?

Data file much size I can increase in any data file as per the available hard disk size.

$
0
0

FATAL : production-sql-server : ABEadobesqlpr1\lcstat db : lcstats - msg: data file space used 099%

Whenever I get such type of alert from Tivoli and I have to expand the data files.But you know multiple instance and multiple database with multiple data file and all are of restricted sizes. I want to make a query which gives the detail about  current usage of data files and log file in such a sense so that I can estimate how much size I can increase in any data file as per the available hard disk size.

Thanks

Manual Maintenance Plan

$
0
0

Hi All,

Using SQL Server 2008 R2 in multiple servers.

1. Any script (links) for creating a manual maintenance plan? I would like to manually run the script for some databases in multiple servers.

2. It is a way to collect the statistics before and after the maintenance? I would like to show the improvement after the plan running.

3. Am I missing anything in this maintenance plan steps?

- Full Backup of the database.

- Transaction Log Backup.

- Check DB integrity

- Cleanup Backups more than two months

- Rebuild Indexes

- Reorganize indexes

- Shrink databases

- Update Statistics

Thanks for your help in advanced.

Best,

Viewing all 12644 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>