<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.chongtin.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.chongtin.com/feed.php">
        <title>Tutorial Site ms_sql_server</title>
        <description></description>
        <link>https://wiki.chongtin.com/</link>
        <image rdf:resource="https://wiki.chongtin.com/ttps://wiki.chongtin.com/lib/tpl/bootstrap3/images/favicon.ico" />
       <dc:date>2026-04-09T00:02:53+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.chongtin.com/ms_sql_server/alter_nvarchar_size_for_a_column?do=revisions&amp;rev=1574665507"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/ms_sql_server/check_field_type_of_a_table?do=revisions&amp;rev=1603159067"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/ms_sql_server/exec_stored_procedure?do=revisions&amp;rev=1602383708"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/ms_sql_server/list_out_all_tables_and_fields?do=revisions&amp;rev=1548211155"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/ms_sql_server/microsoft_clustering_fail-over_have_downtime?do=revisions&amp;rev=1605229328"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/ms_sql_server/performance_tuning?do=revisions&amp;rev=1539653342"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.chongtin.com/ttps://wiki.chongtin.com/lib/tpl/bootstrap3/images/favicon.ico">
        <title>Tutorial Site</title>
        <link>https://wiki.chongtin.com/</link>
        <url>https://wiki.chongtin.com/ttps://wiki.chongtin.com/lib/tpl/bootstrap3/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.chongtin.com/ms_sql_server/alter_nvarchar_size_for_a_column?do=revisions&amp;rev=1574665507">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-25T15:05:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Alter nvarchar Size for a Column</title>
        <link>https://wiki.chongtin.com/ms_sql_server/alter_nvarchar_size_for_a_column?do=revisions&amp;rev=1574665507</link>
        <description>Alter nvarchar Size for a Column

TABLE is the table of your database, and COLUMNis a column on the table.


ALTER TABLE Customer ALTER COLUMN Address nvarchar(100);</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/ms_sql_server/check_field_type_of_a_table?do=revisions&amp;rev=1603159067">
        <dc:format>text/html</dc:format>
        <dc:date>2020-10-20T09:57:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Check Field Type of a Table</title>
        <link>https://wiki.chongtin.com/ms_sql_server/check_field_type_of_a_table?do=revisions&amp;rev=1603159067</link>
        <description>Check Field Type of a Table

You have to change YOUR_TABLE_NAME to the table name you are interested in.


SELECT 
    c.name 'Column Name',
    t.Name 'Data type',
    c.max_length 'Max Length',
    c.precision ,
    c.scale ,
    c.is_nullable,
    ISNULL(i.is_primary_key, 0) 'Primary Key'
FROM    
    sys.columns c
INNER JOIN 
    sys.types t ON c.user_type_id = t.user_type_id
LEFT OUTER JOIN 
    sys.index_columns ic ON ic.object_id = c.object_id AND ic.column_id = c.column_id
LEFT OUTER JOI…</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/ms_sql_server/exec_stored_procedure?do=revisions&amp;rev=1602383708">
        <dc:format>text/html</dc:format>
        <dc:date>2020-10-11T10:35:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Exec Stored Procedure</title>
        <link>https://wiki.chongtin.com/ms_sql_server/exec_stored_procedure?do=revisions&amp;rev=1602383708</link>
        <description>Exec Stored Procedure


EXEC procedure_name @param_name1 = value_1, @param_value2 = 'value_2';


where the value with quote is string type or datetime, and the one without could be int, float,... and you might have any number of parameter as the procedure needed.</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/ms_sql_server/list_out_all_tables_and_fields?do=revisions&amp;rev=1548211155">
        <dc:format>text/html</dc:format>
        <dc:date>2019-01-23T10:39:15+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>List Out All Tables and Fields</title>
        <link>https://wiki.chongtin.com/ms_sql_server/list_out_all_tables_and_fields?do=revisions&amp;rev=1548211155</link>
        <description>List Out All Tables and Fields


 SELECT TABLE_SCHEMA ,
       TABLE_NAME ,
       COLUMN_NAME ,
       ORDINAL_POSITION ,
       COLUMN_DEFAULT ,
       DATA_TYPE ,
       CHARACTER_MAXIMUM_LENGTH ,
       NUMERIC_PRECISION ,
       NUMERIC_PRECISION_RADIX ,
       NUMERIC_SCALE ,
       DATETIME_PRECISION
FROM   INFORMATION_SCHEMA.COLUMNS;</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/ms_sql_server/microsoft_clustering_fail-over_have_downtime?do=revisions&amp;rev=1605229328">
        <dc:format>text/html</dc:format>
        <dc:date>2020-11-13T09:02:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Microsoft Clustering Fail-over Have Downtime</title>
        <link>https://wiki.chongtin.com/ms_sql_server/microsoft_clustering_fail-over_have_downtime?do=revisions&amp;rev=1605229328</link>
        <description>Microsoft Clustering Fail-over Have Downtime

According to &lt;https://www.mssqltips.com/sqlservertip/1882/understanding-why-there-is-still-downtime-for-sql-server-with-microsoft-clustering/&gt;, Microsoft clustering fail-over solution involve the following steps that cause the downtime.

	*  Stops the SQL Server Agent service and any services dependent on the SQL Server service.
	*</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/ms_sql_server/performance_tuning?do=revisions&amp;rev=1539653342">
        <dc:format>text/html</dc:format>
        <dc:date>2018-10-16T09:29:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MS SQL Server Performance Tuning</title>
        <link>https://wiki.chongtin.com/ms_sql_server/performance_tuning?do=revisions&amp;rev=1539653342</link>
        <description>MS SQL Server Performance Tuning

Allow create, read from snapshot

Run these two line while anyone else log on to your database. Check the name YOUR_DATABASE_NAME as the name of your database.


ALTER DATABASE YOUR_DATABASE_NAME SET ALLOW_SNAPSHOT_ISOLATION ON  
ALTER DATABASE YOUR_DATABASE_NAME SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT</description>
    </item>
</rdf:RDF>
