Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 与标识符长度相关的SQL错误表_C#_.net_Sql_Sql Server 2005_.net Assembly - Fatal编程技术网

C# 与标识符长度相关的SQL错误表

C# 与标识符长度相关的SQL错误表,c#,.net,sql,sql-server-2005,.net-assembly,C#,.net,Sql,Sql Server 2005,.net Assembly,我得到以下错误,但不太确定它的含义: 错误消息:System.Data.SqlClient.SqlException:指定的标识符 以“[DEFAULT]开头,1作为来自(dasolPSDev.dbo.BB03_12)的rowJoiner 在dasolPSDev.dbo.BB03_12.caseid='10上内部连接dasolPSDev.dbo.BB03_10 太长。最大长度为128。至少 System.Data.SqlClient.SqlConnection.OnError(SqlExcept

我得到以下错误,但不太确定它的含义:

错误消息:System.Data.SqlClient.SqlException:指定的标识符 以“[DEFAULT]开头,1作为来自(dasolPSDev.dbo.BB03_12)的rowJoiner 在dasolPSDev.dbo.BB03_12.caseid='10上内部连接dasolPSDev.dbo.BB03_10 太长。最大长度为128。至少 System.Data.SqlClient.SqlConnection.OnError(SqlException异常, 布尔断开连接)在 System.Data.SqlClient.SqlDataReaderSmi.InternalNextResult(布尔值 忽略非催化信息)在 System.Data.SqlClient.SqlDataReaderSmi.NextResult()位于 System.Data.SqlClient.SqlCommand.RunExecuteReaderSmi(CommandBehavior cmdBehavior、RunBehavior、Boolean returnStream)位于 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior、RunBehavior、布尔返回流、字符串 方法,DbAsyncResult(结果)位于 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior、RunBehavior、布尔返回流、字符串 方法)在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior 行为,字符串方法)在 System.Data.SqlClient.SqlCommand.ExecuteReader()位于 PowerStatable.CentileGenerator.LoadResult(字符串strQry,Int32 (不)在 PowerStatable.CentileGenerator.LoadMedianTable(OutputMatrix-outMtx) 在 功率稳定。百分之发电机。计算器(百分之计算器 计算,Int32 prevCol,Int32 colIndex)在 PowerStatable.MediangeGenerator.Start()位于 PowerStatable.TableGenerator.Start(ApplicationContext appContext, 字符串strUID、Int32 seqId、Int32 flagProgress、字符串strTpf、Int32 StoredProcedures.CreatePowerStatable(SqlString strUID, Int32 seqId、Int32 flagProgress、Int32 outputType)


128个字符的限制是什么?我正在使用C#和SQL Server 2005并编辑其他人的代码。

SQL Server认为您引用的对象的名称为以下字符串

'[DEFAULT], 1 AS rowJoiner FROM (dasolPSDev.dbo.BB03_12 INNER JOIN dasolPSDev.dbo.BB03_10 ON dasolPSDev.dbo.BB03_12.caseid = '
显然,您没有尝试这样做;因此创建SQL语句的过程的某些部分设置不正确。

数据类型的最大长度为128个字符。请注意,错误显示的是SQL命令的一部分,从[Default]开始。您正在编辑的进程正在生成无效的sql语句-它正在尝试将整个文本视为字段或表名。请返回并检查生成sql语句的代码