how to create DB in visual studio 2010 ultimate - sql

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.

Related

Smart card reader not dedected - PCSC Error - 0x8010002e

My system was working fine but now my any application is not detecting the smart card reader ( SCM Microsystem) attached in the system while it is displaying in device manager.
Here I tried to get the exact error with trying C++ code (winscard.h) to connect the reader,
reader_status = SCardListReadersA(hContext, NULL,(LPSTR) &szReaders, &dwReadersSz);
and here it is giving error - 0x8010002e
Is there any advice here
It seems it was happening because of wrong registry values.I thought to share my work for other one. What I tried is :-
Right-click on the key HKLM\SOFTWARE\Microsoft\Cryptography\Calais and select Permissions...
Click Add.
Click Advanced.
Click Locations.
Click on the computername and click OK.
In the window 'Select user or groups', click on Find now.
Select LOCAL SERVICE.
Click OK.
In the window 'Select user or groups', click on OK.
In the window 'Permissions for Calais', click on LOCAL SERVICE and make sure 'Full control' , 'Read' and 'special permissions' is allowed.
restart the system and it worked.
found solution here

new user/login GUI missing in SSMS 2017

I'm new to azure and I've created a new SQL DB and I want to create a read-only user for my DB (so I can use it in my web app) but when I go to create a new login/user (right click security folder > select new login/user) I get a query tab instead of the GUI that I see in all the examples for creating a user. Did MS do away with the new user/login GUI or are there some settings that are not on that control whether or not that GUI screen shows?

Infopath Logic Inspector is blank

The Infopath Logic Inspector does not show any information, running either infopath 2010 (on prem Enterprise) or infopath 2013 (sharepoint online) from windows 7. This is a recent occurrence.
This is the case for existing as well as new forms.
See attached - this is a new form with a rule but the Logic Inspector pane is blank.
It occurs on many machines.
It may be related to Microsoft Updates - here's a report linking it with a changed icon in the date picker and KB3192391.
http://www.infopathdev.com/forums/p/31763/108261.aspx
The date picker is not a problem, but the blank Logic Inspector certainly is.
Go to:
Internet Options -> Security -> Trusted Site
Add:
about:internet
You may need to uncheck require server verification for https.
Source: http://www.infopathdev.com/forums/t/31763.aspx?PageIndex=2

SSMS SQL SERVER Management Studio 2012 startup freeze

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.

Why is my database not showing up?

Actually in the sql server management studio when I click the database,nothing comes up(+ sign beside the database name is not listing any items) and none of the logins are getting connected.nothing is logged in the error log(except that the login cannot connect to the database).After sometime,automatically the database comes up without doing anything(that is the + sign comes up and all the listing in the management stidio comes up.plz suggest me what will be the reason for this
Try to refresh the SSMS windows by pressing F5. Put focus on "Databases" in the Object Explorer before refresh.
/niels