How can we help you today? How can we help you today?
rldawg
Ha! Maybe I created it. Sorry, I need to report the bug to myself and fix it! Although, it's such a good snippet that I thought it was a prepackage one [image] Another good idea for a snippet called trim: LTRIM(RTRIM($SELECTEDTEXT$))$CURSOR$ / comments
Ha! Maybe I created it. Sorry, I need to report the bug to myself and fix it! Although, it's such a good snippet that I thought it was a prepackage one Another good idea for a snippet called tr...
0 votes
1. I am using the latest version of SQL prompt 2. Ctrl+B Ctrl+B removes square brackets, it does not add them. 3. Ctrl+B Ctrl+B does not remove the square brackets around my table variable because that's what it has in its suggestion list. 4. That's what I am trying to convey to you is that SQL prompt shows @AssignmnentTypes udtbl_AssignmentTypes as a variable in its suggestion list, but when I select it, it puts [@AssignmnentTypes ] which is not correct 5. I can get it to do this consistently 6. When I type the following code in, when I am typing my SQL statements and filling out the parameters to the function below, @AssignmnentTypes is shown in the SQL Prompt suggestion list, and when I select it, SQL prompt erroneously puts square brackets around the variable. Which when I try to create or alter the stored proc, I get an error that the column name is not defined. Because when there is square brackets around the name of the variable, SQL Server thinks it's a column name in a table somewhere. An @ variable of any kind can not have brackets around it. DECLARE @AssignmentTypes Job.udtbl_AssignmentType INSERT @AssignmentTypes SELECT ID FROM dbo.fn_GetSplitValues(@ScheduleAssigmentTypeList) WITH EmpConflict AS ( SELECT EmployeeId, ConflictDate, ConflictExists FROM Job.fn_EmployeeScheduleConflictDates(@ClientId, @EmployeeId, @BeginDate, [@AssignmentTypes]) -- wrong UNION SELECT EmployeeId, ConflictDate, ConflictExists FROM Job.fn_EmployeeScheduleNoConflictDates(@ClientId, @EmployeeId, @BeginDate, [@AssignmentTypes]) -- wrong UNION SELECT EmployeeId, ConflictDate, ConflictExists FROM Job.fn_EmployeeScheduleUnscheduledDates(@ClientId, @EmployeeId, @ResourceScheduleId, NULL, @BeginDate, [@AssignmentTypes]) -- wrong ) / comments
1. I am using the latest version of SQL prompt 2. Ctrl+B Ctrl+B removes square brackets, it does not add them. 3. Ctrl+B Ctrl+B does not remove the square brackets around my table variable beca...
0 votes