I am working on 5 different development projects.
Each of them have a C# solution, and a different database to connect to.
Each C# solution has a desktop shortcut, pointing to the right / different sources.
I would like to have something like that for the databases.
So when I click a shortcut on my desktop, each of those 5 shortcuts would open a different database, and maybe ask for my credentials. (I wouldn't mind if they didn't)
I am not even sure what exactly should I search for, is the "Solution" the same as in Visual Studio, and I can use the ssms solution, or there is something else I need to use?
I am using 2008 R2.
Thanks
With some help, I was able to figure out how to make this work.
I tested it, and it looks fine, I love it !
Pic 1: see the parameters, the ssms.exe can get
Pic 2: see my shortcut on the desktop, and in the "Target" field, see my parameters
Related
I'm using Visual Studio 2012 for development. I really like using the SQL Server Object Explorer to work on database related tasks (queries, schema changes etc.). The issue is, every time I reload the IDE, I have to connect to the databases I work with. Is there a way to persist the list of databases like I can with the Server Explorer tab?
When you say you can't replicate, how long have you been using the explorer for to attempt to replicate it? It only loses the connections every now and then, so in fact right now I can't replicate it either, but over the next few days I'm sure they will get reset again!
It seems that there is something wrong with your VS IDE
It seems that this is a little bit unlikely as the same thing happened to me when I was running in VS 2012 beta running on Win 8 Release Preview too.
However I will try your suggestions and i'll see what happens, just to clarify are you saying that I run those commands once and then after that use VS as usual or are you saying that I try running in safe mode all the time?
Is reset settings same as the Import and Export settings->Reset All Settings menu item? (By the way I run with general development settings)
Anyone know where these connection settings are actually stored (registry, folder ...)?
Open VS. DonĀ“t open any project or solution.
Add your databases in the Server Explorer.
Then File -> Save All
Trying to edit an SSIS package, when I go to the advanced editor on the update database package I can only see on the component properties page three properties. ID, Name and Description.
when my colleague opens this up he can see 20+ options including the SQL option I am needing to be able to edit.
Is this an issue with my SQL Business intelligence studio 2005? or an issue with access to the end database?
Many thanks,
Pierce
I'm guessing that you don't have something installed quite right. I'm betting you have Visual Studio installed, but not SQL Server development tools. First thing I'd probably do is verify that Help, About shows the same app information on both yours and your colleague's boxes.
-
so versions look good, BIDS is installed. Security? Easiest way to check that out is to have your colleague log onto your box using their network id. Not only will that check security, along they way, if there is something funky in your setup ( funky as in different from theirs not wrong ), your colleague is must more likely to spot it. AFTER that works out ok, THEN I might hazzard uninstalling and reinstalling Visual Studio. I don't believe I would mess with uninstalling and reinstalling anything .Net.
I cannot use the Ctrl+F and Ctrl+H in my SQL Management studio. Even if I use the menu items it doesn't work. Haven't installed anything new or changed anything recently. Any ideas?
Have you recently used multi-monitor? Is it possible that it is opening off-screen? I get this problem a lot when disconnecting my laptop from an external monitor...
(edit) There is a Window -> Reset Window Layout menu option in SSMS 2008, that should fix it.
Perfect! multi-monitor causes this.. Just minimize VS. Put to the other monitor.
You'll see opened window when you Ctrl+F
Irina
I currently have this issue also, I am using two monitors but this appears not to be the cause. I say this as the instance of management studio that I have open has two queries - both are connected to the same Server and Instance. On one query, Ctrl+F works fine, on the other query it won't work at all.
I think this is in some way related to debugging - the query which does not allow Ctrl+F currently I mistakenly debugged (as opposed to running) and after this the find/find replace functionality does not work!
Does anyone have any experience of developing external tools for SSMS 2005.
Ideally I would like to be able to interact with the query windows directly, for example, taking the query text from the window to perform some processing on it.
Any pointers in the right direction would be great.
Thanks in advance
Very late entry...
Example of how to do it here
And here too
Have you looked at Sql Server Management Objects (SMO)?
http://msdn.microsoft.com/en-us/library/ms162557.aspx
The best example of this I have seen for SSMS is SQL Prompt by Red Gate
SQL Prompt runs a seperate .NET app that sits in your systray and is in some way part of the magic of the integration.
For loading an add-in, you will want to create a key under:
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\Shell\AddIns\
...in order to have SSMS load your add-in.
Hope this helps
This link explains adding external tools to ssms with screen shots.
It also has procedure to add them as a button.
http://sqlserverlearner.com/2011/sql-server-external-tools
Would you recommend me the best approach to edit SQL query with Visual Studio 2008 Professional, please?
I know I can open Query window from context menu in Server Explorer and edit text in SQL Pane. But unfortunately I am not allowed to save query to a file and Find and Replace commands are not working there.
Alternatively I can open text file with extension .SQL in Visual Studio editor obtaining syntax highlighting and full editing capabilities but losing possibility to execute the script.
Now I copy query text from one window to another and back but I hope there is better solution.
Many thanks for suggestions!
When I have to connect to Sql Server, I use NetBeans, as it has a number of features that make it much easier to use than Visual Studio. One of these is intellisense, which is very useful when you have an alias for a table name and lots of long field names. The general handling of connections and connection pools is also much cleaner in NetBeans. I could go on, but suggest trying it for yourself. You will almost certainly need the Sql Server jdbc driver, which can be downloaded from http://msdn.microsoft.com/en-us/data/aa937724.aspx
If you create a Database project within your solution in Visual Studio, then you can set up a default database connection for that project. Then any *.sql files that are included in the database project can be executed against that connection. What I usually do is select the text to be exectued and right-click it, then select "Run Selection".
You can set up any number of database connections under the "Database References" node in the solution explorer, and choose the one you want to run your query against.
Wow you are right, this is a real pain. Would it be acceptable for you to use a local copy of the SQL Management Studio (the name might be wrong)? You would be outside of VS but you could still edit your query and run it at the same time. Definitely not optimal but better than nothing.
Good luck.