alter table tablename change oldname newname varchar (10);
Instead I have to use some sort of SQL Server procedure sp_rename
sp_rename 'TableName.ColumnName', 'NewColumnName', 'COLUMN'
Here's a tip for copying a database in SQL Server 2008 (maybe other versions) via the Copy Database wizard.
When I initially tried the wizard it failed with
Message: Access to the path 'E:DataMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLDATANEWDATABASENAME.mdf' is denied.
In this case the NETWORK SERVICE was not able to create the new MDF file. I had to do add this user with FULL CONTROL to the MSSQLDATA directory and the wizard ran with no complications.
- Navigate to data folder
- Right click -> Properties
- Click the Security tab
- Click the Edit button to change permissions
- Click the Add button to add a new group or user
- Search for "NETWORK SERVICE" and click Add
- Click the Full Control checkbox for the newly added user
In case you're trying to find the wizard, right click the database, pick tasks, then Copy Database.
Those of you who know me may know that I am slightly opposed to Microsoft products. This stems mostly from my anti-institutionalism and fondness for the open source community. Really, it all started with price. So you could say that my Mennonite heritage is what has produced my technological stance.
With that said, for the next several weeks, probably months, I will be donning a Microsoft hat for a project I have been assigned at work. I will be setting up a Sharepoint Intranet for one of our clients. This is as Microsoft as you can get. I will be working with all things Microsoft: MS Office, MS Projects, Active Directory etc.
I am approaching this with an open mind. I am actually interested in seeing how this turns out and learning a bit more about the world of Microsoft. It's definitely something that would look good on the resume. As I have said to a few people: "If it comes to the worst, at least I'll have a reason to not like Microsoft."
Tags
motorcycle (8) cars (4) work (11) web development (7) porsche (2) life (26) holidays (1) new year (1) photography (3) travel (3) london (1) ubuntu (12) linux (21) birthday (2) weather (1) bow island (2) parenthood (1) qos (1) firewall (1) css (3) fire (1) diy (3) laptop (2) chart (1) test (2) cooling (1) politics (2) harper (1) media (1) modx (1) development (18) pie (1) microsoft (3) sharepoint (1) wine (1) video editor (1) canada (1) abby (1) wii (1) parenting (3) shoelaces (1) christmas (1) pictures (2) unix (1) time (1) google (2) picasa (1) windows (2) joel (1) twitter (1) technology (1) deadline (1) triumph (3) tiger (1) holiday (1) apache (1) mysql (10) tip (1) mechanics (1) server (1) smartphone (1) android (7) vm (1) ted (1) music (1) sql (1) postgres (1) svn (1) vmware (1) house (2) camping (1) replication (2) mechanic (1) oracle (2) databases (1) debian (1) sqlserver (1) sql server (1) datapump (1) blog (1) C# (1) MVC (1)