CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft OLE DB Provider for SQL Server error '80040e14' Must declare the scalar variable
- Article ID:
6264 - Date Created
Sunday, February 5, 2023 - Last Updated
Sunday, February 5, 2023 - This Article Has been Viewed
645 times - Short Desc
Must declare the scalar variable "@P1GROUP" happens when you have a Column Name that is not listed in Statement. - Details
When editing your SQL Script, you might misname your column or, in this case, move the Question Mark against another object in the statement. - Recreate Issue
In this case, I moved the '?' against the [Group] in [Group by].Select Col1, Col2 from Table1 where Col3=?Group By Col1, Col2, Col3
As you can see in the above Select Statement, the ?Group is against each other, causing this to become a single Variable in the Statement. - Resolve Issue
To resolve this issue, place a space between your Variable and the Group By.Select Col1, Col2 from Table1 where Col3=? Group By Col1, Col2, Col3
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825