I am trying to export a the results of a SQL query into Excel. I found this YouTube video that shows how to achieve this (https://www.youtube.com/watch?v=xCyZNY0isUM).
Following these instructions, I right click on my database, go to Tasks > Export. The wizard launches. I pass the initial page, and I get to the "Choose a data Source". I leave the default (.Net Framework Data Provider for Odbc) and click "Next". Here, I get this error message:
connection string property has not been initialized (System.Data).
Thank you for your help.
Change the source from the default to "SQL Native Client" which relies on Windows Authentication.
Actually I had the same error but I changed the Choose Destination to native option (the last one) instead of doing "Choose Source" and apparently it worked.
Related
I've done enough research to insert Hyperlinks into SSRS Data fields but so far no luck on trying to insert a url protocol to open up a third party application.
I'm doing the steps below to add an action to insert the hyperlink using VS2012.
1.In the Properties dialog box, click Action.
2.Select Go to URL. An additional section appears in the dialog box for this option.
3.In Select URL is where i input my code below: but it doesn't work
="sp-select://./ordertracking/order?id=" &Fields!guid.Value
,it obviously looks for http:// ftp://, https://, and file:// and
nothing else so it doesn't work.
How would I be able to get around this issue? sp-select:// is the protocol I need to use to open up the third party application. I've tried using javascript to get around it but still no luck.
Thanks in advance!
Since SSRS protocol for URL action is limited, you can create another column in the SQL select statment like this and point to it from the URL expression.
'sp-select://./ordertracking/order?id=' + cast(oi.guid as nvarchar (80)) as 'column'
it will then ignore the protocols to be used and still launch the address of the text of this field.
I have a strange situation. IT installed SSMS on my laptop and it runs well the first time, connected to my SQL servers remotely etc. But then it's frozen. I forced quit and then started SSMS again. Now it's totally frozen, no popup window at all to enter the server-connection text string. Then I did a force quit and got a pop up window (see it here ).
Microsoft SQL Server Management Studio has detected that an operation is blocking user input. This can be caused by an active modal dialog or a task that needs to block user interaction. Would you like to shut down anyway?
Has anyone seen this before? My IT department has no clue.
Often this is due to the new connection dialog being off screen (usually due to changing monitor setup e.g. 1 to 2 monitors or resolution change etc).
If so the really easy fix (if your connection dialog just needed approval without changing fields) is :
Focus on SSMS and Hit Enter/Return
..or the easy fix (if above does not work - as your last connection is not ready to go) is:
Alt Tab to SSMS
Alt + Space - context menu
M - select Move (in offscreen context menu)
Arrow Key(s) - to move it back onto screen
As per answers here from #Eirik Toft and here from #Lee Chetwynd
Fixed an issue which presented the same on my machine today by renaming a entry in my registry:
After some digging there seems to be multiple issues that can produce the same error (Application, settings, registry). This blog entry covers it pretty well:
http://www.armedia.com/blog/2012/08/sql-server-management-studio-freeze/
In my case deleteing the SQL server management studio folder under AppData ( c:\users\%userName%Appdata\raoming\microsoft\ ) didn't work.
However I was successfully after deleting / renaming the regisitry entry:
[HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server]
(update)
Worked out the underlying issue on my laptop - was using additional 2 screens with much higher resolutions which caused windows / SSMS to open up the connect to new data source dialog off all of them. If your using multiple screens try returning to just use the native laptop screen to see if you can find the dialog that SSMS is waiting on your input for.
I just had this same situation, with two additional screens connected to my laptop. SQL Server Management Studio was opened on the third screen, with the modal dialog nowhere to be seen.
Two options:
Press tab three times and enter. This cancels the dialog. Now you can move the window to another screen.
Set Windows to only use one or two screens. SSMS opens on the first and should still open there when you move back to using three screens.
When SSMS is on your primary or secondary screen, the modal dialog opens on the first and should be usable.
It was because multi screen display. Turning off multiscreen to single one resolved it. Reenabled multi screen display after ssms started working
In my case, "Run as Administrator" option worked like charm. I was accessing my server screen with the windows RDP. And when I open SQL Server Management Studio and Visual Studio 2010 user hangs at the moment and wont operate unless sign off r disconnected by administrator.
But when I set compatibility mode of both the application to the "run as Administrator", it starts working fine.
the problem also occurs if you have a touch screen. I fixed this by disabling the local thouch screen when I switch to RDP.
i am using visual studio 2010 ultimate.i have problem to using sql server in VS 2010.i find server explorer in this but i do not know how to create a new connection and what are its authentications.how to create a new data base in server explorer.what is the name of server and authentication for it.please explain?
To connect to a database from Server Explorer
From the View menu, choose Server Explorer.
In Server Explorer right-click Data Connections and choose Add
Connection.
If this is the first connection you make, the Choose Data Source
dialog box appears. Under Data Source choose the kind of data source
to which you are connecting, and then under Data Provider choose the
appropriate provider for the application you are working with.
Finally click Continue.
In the Add Connection dialog box, enter the requested
information.
This information is different for each provider. For more
help on this tab, click the Help icon at the top of the dialog box or
press F1 with the dialog box selected.
Choose the Advanced button to open a list of settings you can change
for the selected provider.
Choose Test Connection to check the connection without closing the
dialog box. This way you can make adjustments to the settings if the
connection does not succeed.
Click OK.
Your connection appears in Server Explorer under the Data Connections node.
I'm attempting to move from netbeans to phpstorm and I'm running into an issue with the Database console. I got used to being able to have multiple tabs open for one DB connection. Is there any way to duplicate this behavior? I don't see an option to open a new console and I can't find anything in the advanced properties of the DB connection listed in the DB panel.
I tried installing the Database Navigator plugin, but it seems to duplicate a lot of functionality. I like the built in one better, but neither seem to support multiple tabs.
Does anyone have any ideas? It seems like this should be a fairly common use-case.
I'm on the trial version 6.0.3 and am using the bundled Database Support Plugin.
I don't think it is possible with the built in database support.
Update: PhpStorm 9 built in database manager is now able to open multiple consoles for a given connection. Right click on the connection / New / Console.
Using the Database Navigator plugin however you can have multiple consoles open for a single connection. First open up a SQL console, then at the top bar close to the Execute Statement button there is a settings dropdown. Open that up and at the bottom of that list you will find Create Console.
I am taking a class and our instructor gave us a file to download called cs.bak and its supposed to be formatted for the version of SQL we are using. So I downloaded the one for Microsoft SQL Server.
Well I tried to do the restore but when I get to the part that I choose device and locate the file cs.bak it loads and now I am suppose to be able to choose destination. Well after I choose destination I do not have the OK button to go through with the restore.
On these instructions http://www.katieandemil.com/sql-server-2012-restore-database-backup-file
If you count the window screens. I can only get as far as the 6th screen.
I am suppose to do this, "Some questions will ask you to write out query results from a database. In order to answer these questions you will need to have the example database available to you."
Well I can't open it to do this. Any help would appreciated. Thank you.
Check this:
This checkbox might be unchecked - and then the [OK] button remains disabled...
This seems to be a Windows Layout issue. To resolve this, reset the SSMS Window Layout by selecting from the main menu Window -> Reset Windows Layout.