Questions tagged [visual-studio]

Use the tag Visual Studio when you are having issues using Visual Studio in combination with a database system.

In Visual Studio, you can create applications that connect to data in virtually any database product or service, in any format, anywhere — on a local machine, on a local area network, or in a public, private, or hybrid cloud.

For applications in JavaScript, Python, PHP, Ruby, or C++, you connect to data like you do anything else, by obtaining libraries and writing code. For .NET applications, Visual Studio provides tools that you can use to explore data sources, create object models to store and manipulate data in memory, and bind data to the user interface. Microsoft Azure provides SDKs for .NET, Java, Node.js, PHP, Python, Ruby, and mobile apps, and tools in Visual Studio for connecting to Azure Storage.

With Visual Studio (2017) you can connect to the following Database Systems:

Microsoft Azure

  • SQL Database
  • Document DB
  • SQL Data Warehouse
  • Storage (blobs, tables, queues, files)
  • SQL Server Strech Database
  • StoreSimple

SQL

  • SQL Server 2008 - 2017 (incl, Express and LocalDB)
  • Firebird
  • MariaDB
  • MySQL
  • Oracle
  • PostgreSQL
  • SQLite

NoSQL

  • Apache Casandra
  • CouchDB
  • MongoDB
  • NDatabase
  • OrientDB
  • RavenDB
  • VelocityDB

Many database vendors and third parties support Visual Studio integration by NuGet packages. You can explore the offerings on nuget.org or through the NuGet Package Manager in Visual Studio (Tools > NuGet Package Manager > Manage NuGet Packages for Solution). Other database products integrate with Visual Studio as an extension.

References / Further Reading

132 questions
42
votes
7 answers

Why should I use Visual Studio 2010 over SSMS for my database development?

Visual Studio 2010 introduces database projects and a whole array of related features that supposedly facilitate database development. I've used SQL Server Management Studio (SSMS) for many years to do my database development without issue. Why…
Nick Chammas
  • 14,810
  • 17
  • 76
  • 124
15
votes
3 answers

What is the best way to include SQL Server Agent jobs in Source Control?

I found that if I script a SQL Server Agent job as 'create to' that the script starts with use msdb- so I assume that jobs are stored in the msdb database? What is the best way to add SQL Server jobs to a Visual Studio database project? I added the…
Zach Smith
  • 2,430
  • 13
  • 34
  • 65
11
votes
3 answers

SSDT Drop and Recreate Tables when nothing has changed

We have a Visual Studio Database Project consisting of about 129 Tables. It is the primary database for our Internal Web Based CRM/Call Centre product, which is still under active development. We use the SSDT Publish from within VS to deploy to…
OJay
  • 371
  • 2
  • 11
10
votes
1 answer

Using a linked server with OPENQUERY in a database project

I have a SQL Server 2008 running a database I want to throw in TFS. Therefore I used a Visual Studio 2013 database project where I imported the DB. After fixing a bunch of errors I'm stuck with only one error left: In one view the devs used…
Chake
  • 191
  • 1
  • 1
  • 8
9
votes
1 answer

Error starting localDb on Windows 11

I installed Windows 11 on a brand new NUC, then installed all updates. Installed Visual Studio 2022 CE and SSMS (v 18.10) I attempted to start the localDB which is assume was installed as part of Visual Studio 2022/ SSMS and when…
Computer
  • 193
  • 1
  • 1
  • 3
8
votes
1 answer

"Invalid object name" error when executing query

I connect database with Visual Studio 2017. When I am trying to execute a query then it shows the following error: The connection string I am using is: SqlConnection con = new SqlConnection("Data Source=ANUPAM-DESKTOP\ANUPAM;Integrated…
7
votes
1 answer

Visual Studio 2010 deployment script creates objects in wrong order - trigger after stored procedure

I created a view that selects from multiple tables in a complex query. Due to the complexity, I created insert/update/delete INSTEAD OF triggers to handle these operations on the view. I also created stored procedures that update the view. When I…
7
votes
2 answers

SQL Server 2014 SSIS Package Ignores Script Task when running as AGENT

Alright, so here's what I have going on. SSIS Package that queries data from our production system and drops them into CSVs. Have a VB script task that uploads them to a third party. Needed a multi-post HTTP post with authentication and a couple…
bvankampen
  • 171
  • 1
  • 4
6
votes
0 answers

Using the Schema Generation Wizard to regenerate a previously-generated schema

Lately, I've been trying to clean up a group of projects that my company received from an outside contractor. Among them is an SSAS cube, with an associated data warehouse. The contractors generated the cube top-down, using the Schema Generation…
6
votes
1 answer

Any Tricks to Better Identify Disabled SSIS Elements?

Does anyone have any tricks they care to share that will help better identify disabled elements within SSIS packages? Ideally there's some manner to adjust the text color to red or or something along those lines, but the default behavior seems…
John Eisbrener
  • 9,547
  • 6
  • 31
  • 65
5
votes
1 answer

SQLPackage resets database recovery model

I am using SQLPackage.exe with database publish profiles to deploy database changes to DEV and QC instances. I have databases in simple recovery mode. But when I deploy changes using SQLPackage, it reverts them to full recovery mode. This is what I…
JackLock
  • 466
  • 1
  • 5
  • 18
5
votes
1 answer

Reinitialize Table Values in SQL SSDT Unit Testing

I am creating SQL Server Unit Tests. We are testing various stored procedures. In Unit testing principles, it is good practice to setup a small database table, populate values, and tear down (truncate/delete) the database tables, and resetup for…
user162241
5
votes
1 answer

SSMS Crashes When Creating or Editing SSIS Packages

Problem started May 3rd. We are no longer able to import SSIS packages that have been modified by Visual Studio 2017.X into our SQL Integration Services (SQL version 2017 14.0.3023). SSMS Integration Services importation component (the GUI) keeps…
AKDiscer
  • 1,395
  • 6
  • 28
  • 40
5
votes
1 answer

Why is the 'AS' table alias keyword required in Visual Studio (Database projects)

Up till now I have been working directly on SQL Server instances, and am now playing around with how best to keep databases in source control. The visual studio database project seems to be exactly what I want. However, on trying to build a fairly…
Zach Smith
  • 2,430
  • 13
  • 34
  • 65
5
votes
1 answer

SQL Server Data Tools for VS 2015 - Anyone using for SSIS development to multiple versions?

According to this link, https://www.mssqltips.com/sqlservertip/4253/backwards-compatibility-in-sql-server-data-tools-for-integration-services/ the newest version of SQL Server Data Tools - "SSDT for Visual Studio 15" (16.5) is compatible with SQL…
SomeGuy
  • 2,053
  • 8
  • 35
  • 48
1
2 3
8 9