Changing column properties in SQL Server database in SQL Server Management Studio - sql-server

When I want to change column properties of an existing table in an SQL Server Express 2008 R2 database via the SQL Server Management Studio Express - it doesn't let me.
I can view the properties but they're all grayed out and I don't find anything to ungray it. I've just migrated from Access and I'm wondering whether this just isn't possible (there's already data in the table - I can however delete and create new columns) or whether I'm missing something.

Right click the table and choose "Design" instead of expanding the columns, right clicking the column and choosing "Properties".

Related

Not able to view tables while doing data comparison in Visual Studio 2012 using SSDT

I am using Visual Studio 2012 and SQL Server 2008 R2 express. I am trying to use Data Comparison tool provided with VS 2012. After selecting databases on first page of wizard, when I move next page the tables in my databases are not visible.
Database Schema
[Wizard first Page][2]
Wizard Second Page
As you can see in the Wizard second image Tables in database schema are not visible.
I am new to this data comparison tool. Please let me know if I have missed anything here.
Can you please help me with this?

Can I automatically generate Select queries on Visual Studio similar to what SQL server management studio does?

I had SQL server management studio on my computer and I used to explore my company's database using it. When building queries it was very easy to right click on a table and 'select top 1000' rows. I would take that code then and modify it. This will save me time typing all field names for example.
Now I have MS Visual Studio and I can't install the Server Management Express. I can explore the database and I can right click on a table and view the records. However, I am not able to generate the select query automatically. How can I create these queries automatically and is there a way to visually design my sql query?
On Visual Studio, if you go tools -> Server Explorer and add a DB Connection, then you can mimic the management studio option to generate sql from db objects...

exporting data in sql server 2012

i am trying to export data from the database I created in SQL Server 2012 so that I may take it to school and copy it all over to the main server there. I was shown how to do it on campus in the computer lab but whenever I right click the table and go for Tasks>Export There is not an option for Tasks. I also couldn't just generate the script I had to Right click table, Script Table as>Create to>New Query. Any suggestions?
Right-click at the database node in SSMS Object Explorer (you're probably right-clicking a table node which wouldn't have "Export") (I assume you're talking about SQL Server Management Studio)
Here's a screenshot (Microsoft SQL Server Management Studio 10.0.2531.0):
Rightclick on database->click attack-> selct your database...
Make sure that data base backup should be make from that system... then only it will work.. if you copy from other sysytem means it wont work..

Migrate SQL Server 2000 data to SQL Server 2008

I want to migrate 2 database from my old SQL Server 2000 to my new server with the 2008 version.
I do that with the Management Studio 2008 with the export data task. It works fine and no error occurs but in the database on my new server all primary keys are missing.
Did anyone knows why or has another idea how to solve my problem.
When you get to the Select Source Tables and Views step of the export wizard you need to do Edit Mapping for each selection, then select Enable Identity Insert. If you don't check this option the primary key values are not exported.

Visual Studio 2008, Local Database, cannot modify custom table view

I just installed Visual Studio 2008 and SQL Server 2008 on my machine - in that order.
I note that VS insisted on installing SQL Server 2005 Express in order to be able to create a local database in by web projects.
In any case, whenever I add a local database and go to create a diagram, I can't seem to modify the Custom table view.
For example, I like to see the column name, data type, nullable and default value columns.
Whenever I click "Table View" - "Modify Custom", nothing happens!
Strangely, this action works fine in SQL Server 2008.
Has anyone else ever encountered this - and (hopefully) found a solution?

Resources