data model creation in SQL Server - sql-server-2008

Can we create the data model from the existing database in SQL Server like star schema or snowflake schema pictorial form?
If yes, could you please help me the steps to create the datamodelling in SQL Server.
Thanks in Advance.

You can go to object explorer in the SQL Server Management Studio and expand database node. You can right click and generate database diagram, as given below.

Related

From Access to SQL Server 2008

I am struggling a bit with the following. Our forecasting tool generates some 100k of records of forecast information in Access each month. The tool is an Excel - Access combination. I want to upload the data from Access to SQL Server after the forecast is done (for multiple purposes). I tried to look up the most easy way but not sure what to use. ADO seems handy where I could integrate that in an existing macro that cleans up the database. Anybody done this before and has some snippet of code to use?
We use SQL Server Management Studio 2008, but not sure whether that's relevant here.
Thanks in advance,
Michiel
In Access, link via ODBC the tables in SQL Server you wish to upload to.
Then create and run append queries to insert the data in the linked tables.
I suggest using SSIS package which is started by job on sql server side (by shedule or manual). You can create package with the help of sql server import/export wizard. I think this is the best way to import data from access to sql server.
Thanks for the answers. I will try to do the linked table way, but I already had a look to that and it seems that due to the fact that I use citrix server I was not able to link it directly to SQL server via ODBC. So I have to check what's different there. Not familiar with the SSIS package yet but I will definitely look into that if the first option does not seem to work out.
Thanks again guys

SQL Server 2008 Sharepoint list

I am trying to link a sharepoint list to another using sql server database. The ideal would be for this is to a live link so that when data in the sharepoint list is updated, the data in the sql server database is also updated. The reason that I need to do this is that I have an ASP page which will query the SQL database and display the results on a web page.
Any guidance would be much appreciated
Thanks in advance
SidJ
PS : I have done this in access before using the External Data tab ->
More -> Sharepoint List and then following the steps in the wizard, so
I know it is possible. Just not sure how to recreate this using SQL
Server as the destination for the data.
You can go BCS (Business Connectivity Services) or build something custom using a connector like http://www.bendsoft.com/net-sharepoint-connector/
Here is a small guide on BCS http://zimmergren.net/technical/sp-2010-programmatically-work-with-external-lists-bcs-in-sharepoint-2010

Exporting and Importing form QuickBooks 2011 using SSIS

Problem Definition: I would like to export all the data from all the tables from QuickBooks into SQL Server 2008 database. I tried to create a SSIS and using RssBus .NET Data Provider for QuickBooks - http://www.rssbus.com/ado/quickbooks/. I am able to export data from QuickBooks Customers table into SQL Server 2008 database table by using ADO.NET (source data reader) and OLE DB Connection (for destination SQL Server).
Question: I would like to loop through all the tables on source side and then export one by one. Is it possible through SSIS package? I will really appreciate if someone can point good resource links or example or detailed instruction will be much appreciated!
Then I would like to do import from SQL Server to QuickBooks. I am expecting SSIS can be used to accomplish the import process.
Thanks in anticipation!
You can't loop over the tables, you have to define each source and target table in advance in the package.
Of course, you always have the option of creating packages dynamically from .NET code, so you could read the list of tables in QuickBooks then generate a package. If the table structures change a lot or if there is a very large number of tables it could be worth it (I know nothing about QuickBooks).

How to dump specific tables to a sql script using SQL Server or bcp.exe

Is there a way to dump the content of a few SQL Server tables into a file consisting of standard INSERT INTO statements of my SQL Server database?
You can use Ms Sql Publisher wizard . This will help you to create scripts based on your database schema, data or even both. Please check this link if you want to do it in Visual Studio 2008
Also, there is this article on codeproject which uses Ms Sql Publisher Wizard
A step by step process to support my answer.
If you need it as one-off, look here
http://www.codeproject.com/KB/database/sqlinsertupdategenerator.aspx

Is There any way to share SQL Server 2008 Diagrams

Is there any way we can share the SQL Server 2008 database Diagram (Other then capturing the jpeg).
I've used the 2005 version of this tool which did the job very nicely.
EDIT: The original link is dead. However http://devnuggets.blogspot.com/2011/04/script-diagram-really.html seems to be the same person's code for scripting/moving diagrams.
The SQL Server 2008 diagrams are stored in a sysdiagram table in the same database as a binary value.
We can copy the binary data and then reinsert them at another databse to recreate them there. But the table structure of the database needs to be there as well. So in this case it is of no important use for sharing.