Microsoft
Software
Hardware
Network
Question : Insert Into
i have got a table that I created: DEPARTMENTS
This table has: DepartmentID, DepartmentName, ManagerID and LocationID
I am trying to instert 3 additional departments; Sales, Shipping and Accounts.
Insert Into Departments
(DepartmentName)
Values ('Sales', 'Shipping', 'Accounts')
After I Execute I get:
Msg 110, Level 15, State 1, Line 1
There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
Answer : Insert Into
Insert Into Departments (DepartmentName)
SELECT 'Sales'
UNION ALL SELECT 'Shipping'
UNION ALL SELECT 'Accounts'
Assuming the other fields allow null
Random Solutions
on BB (running BES), duplicate contacts and calendar - but not in Outlook - happened after running Blackberry Transporter and upgrade to Exchange 2010
Sending 'Test' Messages
Touch controls for Windows Mobile / C# / .NET Compact Framework?
Print 'Incomplete' for crystal report subtotal if any detail records are zero
Restoring information store Exchange 2003
How do i find all of the emails sent to a mail list in Exchange 2003
Help formating a output in Powershell
Domain account with read only permissions
Incoming e-mails being stripped
Accessing MySQL thru VB.NET