If you are using a Stored Procedure:
ALTER PROCEDURE <Name>
(
@PartialName VARCHAR(50) = NULL
)
SELECT Name
FROM <table>
WHERE Name LIKE '%' + @PartialName + '%'
More Related Contents:
- How can foreign key constraints be temporarily disabled using T-SQL?
- What do Clustered and Non-Clustered index actually mean?
- Regex pattern inside SQL Replace function?
- Does T-SQL have an aggregate function to concatenate strings? [duplicate]
- How to create materialized views in SQL Server?
- How can I clear the SQL Server query cache?
- SQL Server Random Sort
- SQL Server database backup restore on lower version
- Add a new table column to specific ordinal position in Microsoft SQL Server
- How to update large table with millions of rows in SQL Server?
- Is there a way to simplify a NULL compare of 2 values
- How do you specify a different port number in SQL Management Studio?
- Export table to file with column headers (column names) using the bcp utility and SQL Server 2008
- Sequence as default value for a column
- How to set monday as first day of week in SQL Server
- How do I flush the PRINT buffer in TSQL?
- SQL Server Login error: Login failed for user ‘NT AUTHORITY\SYSTEM’
- VarBinary vs Image SQL Server Data Type to Store Binary Data?
- Drop primary key using script in SQL Server database [duplicate]
- OR Operator Short-circuit in SQL Server
- How to store directory / hierarchy / tree structure in the database?
- Which is quicker COALESCE OR ISNULL?
- Merge multiple rows into a single row
- Generate table relationship diagram from existing schema (SQL Server) [closed]
- How does SQL Server decide format for implicit datetime conversion?
- Bootstrapping SQL Express from WiX?
- Error converting data types when importing from Excel to SQL Server 2008
- EAV over SQL Server
- CHECKSUM and CHECKSUM_AGG: What’s the algorithm?
- The Best Way to shred XML data into SQL Server database columns