Quantcast
Channel: Welcome To TechBrothersIT
Browsing all 1946 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to Change Recovery Model from Simple to Full for Multiple Databases in...

Scenario:You are working as SQL Server DBA or Developer and you need to prepare the script that should change the recovery model of databases which are in Simple to Full.The below script can be used to...

View Article


Image may be NSFW.
Clik here to view.

How to take Transaction Log Backups for All SQL Server Databases in SQL...

Scenario:You are working as DBA or developer and you have to prepare the scripts that should be able to take the transaction log backup for all the databases. You can use these script on ad hoc basis...

View Article


Image may be NSFW.
Clik here to view.

How to save resultset of RESTORE FILELISTONLY in temp table in SQL Server -...

Scenario:I got this task to read the backup files form a folder then then restore to new location. While was working on this task, needed to read the file names from .bak file. I need to move them to...

View Article

Image may be NSFW.
Clik here to view.

C# - How to get file Properties and insert into SQL Server table by using CSharp

Scenario: Download ScriptYou are working as C# developer, you need to write a program that can read file's information such as  FolderPath  FileName  LastWriteTime  CreateTime  FileSizeinKBfrom a table...

View Article

C# - Delete files from a folder those are older than some number of days by...

Scenario: Download ScriptYou are working as C# developer and you need to write a program that should delete the files from a folder older than some number of days.Solution:You can write Console...

View Article


C# - How to get Oldest file from a folder by using CSharp

Scenario: Download ScriptYou are working as C# developer and you need to write code to find oldest file from a folder. There could be different reasons for this requirement such asYou would like to...

View Article

Image may be NSFW.
Clik here to view.

C# - Why console window disappear immediately without display my output in C...

Scenario: Download ScriptsYou are working as C# developer and writing Console Application. You would like to display some statics string values and also variables values but console window disappear...

View Article

Image may be NSFW.
Clik here to view.

C# - What is the difference between Console.Write and Console.WriteLine...

Scenario: Download ScriptYou are working as C# developer and writing Console Application. You need to display some lines and variables values to Console.You can use Console.Write( ) or...

View Article


Image may be NSFW.
Clik here to view.

C# - How to get the latest file from a folder by using C Sharp

Scenario: Download ScriptYou are working as C# developer and you need to get the latest file from a folder. There could be different reasons you want to get the latest file, You might get the files in...

View Article


C# - How to copy all files in a folder to another folder in C Sharp

Scenario: Download ScriptYou are working as C# developer and you need to create a Console Application, that should read all the files from a folder and copy to another folder in C#.The below script can...

View Article

C# - How to copy files and overwriting existing files if exists in a folder...

Scenario: Download ScriptYou are working as C# developer and you need to write a program that should copy all the files from a folder to another folder, In case files already exists, you want to...

View Article

How to take Differential backup of all the Databases on SQL Server Instance -...

Scenario:You are working as SQL Server DBA or developer and you need to prepare script that can take the differential backup of all the databases on SQL Server Instance. Below script can be used to...

View Article

C# - How to Move files from a folder to Another Folder in C Sharp

Scenario: Download ScriptYou are working as C# developer, you need to create a program that should move the files from source folder to destination folder. Below code can be used to move all the files...

View Article


C# - File.MoveTo Does not work - Cannot create a file when that file already...

Scenario: Download ScriptYou are working as C# developer and you need to write a program that should move all the files from a folder to another folder. You wrote the code and used file.MoveTo, it...

View Article

C# - How to move and rename files to another folder by adding datetime to...

Scenario: Download ScriptYou are working as C# developer, you need to create a program that should move all the files from a folder to destination folder. While it moves the files, it should rename the...

View Article


C# - How to Copy files from a folder to another folder and add date-time to...

Scenario: Download ScriptYou are working as C# developer, you need to write a program that should copy the files from a folder to another folder, while it copies the file, it should add date-time to...

View Article

Image may be NSFW.
Clik here to view.

C# - How to Import or Load Text file to SQL Server Table by using C Sharp

Scenario: Download ScriptYou are working as C# developer, You need to write a program that should read the text file (CSV) file and load the data to SQL Server table. Once the file data is loaded to...

View Article


How to Drop or delete all User Databases on SQL Server Instance - SQL Server...

Scenario:You are working as DBA or developer, you need to generate scripts that should be able to drop all the users databases on SQL server Instance. Also you can made modification to Select query to...

View Article

Image may be NSFW.
Clik here to view.

How to get Information about your Backups and Save into SQL Server Table -...

Scenario:You are working as SQL Server DBA or developer, you need to get Database Name from backups files or maybe other information such asWho performed this backupWhich Server wrote this backupSize...

View Article

How to Restore Databases from full backup files from a folder to SQL Server...

Scenario:You are working as SQL Server DBA or developer, you need to prepare script that should read the backup files from a folder and then restore as database to SQL Server Instance.Following things...

View Article
Browsing all 1946 articles
Browse latest View live