Populating WebMatrix SQL Server Compact - sql-server

are there any ways to populate the WebMatrix sql server with some script so that I can test the website better? I need some data on my server. Any suggestions are welcome.

You can use ErikEJ's tools to get data from an existing SQL Server (Full) database and script it to fill a SQL Server Compact 4 database: http://erikej.blogspot.com/2010/02/how-to-use-exportsqlce-to-migrate-from.html

The sqlcecmd mentioned in the blog does just that (execute pregenerated queries), and I also have made a VS 2010 add-in: http://sqlcetoolbox.codeplex.com

Related

Teradata SQL assistant connect to SQL Server, set preferences in using a libraries

I have one specific problem. In my Teradata SQL Assistant, I am connecting to SQL Server. But if it is possible, for me it will be best work with standard libraries in Teradata, like when I write help table, show table etc. the query is working. Right now it is necessary work with query defined in SQL Server. I think that must be possible somewhere set a preference of working queries. Or it is impossible?
Thank you a lot.
Teradata and SQL Server have different query dialects. HELP TABLE is specific to Teradata. Perhaps you should use a different tool for working with SQL Server, like Azure Data Studio or SQL Server Management Studio.

SQL Server : where download examples of filled tables?

I installed SQL Server Management Studio and SQL Server on my computer. Now I need filled tables for training. Where can I download completed (filled) tables (about 10k-100k rows) for my new db? For example - dictionaries, cataloges,...?
Thank you.
When installing SQL server it suggests to install sample database. I think it is called AdventureWorks. There are a lot of examples building on that DB.
Just follow these steps.

How to remove system tables or other tables in SQL Server Link Server

Good day everyone!
I have a link server set up in SQL Server 2008 SP3 on Windows 7 64 for Oracle 11G Express.
I am using Oracle SQL Developer as a database application/Management system.
All is working well except for the long list of tables that's also in the Table tree.
There is a Filter function in SQL Developer, but I do not see the table APEX listed there.
Is there a way to configure SQL Server to that I see onle a specified table in the Link Server?
Here is an image of what I am referring to:
Thanks for the knowledge - you are making a great difference!
Guy
edit your account under security and go to user mapping untick master.
reconnect to sql server.
hope this helps.
or this link
http://msdn.microsoft.com/en-us/library/ms190644.aspx

Transfer SQL Server data to SQL Azure

I have a local database SQL Server 2008 Express and I have tables along with data in them. I want to export those schemas and data to SQL Azure database.
What I have tried in SQL Management Studio is to right-click database (contextual menu) and Tasks->Generate Scripts. But those SQL scripts were only the schema, stored procedures etc and no data is exported at all.
Then I have tried Tasks->Export Data, but there were no appropriate export types. I have seen only Flat File dump and I think SQL Mgmt Studio 2008 R2 does not support importing flat files for SQL Azure.
Is there a nicer way to export data from SQL Server as sql scripts and execute them on a remote server without using any 3rd party tools?
I found that SQL Azure Migration Tool http://sqlazuremw.codeplex.com/
Very handy and useful. Worked for me.
In Tasks/Generate Scripts you can set Script Options/Script Data to be True, which should script out the data as well.
Not free, but SQL Data Compare will let you move data from on-premise to SQL Azure.
You can try SQL Server Import and Export Wizard.
For Detailed steps reg how to do it, check link.
I have worked with it already and it works fine for both Azure and on-premises.
An article that comprehensively explains available options:
http://parasdoshi.com/2011/06/20/solidq-journal-article-migrating-data-into-microsofts-data-platform-sql-azure/
Full disclosure: i work at SolidQ.com

SQL data comparison tool for SQL Server Compact

Does anyone know of a tool similiar to RedGate's SQL Data Compare that works with Microsoft SQL Server Compact 3.5?
For me the following process worked:
Install SQL Server Compact Toolbox extension.
Run the "Script database schema and data" command on both databases
Use a diff tool on generated files to see the changes.
In the end I solved this problem by Exporting my 2 SQL Server Compact Databases to SQL Server Express 2005 (although 2008 would work) using Data Port Console.
I then compared them using Red Gate SQL Data Compare.
This solution works just fine for me.
Not sure, but you could also have a look at the Apex SQL tools - Apex SQL Diff and Apex SQL DataDiff. There website is here. They don't specifically mention SQL Server Compact - but I'm sure you could inquire with them.
Red-Gate and Apex are my #1 choices for any kind of SQL tools :-)
Marc
Have you tried SQL Compare from starinix? They say it supports SQL Server (All Editions) so that may include compact edition.
This software does work as I have used it (for Yukon). It's also freeware which saves worrying about licensing.

Resources