I am creating a silverlight 4 project (with web site). When I try to add a data source to the project, I dont see database option in the list of options. There are only "service", "object" and "sharepoint" options. But there is no "database" option there. So I am not able to bind to database at design time.
I want to know what is the reason and why it is like that, is something not installed or any configuration mistake?
Can somebody pls tell me.
I am using Visual studio 2010 Professional.
Thanks
Related
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
I have created a functioning LightSwitch (Visual studio 2012 Pro) application...
Now it's time to publish! The only problem is that I can't seem to figure out how to change the schema name to something other than dbo.
That is, I don't want the output tables to be dbo.XXXX, I want them to be my_schema.XXXX instead.
Also, note that the database is on SQL Server 2005.
Does anyone have suggestions on how to achieve this?
Thanks!
Update: Sorry for not being specific. I don't want to change the schema for existing tables in my database. I want my LightSwitch application to use the new schema. I don't mind publishing it and then modifying the schema on the tables, if I can then somehow also modify the LightSwitch application to use the new schema. But ideally, there would be a way to tell LightSwitch to use a different schema when it publishes.
For those who don't know what LightSwitch is, it is a Microsoft .Net Rapid Application Development tool for SilverLight business applications, and is built into Visual Studio 2012. My application is written in VB.Net
You can't change the schema name for an intrinsic database (the database that is created with LightSwitch). Maybe you'll be able to in V3, but you can't currently do it in V1 or V2. To achieve this, you'll have to create the database in something like SSMS (SQL Server Management Studio, then attach to it as an external data source.
Seeing as you've already done all the creating in LightSwitch, you could publish it as is, then attach to it as I mentioned above. I hope you don't have screens created, because unless you want to manually edit all of the lsml, you won't be able to use the attached database in any already created screens.
Any time you need to do something "out of the ordinary" with LightSwitch's database, you need to create it outside of LightSwitch, then attach to it. Why? LightSwitch was originally created with the idea in mind that the users didn't need to know anything about SQL Server.
I'm new here and more than beginner in coding. I want, as an "on the side" project, create a tool coded in VB for the helpdesk team. I would like to type the computer ID in a text field and have several buttons below that performs windows command like ping, getmac, wmic, etc etc..
How is it possible to load or to integrate a windows prompt or even to as VB to call the dll to perform those windows commands. Is there a built-in tool in Visual Studio 12 that does that? I thought that it was the "Console" argument that could do this but I'm just way too n00b in coding to have it working.
Any help would be greatly appreciated!
For creating forms read this MSDN article: http://msdn.microsoft.com/en-us/library/vstudio/dd492132.aspx
For executing processes use Process.Start.
If you need to read process output, see Process.start: how to get the output?
A good tutorial to start with : http://www.dotnetperls.com/process-start-vbnet
I have some event handlers which are tracking list items in my SharePoint lists. I would like to Audit the use of these in an external database (SQL 2005) outside of SharePoint.
What is the best practice for doing something like this? I can't find many examples of this being done but it seems like it would be something that is done frequently. Would love to get pointed in the right direction on this one!
Normally to get a DB connection in a .net app, I'd create a connectionString in the web.config. Should I be modifying the web.config for the web application that the code will run on?
It would be handy to be able to use LINQToSQL for my DB inserts/updates - is this possible from within SharePoint code?
Thanks
I am not sure I understand your auditing question fully to comment on it.... There is built in auditing functionality that you can utilize if it meets your requirements. Ted Pattison discussed this in an Office Space column a while back.
In regards to you other questions...
You can put a connection string in your web.config, we do this often. There can be concerns in SharePoint manually updating the web.config due to the fact you can have multiple servers in a farm and you don't want the web.config to get out of sync. SharePoint has a SPWebModificationClass you can to automatically update the web.config. I have run into issues with this using FBA (see this SO question).
You can use LINQtoSQL for your database access. However, if you are using SP 2007 instead of SP 2010, you will need to update your web.config to reference all of the proper DLLs. You can what references are required by looking at an ASP.NET 3.5 web.config and comparing it to SharePoints. I am sure there are links on how to do this also.
Hope that helps get you started
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.