Using Sync Framework in Visual Studio 2013 - wcf

Does anyone have a walkthrough or video on how to use Sync Framework in VS 2013? I've seen nice examples using VS 2010 but some important items like local database cache object have been deprecated.
For what I have read is that LocalDB will be replacing the Sql Compact (which is deprecated). But have not found a site explaining how things should work. My solution for what I understand would be a LocalDB syncing with a SQL Server with IIS using WCF. Any pointers would be appreciated.

there's no equivalent for the Local Database Cache project wizard in VS 2013. if you want to do what the wizard does, you can hand code it yourself. but that will be using the older sync providers.
you can find a walkthrough of how to achieve this with the newer sync providers here. The SqlSyncProvider should work with SQL Server/Express/LocalDB/Azure. You can also still SQL CE if you want to.

Related

Cannot connect to server - SQL Server 2014 Management Studio

I'm quite a newbie, just trying to learn some new things. I've recently started learning c# etc and I'd also like to create a new SQL Server database using SQL Server Management Studio.
The thing is that for some reason I am not able to connect to the server. I might have done something wrong (or haven't done something that I should have done). Been researching the problem a lot on google and I found some tips but I still can't make it work.
I even found some installation tutorial in here: http://www.sqlcoffee.com/SQLServer2014_0005.htm and I only noticed that I used some different options (I used default, didn't change anything) like for example in "Database Engine Config" I chose "Windows authentication mode".
So that's what I get: http://imgur.com/2ftOdSB
Also I think I may have some problem with services, because when I go to the server configuration manager, the list is completely empty.
Thanks for any tips. If I don't solve this, I can always uninstall SQL Server Management Studio and reinstall it - this time following the steps in the tutorial. Hopefully that wont be necessary so help me please:)!
I've had a look at the link you posted about the installation instructions. As I mentioned before SQL server enterprise (database engine) won't install on a non-Server OS, You'll need at least Windows Server 2008. Have a look at msdn.microsoft.com/en-us/library/ms143506(v=sql.120).aspx for the system requirements. During the installation there must have been an option to install the database engine, but it was probably disabled because of your OS.
I suggest you uninstall 2014 Enterprise and download SQL Server 2014 express microsoft.com/en-gb/download/details.aspx?id=42299 and make sure you select database engine as part of the installation.
If you want to get into SQL, I would suggest trying out MySQL first. I've utilized it a little bit and found it to be fairly simple with a decent amount of documentation. This version of SQL will still function with various languages. It doesn't utilize Windows authentication, but rather lets you set a root password specific to the database itself. I don't know if your software is similar to that but there may be an option to not use Windows authentication and instead authenticate within the database software itself.

Use of SQL Server Management Objects in an application

A developer on my current project has used Microsoft.SqlServer.Management.Smo within the code of our development to build tables programmatically.
To me this seems like a bad idea.
Is it?
I thing being or not being a bad idea for that matter depends on the environment under which the application will be run or deployed or what the application is required to do.
SMO makes it easy to perform database administration operations in .NET code. While all of those admin tasks can be performed with T-SQL directly on a database or through the SQL Server Management Studio, being able to use SMO offers broad flexibility to include these types of operations in .NET applications.
In fact, SQL Server Management Studio relies on SMO for most of its management tasks.
I did find an article demonstrating what can be done with SMO here http://msdn.microsoft.com/en-us/magazine/cc163409.aspx

Setting Up a SharePoint Development Environment

I have reformatted my machine and am running Window 7 Ultimate (64-bit). I anticipate needing to do some SharePoint development. I'm currently in the process of installing my software. I've read this MSDN article. However, what the article doesn't tell me is which order I need to install the following:
SQL Server 2008 R2
Visual Studio 2010
SharePoint 2010
Office 2010
Can anyone tell me which order I need to install these items in? I want to make sure that I get it right. Normally, I would do SQL Server 2008 R2, Visual Studio 2010, Office 2010 However, with SharePoint 2010 thrown into the mix, I'm not sure what the order should be. Can anyone provide some insight?
Thank you!
Good question, one I should've asked before setting up SharePoint. I recall wishing I had installed VS prior to SharePoint, and the database has to exist for SharePoint to use, so I would recommend:
1.) Office
2.) Visual Studio
3.) SQL Server
4.) SharePoint
Also, you have the advantage of Windows 7. Create a step-named restore point before each installation (it will save you loads of trouble if you have to back up). In fact, if I were in your position I'd create a restore point and try the Easy Setup Script they link in that MSDN article. Good luck, hope it helps.
SQL Server before Sharepoint.
Rest in any order.

SQL Azure database using SQL Server Management Studio

I've been trying to work out whether it's possible to manage (i.e. add tables, modify them, create stored procedures) a SQL Azure database using some kind of GUI like SSMS and I keep coming up against different answers.
I found a post from the end of 2009 saying that it would be supported in SSMS but I'm not sure if that includes the Express version? Does anybody know what the most recent update of the express version is and whether it supports it?
I think I'm right in saying that it can't be done in Visual Web Developer 2010 (and I can't afford the full fat VS2010).
I'm prepared to consider alternatives though if anybody knows any full features GUI tools that work with SQL azure and I don't mind paying for a commercial license if it's not too expensive.
Thanks.
Yes, SQL Server 2008 R2's Management Studio does support working with SQL Azure databases.
See:
Getting Started with SQL Azure Development
There are a couple of options
1) You can use SSMS (get the free version by downloading SQL Express v2008 or greater) with advanced services. This will give you SSMS. You can then connect to SQL Azure using SSMS. However - there is a limited set of functionality available via this tool.
2) You can use SSDT (stand-alone for free) or from within VS2010 SP1 or greater. Again, you can connect to SQL Azure, but there are some restrictions on what you can do.
I am using the SQL Express on AWS RDS (free usage tier) myself lately (and connecting via SSMS or SSDT). I prefer their implementation of SQL Server in the cloud to Microsoft's implementation of SQL Azure.

source control with VB2005 Express

Can anyone suggest a good source control system that interfaces with VB2005 Express? As the Express editions of Visual Studio do not allow add-ins does this mean that I will not be able to integrate source control into the IDE? I'm used to the check-in/check-out process of SourceSafe integrated into VB6. Can anyone recommend TortoiseSVN as an alternative?
TortoiseSVN is a good choice. Although it won't integrate into the IDE (because of the plug-in problem you mentioned), it's really solid in the Explorer right-button menu.
Also consider Vault from SourceGear. If you're used to SourceSafe, Vault will be easier to learn; Vault was specifically designed for ex-SourceSafe users.
Take a look at Perforce. It is lightning fast, rock solid, simple to use and configure, and has features to support pretty much any source control scenario.
If you are working on your own (which seems likely, given that you are using VB 2k5 Express), it is free for up to two users. If / when you switch to VS Pro, it has very good integration, and on its own it has several excellent clients and Windows Explorer integration.
I would recommend using Tortoise and do version control through Windows Explorer.
I actually prefer that to Ankh in VS2008.
I use TortoiseSVN and windows explorer for all my development projects and believe it works great. I started with SourceSafe, but when I changed jobs I went to an SVN shop and have now incorporated it into my own development projects. You can also use Source Safe without integration. You use Source Safe to check in/out files in a folder and then manage it outside the IDE. While this isn't as "simple" it may work just fine for certain projects. I use a hosted SVN provider, you may want to check them out: Hosted-Projects.
No, Source Control systems can't be integrated with the VS Express IDEs by design.
If you want to continue using your existing VSS, you're best option is to upgrade to Visual Studio Standard. Otherwise, check out TortoiseSVN. Here's a good quick start:
http://www.polymorphicpodcast.com/shows/subversion/