Column, parameter, or variable #%d: Cannot find data type %.*ls.

Error Message:
Msg 2715, Level 16, State 3, Line 1
Column, parameter, or variable #%d: Cannot find data type %.*ls.

Severity level:
16.

Description:
This error message appears when you try to use a data type that is unknown to the system.

Consequences:
The T-SQL statement can be parsed, but causes the error at runtime.

Resolution:
Error of the Severity Level 16 are generated by the user and can be fixed by the SQL Server user. The statement cannot be executed this way. Data types must be know to SQL Server before they can be used.

Versions:
All versions of SQL Server

Example(s):
USE tempdb;
GO
DECLARE @t VAR

Remarks:
In the above example we try to declare a variable of the type VAR. Because this type is unknown to SQL Server, the error is raised.




Related Articles :

  • No Related Articles Found

One Response to “Column, parameter, or variable #%d: Cannot find data type %.*ls.”

  1. In an VB Sql Function altering a ByVal … As String into ByRef … As String will also get you this type of error!!!
    This is consistent as you would try to pass datatype String to Sql.
    However Visual Studio will not give you a clue…..

Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |