Friday, 16 December 2016
APIPA
When a DHCP server fails, APIPA allocates IP addresses in the private range 169.254.0.1 to 169.254.255.254. Clients verify their address is unique on the network using ARP When the DHCP server is again able to service requests, clients update their addresses automatically.
Labels:
Internetworking
Monday, 29 February 2016
Updating a record
SELECT TOP 1000 [Index]
,[Action]
,[AcNumber]
,[FromNumber]
,[CustomerCode]
,[PolicyCode]
,[FromCode]
,[Amount]
,[EntryDate]
,[EntryTime]
,[RegNo]
,[Status]
,[FromDate]
,[ToDate]
,[SumInsured]
,[Branch]
FROM [SQLDB].[dbo].[Customers]
where Code='Profilenumber'
order by [Index] desc
SET [OldCustomer] = '0'
,[password]=''
WHERE Code='Profilenumber'
GO
,[Action]
,[AcNumber]
,[FromNumber]
,[CustomerCode]
,[PolicyCode]
,[FromCode]
,[Amount]
,[EntryDate]
,[EntryTime]
,[RegNo]
,[Status]
,[FromDate]
,[ToDate]
,[SumInsured]
,[Branch]
FROM [SQLDB].[dbo].[Customers]
where Code='Profilenumber'
order by [Index] desc
- Update the record:
SET [OldCustomer] = '0'
,[password]=''
WHERE Code='Profilenumber'
GO
Labels:
SQL Server
Deleting a record
SELECT TOP 100 [Index]
,[Customer]
,[CustomerCode]
,[Type]
,[TypeCode]
,[Approved]
,[DecisionDate]
,[DecisionUser]
,[User]
,[Branch]
,[Dates]
,[Resend]
,[LockedBy]
,[LockedTime]
,[SSMA_TimeStamp]
FROM [SQLDB].[dbo].[Authorization]
Where [Customer]= 'MICHAEL MARIANNA'
*Then you should note down the index value of this record so you will use to delete it as below:
DELETE FROM [SQLDB].[dbo].[Authorization]
WHERE[index]='225972'
GO
,[Customer]
,[CustomerCode]
,[Type]
,[TypeCode]
,[Approved]
,[DecisionDate]
,[DecisionUser]
,[User]
,[Branch]
,[Dates]
,[Resend]
,[LockedBy]
,[LockedTime]
,[SSMA_TimeStamp]
FROM [SQLDB].[dbo].[Authorization]
Where [Customer]= 'MICHAEL MARIANNA'
*Then you should note down the index value of this record so you will use to delete it as below:
DELETE FROM [SQLDB].[dbo].[Authorization]
WHERE[index]='225972'
GO
Labels:
SQL Server
Database restore
Put backup database on secondary server
Solution: After performing a fresh backup of the original database, Login to the secondary SQL Server Management Studio. Check if a user is logged in via task manager (If the service is in use but no user is logged in, restart the service)
Restarting the service
After performing the steps shown in the above screenshot
--> Select from device
--> From file
--> Add
--> SQL Backup
--> Select a fresh .bak file previously backed up from original server
--> Tick on Restore
--> Options
--> Restore options
--> Tick overwrite
--> Click on OK.
Labels:
SQL Server
Sunday, 28 February 2016
Adding a secondary DNS
See how to add a secondary DNS here: https://www.youtube.com/watch?v=UlVuF9jogm4
Also you need to add your ISP's DNS forwarders:
Labels:
System Administration
Subscribe to:
Posts (Atom)