Stephen West
Forum Replies Created
-
AuthorPosts
-
Thanks Henry for clearing my doubt. So, is there any procedure that i can use to detect SQL Injection?
April 16, 2016 at 12:13 pm in reply to: Question Regarding Database Mirroring Operating Modes #1933 Score: 0It depends on two factors: mirroring mode and if the data is getting explicitly commit or implicitly…. The application will read only the committed data.
March 28, 2016 at 11:27 am in reply to: Getting Error while Attaching the Database in SQL Server #1727 Score: 0When I followed the instructions given by you, the same error prompted that’s why I am unable to attach the .mdf file. What may the possible reasons for this error?
First of all you should ensure that you have sufficient space on your disk drive to hold the database snapshot. You can create a database snapshot only the help of TSQL command. The SQL Server Management Studio doesn’t provide the facility to create the database snapshot.
Here I have posted a sample query to create the database snapshot.CREATE DATABASE database_snapshot_name ON ( NAME = logical_file_name, FILENAME = 'os_file_name' ) [ ,...n ] AS SNAPSHOT OF source_database_name [;]
Thanks for a warm reply.
Please tell me the things, that we should care when we are performing a page level locking in SQL Server.March 1, 2016 at 9:51 am in reply to: SQL Server performance troubleshooting and analysis methodology. #1440 Score: 0Defining a troubleshooting methodology is hard, because the actual methodology that I apply depends entirely on the specific problem that I am trying to troubleshoot for a specific environment.
Fairly early on in any analysis, I’ll take a look at the wait statistics, in the
sys.dm_os_wait_stats Dynamic Management View (DMV), to identify any major resource waits in
the system, at the operating system level.February 24, 2016 at 5:46 am in reply to: Uses of undocumented function fn_dump_dblog? #1164 Score: 0The undocumented function fn_dump_dblog can read both the online transaction logs and log backups and it can accept 68 parameters.
There are several methods to export a CSV file from SQL Server database.
1. Using SQL Server Management Studio
>>Firstly using SELECT statement filter the data that you want to export.
>>Now, Click on the top-left corner to select all rows
>>After this, Right-Click to copy all the selected
>>The paste the copied content on Microsoft Excel
>>Save as CSV
2. Using SQLCMD (Command Prompt).
3. Using BCP you can export the CSV files.February 23, 2016 at 12:41 pm in reply to: SQL Server error cannot open database requested by the login #1157 Score: 0If you are using Windows authentication, then
Create a SQL Server log login for NT AUTHORITY\NETWORK SERVICE on your SQL Server
or
Change the connection string like thisconnectionString="Servere=.\SQLExpress;Database=IFItest;User ID=UserName;pwd=password"
February 16, 2016 at 1:05 pm in reply to: How to change the database location in SQL Server? #1107 Score: 0Can you please tell me how to create a new path for existing database in SQL Server
January 22, 2016 at 12:25 pm in reply to: How Can I Check Free Space in My SQL Server Database? #1057 Score: 0you can try DBCC SQLPERF to determine the free space of your SQL Database.
USE master GO DBCC SQLPERF(logspace)
You can rename sql server database using transact-sql and sql server management studio, however to rename the physical files you need to detach the database. This post shows you step by step method to rename sql server database and physical files:
http://www.sqlserverlogexplorer.com/how-to-rename-a-database/December 22, 2015 at 12:40 pm in reply to: How to enable and disable trigger in SQL server #1008 Score: 0I have found an informative article that shows how to enable and disable indexes in SQL Server using SQL Server Management Studio and Transact-SQL hope this will help you out, see from here: http://www.sqlserverlogexplorer.com/enable-and-disable-indexes/
December 15, 2015 at 12:48 pm in reply to: How to fix ”Named Pipes Provider, error: 40” in SQL Server #1000 Score: 0Thanks Lincoln for the link I’ve got the solution 🙂
December 7, 2015 at 10:45 am in reply to: How to fix ”Named Pipes Provider, error: 40” in SQL Server #983 Score: 0I have checked the remote connection, named pipes/TCP and also tried the local IP address to connect but I am still getting the error
December 7, 2015 at 10:36 am in reply to: How to move multiple NSF files to single NSF file? #982 Score: 0Hi,
Yes, your point is right regarding the handling of multiples NSF Archive Database files. I have searched through Google for any manual tricks or tips to integrate these files to a single file.
But, sadly I haven’t found any satisfying solution for this problem.
Anybody is welcomed for any tricks or tips to solve this issue.December 5, 2015 at 9:37 am in reply to: How to Create a Full Database Backup in SQL Server ? #976 Score: 0Try this:
USE Databasename; GO BACKUP DATABASE Databasename TO DISK = 'D:\SQLServerBackups\Databasename.Bak' WITH FORMAT, MEDIANAME = 'D_SQLServerBackups', NAME = 'Full Backup of Databasename'; GO
November 28, 2015 at 12:20 pm in reply to: how to remove secondary transaction log file? #925 Score: 0Try this
SELECT o.name AS TableOrIndex FROM sysfiles f JOIN dbo.sysfilegroups s ON f.groupid = s.groupid JOIN dbo.sysindexes i ON i.groupid = s.groupid JOIN dbo.sysobjects o ON i.id = object_id(o.name) AND i.indid in (0, 1) WHERE f.name = 'My_Logical_File_Name' UNION SELECT i.name FROM sysindexes i join sysfilegroups f ON i.groupid = f.groupid JOIN sysfiles l ON f.groupid = l.groupid WHERE l.name = 'My_Logical_File_Name'
When the database is created it lives in your applications private file store and is only deleted or overwritten when you explicitly delete overwrite it
1. SELECT the DISTINCT records into a New Table
2. TRUNCATE the Old Table
3. MERGE the New Table back into the Old Table -
AuthorPosts