in SQL2005 how to you change a table's schema?
say table employee was originally created as thus.
and shows up as dbo.tblEmployee
What I want to do is begin to alter the database schema (in a developement environment) so that dbo.tblEmployee would be common.tblEmployee and so forth to see how it will effect the UI and hopefully allow better overall security.
Thanks
John Fuhrman
say table employee was originally created as thus.
Code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tblEmployee](
[EmployeePK] [int] IDENTITY(1,1) NOT NULL,
[EmployeeID] [varchar](15) NOT NULL,
[EmployeeFN] [varchar](25) NULL,
[EmployeeMI] [varchar](25) NULL,
[EmployeeLN] [varchar](25) NULL,
[EmployeeGen] [varchar](10) NULL,
[EmployeeDept] [nvarchar](50) NULL,
[EmployeeDateAdded] [datetime] NOT NULL CONSTRAINT [DF_tblEmployee_EmployeeDateAdded] DEFAULT (getdate()),
[EmployeeDateDeleted] [datetime] NULL,
[EmployeeRemovedBy] [varchar](15) NULL,
CONSTRAINT [PK_tblEmployee] PRIMARY KEY CLUSTERED
(
[EmployeePK] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
and shows up as dbo.tblEmployee
What I want to do is begin to alter the database schema (in a developement environment) so that dbo.tblEmployee would be common.tblEmployee and so forth to see how it will effect the UI and hopefully allow better overall security.
Thanks
John Fuhrman