SQL SERVER DATABASE WITH SAN STORAGE

Ahmed Maher Abdelsalam 21 Reputation points
2022-02-20T05:54:47.28+00:00

I am preparing for SQL server cluster with servers 2016, linked with Dynamics AX 2012,
I have two options:
1- Store Database on external SAN storage.
2- Store database on local shared location on any physical server.

I need to know how to store SQL server database on external SAN storage?????

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,657 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ronen Ariely 15,191 Reputation points
    2022-02-20T09:40:06.693+00:00
    0 comments No comments

  2. CathyJi-MSFT 21,786 Reputation points Microsoft Vendor
    2022-02-21T03:30:26.38+00:00

    Hi @Ahmed Maher Abdelsalam ,

    According to MS document, you may use SAN storage to store your databases' files. This use requires the -T1807 startup trace flag to work in Microsoft SQL Server 2008 and earlier versions. This use is enabled by default in Microsoft SQL Server 2008 R2 and later versions. Give full permissions to your account on shared folder.

    DBCC TraceOn(1807);  
    GO   -----This step only need for Microsoft SQL Server 2008 and earlier versions  
      
    Use master;  
    GO  
      
    CREATE DATABASE [test]   
        ON  PRIMARY (  
            NAME = N'test',   
            FILENAME = N'\\PC-Name-Where-Share-Is\TempDB\test.mdf' ,   
            SIZE = 2048KB ,   
            FILEGROWTH = 1024KB  
            )  
        LOG ON (   
            NAME = N'test_log',   
            FILENAME = N'\\PC-Name-Where-Share-Is\TempDB\test_log.ldf' ,   
            SIZE = 1024KB ,   
            FILEGROWTH = 10%  
        )  
    GO  
    

    Refer to this similar thread.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.