Hi there
I have just tried creating my first package which is meant to:
- Copy some files
- Add a macro
- Create a custom table in the database
However when running the install the custom table is not being created in the database.
My action is
<Action runat="install" undo="true" alias="ExecuteSql"> <![CDATA[CREATE TABLE [dbo].[likes] ([id] [int] NOT NULL,[likes] [int] NOT NULL,PRIMARY KEY (id))]]> </Action>
I have manually executed the SQL in SQL Server Management studio and it creates the table.
I have checked installedPackages.config and the SQL is showing up there as an action.
The database user account in my web.config (sa) is the database owner so the problem should not be a database permissions issue.
Can anyone provide any suggestions as to where this might be failing.
Thanks
Nigel