I am attempting to link to tables in an AZURE SQL database via ODBC that I created using Visual Studio 2013 Lightswitch. I am able to attach to the database using SQL Server Native Client 10.0 and see all of the tables EXCEPT for the tables/entities I created with VS 2013 Lightswitch and published to Azure. I am trying to link the tables in Microsoft Access via ODBC.
I created the ODBC connector within Access rather than the ODBCAD32.exe in the Windows Control Panel and the tables/entities that were previously not present did appear. Not sure why.
Related
I just finished my first website on Visual Studio, using LocalDB with 30 tables and Identity. Then, I tried to move this website to Azure and I just got success to move the app. Unfortunately, the LocalDB is not recognized by Azure. What do I need to do to upload the database schemes and data?
You can migrate your on-premises database to Azure SQL database using SQL Server 2012(SQL Server 2017 and 2019 might face compatibility issues) and SQL Server Management Studio (SSMS).
Firstly, you need to attach your existing database with SSMS. Follow the link.
Follow the below steps in SSMS once your database attached.
Right click on the database you want to migrate. Select Task and from dropdown options select Deploy Database to Microsoft Azure SQL Database
Click on Next on pop-up window. On the very next window you will get options to connect your Azure SQL Server. Provide your Azure SQL server name, server credentials and click on Connect.
Provide the database name you want to give in Azure SQL Server. Fill the Azure SQL Database settings as per your requirement. Click on Next.
Lastly, you will get a summary of all the settings you have done. Click on Finish to migrate the database.
Once your database migrated successfully, you will get summary with Operation Complete message. Click on close. Your database has been migrated.
Check on your Azure Portal to check the migrated database.
I am using SQL Server Management Studio 10.5 and I'd like to link an Access file to it. I've been looking for answers over the internet but I didn't find any answers for this version.
I'm stuck at creating a new datasource (which should be the access file, right ?).
Where am I supposed to see the wizard for the creation of the datasource?
Use DB Root tree-> Linked Servers -> Server Objects-> Linked Servers.
Don't forget to create a DSN to access to it from SSMS.
I have a client application that will be deployed using ClickOnce. The client application will connect to a local sql database on their machine. They will need sql server 2008 express installed upon installed and the .mdf file attached.
I set Prerequisites to include sql server 2012 express.
So I would like the application when installing to check if sql server already installed with the database. If not then install and attach database. How can i achieve this properly using click once. I have a vb.net project using visual studio 2013. any references would help thanks.
You just have to change your connection string
to somthing like this
Server=.\SQLExpress;AttachDbFilename=C:\MyFolder\MyDataFile.mdf;Database=dbname;
Trusted_Connection=Yes
now your sql is linked to a specific database file
check this link https://www.connectionstrings.com/sqlconnection/attach-a-database-file-on-connect-to-a-local-sql-server-express-instance/
I have written an asp.net mvc application that is connected to a Microsoft SQL Server Management Studio database and I want to deploy the application to the webhosting server now. I have managed to get the published code onto the server easily. However, I want to ftp the database I created in Microsoft SQL Server Management Studio to the server. Where are these created databases saved and is it possible to ftp the database to the server. The other issue is the web hosting server is using MS SQL Server Express is that a problem?
Normally shared hosts expect you to place the database in the App_Data folder and use it directly from there.
Here is a page to explain connecting to the database
http://msdn.microsoft.com/en-us/library/ms247257.aspx
To find the database on your system open sql management studio right click the Database and click Properties on the Properties windows click on the Files section to show all associated files with your database.
I would recommend checking your providers documentaion though they might have specific requirments for database deployments
Does anyone know when a tool will be available to manage a SQL Azure database from within Visual Studio or SQL Enterprise Manager?
At present one can only cannect via:
1) SQL Management Studio (SSMS)
(The cancel and connect via new query method)
2) Azure Storage Manager: http://azurestoragemanager.codeplex.com/
3) SQL Azure Migration Wizard: http://sqlazuremw.codeplex.com/
4) Custom Application
I have gone down the custom route, an application that basically runs scripts within different folders to Update Tables and Stored Procesures etc.
Plus:
SQL Azure Explorer on Codeplex - free and with source code (addin for VS2010 Beta1)
Cerebrata Cloud Storage Studio - Winforms app to browse SQL Azure
Cerebrata Omega.MSSQL browser-based admin of SQL Server including SQL Azure (see announcement in blog post here)
Marc
Few corrections below:
Cloud Storage Studio is for managing Windows Azure Storage (Tables, Blobs & Queues) and not SQL Azure.
Omega.MSSQL is for managing SQL Server (2008/2005/2000) via a browser based interface (IE only). We customized Omega.MSSQL to work against SQL Azure. That customized version is available online only. To read more about it and access the application please visit this link: http://cerebrata.com/Blog/post/Browser-based-SQL-Azure-Explorer.aspx
Haven't tried personally, but according to the SQL Azure team the November CTP of SQL Server 2008 R2 has a version of Management Studio that will allow direct connections to SQL Azure without having to do the cancel/connect workaround:
http://blogs.msdn.com/ssds/archive/2009/11/10/9920168.aspx