Visual Studio 2022 try to connect to sql server instead of connection history, Getting error "'CONNECTIONPROPERTY' is not a recognized - visual-studio

Getting error "'CONNECTIONPROPERTY' is not a recognized
This is the new problem I have in VS 2022 it works fine in VS 2019
The same, issue is happening with Visual Studio 2022. It works fine with VS 2019.
The connections/ login window looks like in SQL Server Management Studio.
Details: in Visual Studio on the SQL Server Object Explorer I was able to add the PDW server.
I can browse the server tables, stored procedures, security and all.
If I right-click on a database, or table and select "New Query", it will ask me to log in with the same window as M Studio.
I am able to connect fine if I open an existing query.DSQL file it allows me to use history connections or connect normally.
So I am connected to the server on SQL Server Object Explorer but when try to open a stored procedure it asks to login again and that is where it fails because it tries to connect with different parameters
I get this(https://i.stack.imgur.com/PYcFr.png)](https://i.stack.imgur.com/PYcFr.png)
instead of (https://i.stack.imgur.com/0beik.png)](https://i.stack.imgur.com/0beik.png)
when I add the server I am able to brose the databases table and so on when try to open query window
it ask you to connect when was already connected.
the error is related that it try to connect like management studio that does not allow connection to PDW.
then I do have a different window see the pictures

Related

Cannot see Azure DB tables when using Visual Studio

I'm new to Azure and I'm trying to connect to our Azure DB using Visual Studio.
I can connect to the DB fine, but when I expand the DB I cannot see any DB Objects. See the image below. I've Googled the issue but cannot find where anyone has replicated this issue, so I accept I'm likely doing something wrong!
I can query the DB fine and it will return results.
To connect the visual studio to azure database and view the tables of database in visual studio follow the following steps:
Open your project in visual studio, Click on server explorer
Then click on SQL server Object explorer
Then click on Add SQL Server
Then expand Azure, click on your mail id and select subscription.
Then it will show all databases present in your subscription, select
your database I will fetch all information expect password, provide
your password and click on connect.
It will show all your databases tables from azure database
You can refer to this Document for more information: Work with Visual Studio to connect to SQL Databases in Azure.

This server version is not supported. Only servers up to Microsoft SQL Server 2012 are supported

I have SQL Server 2014, VS 2012 and VS 2013. Both VS are ultimate versions. I can not access SQL server from either VS.
Example:
Open VS. From Tools menu, select "Create Database". Enter SQL Server name, select a database (all the DBs are listed OK). Click on Test connection button. Connection is OK.
Now when I click the OK button, I get the following error.
Unable to add data connection. Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0, Culture=neutral....... The system cannot find the file specified.
From VS, Server Explorer, right click on Data Connections, "Create a new SQL Server database". Enter Server name, enter new database name. Error message appears:
This server version is not supported. Only servers up to Microsoft SQL Server 2012 are supported.
I will appreciate if anyone can help.
Thank you, Saleem
Please try this once:
Go to Sql Sever Configuration Manager
Then SQL Server Network Configuration -->Protocols for SQL Server
Then Named pipes --> Rc Properties
Copy the Pipe Name.
then go to Visual Studio--> Server Explorer-->Data Connection-->Rc Add Connection
Then Paste the Copied Pipe Name in Server name
Test the Connection.
That's it. I hope it is helpful.

Error in connection with SQL Server 2005 form Visual Studio 2008

I am using built-in SQL Server 2005 that comes along with Visual Studio 2008. But when I try to connect to this server with my project, I am getting error for connection at connection.open()
The error message is
CAN NOT OPEN DATABSE "FAS" REQUESTED BY LOGIN. THE LOGIN FAILED . THE
LOGIN FAILED FOR USER'ASEAN1\ADMINISTRATOR'.
I don't know what is the problem. Below is my connection string.
Data Source=asean1\SQLExpress;Trusted_Connection=True;Initial Catalog=Fas
If I write Integrated security=SSPI, then it shows that the key word is not supported. I tried to change authentication mode but don't get any idea how to change the authentication mode for default server that comes with Visual Studio 2008. I also don't know how to make users with this server.
Please guide me...
Such conditions occured when you run your program and if you encounter any error while dealing with database and you left your connection open... In such condition your project will keep track of such open connection and this could be a kind of bug with visual studio that even if you clean and build the project this will not close your connection...
To deal with such condition... you manually have to close the SQL connection by closing your service or you just restart it...
This could be one of the reason...

Visual Studio 2010 cannot find SQL Server 2008 R2

I installed SQL Server 2008 R2 and I already have Visual Studio 2010.
When I try to connect to the SQL Server there exists no server on my Add Connection while my database engine works properly.
Why is that so?
As far as I can tell, in Server Explorer, you need to click the "Connect to Database" toolbar icon (or right-click Data Connections and choose "Add Connection...").
From the Data source list, choose Microsoft SQL Server and then click Continue. The Add Connection dialog box displays so you can enter your server name (machinename\instancename). You can choose between Windows or SQL Server Authentication (depends on how you set it up, but Windows Authentication should work for a local installation).
Once you have entered a correct server name and credentials you'll get a list of databases to choose. Select one if you wish and click OK. That should get your server added to the list for Visual Studio 2010.
The issue is that is VS 2010, you need to type in your localhost instead of choosing the connection from the drop-down list. I hope this issue is resolved in the next releases.
I believe if from VB 2010 you go to Project >> Add New Item and choose the appropiate path for your server it should work.
You may also want to try Data >> Add New Data Source

Cannot connect to Sql Server database: non-system databases are not shown

I'm trying to connect to SQL Server 2008 express database from Visual Studio 2010 using data connection wizard. I choose new connection -> MS Sql Server then I choose the only available server name (PAVEL-PC\SQLEXPRESS). The problem is i cannot see my database in the combobox below. System databases (like master, model, msdb etc) are shown though.
I've managed to find similar questions (like this one: Cannot connect to SQL Server database in Visual Studio because my database isn't there) and it seems I'm having permission issues. However I cannot understand which user (and where) should I add.
The account name which I'm running my Visual Studio on is Pavel. My computer name is Pavel-PC. I'm not sure what my SQL Servers account names are, but it was installed using default settings.
Here is the answer to my question:
use "PAVEL-PC" instead of "PAVEL-PC\SQLEXPRESS"

Resources