Vimal_Rupera's Q&A profile
SQL Server SQLCMD Problem
Hi I am trying to use SQLCMD to backup databases located on multiple servers. I want to pass in the servername,location of the backup something like SQLCMD -i myscript.sql -v servername=server ,filename='d:\mssql\backup\test.bak' But i cant connect to the server using this method can anyone please help me Thanks Ok typo but i cant pass the server name to the script nor the database name. I want to do something like this script : server (will come from the command prompt) backup database $name to disk=$disk Then sqlcmd -S myserver -d pubs etc so basically accept servername,database and path and backup a database how can we set up s cript to do this ...Show All
Visual C# Cannot add FileSystemAccessRule when account type is a AD Group, works fine wiht AD Users
We have a web application that creates directories, and needs to set permissions on those directories. The setting of the permissions works fine for users, e.g. @"BRADJOSS\Brad", but I cannot for the life of me get it to work with any groups. Specifically, I would like to have the local machine administrators to always have full control. I have tried the following in the Domain value for the new NTAccount call: LOCAL BUILTIN Environment.MachineName.ToUpper() [Our Corporate Default Domain] The slice of code looks like: string User = "Administrators"; NTAccount theAccount = new NTAccount(User); if (theAccount.IsValidTargetType(typeof(IdentityReference)) == false){ ...Show All
Windows Forms How to make Invoice Form
By using VB.net How I can design Invoice form Belongs Customers Thanks and waiting your replay I am unsure what exactly you are asking, but from what I understand you wish to update the product qty The SQL command you have is incorrect in some areas. If the Quantity.Text is an actual textbox then the "SET @ValueToUpdate = Quantity.Text" command should be: "SET @ValueToUpdate = " & Quantity.Text. The same applies for the line "SET UnitsInStock = UnitsInStock-@ValueToUpdate". it should be "SET UnitsInStock = UnitsInStock-@ValueToUpdate WHERE ProductID = " & txtProductID.Text Apart from this I am not sure, the only way to find out is to give us any error me ...Show All
Visual Basic Inject information from a VB form into a Word Document
I have a form which requests information from a database and I want to inject that information into an existing MS Word document. I am really unsure about how to send that info to the Word Doc. This program is a Windows form and the user will have MS Word installed on their local machines. Thanks in advance for any input! To handle Word documents from your application, you'll need to reference Office PIAs or work with VSTO . Andrej ...Show All
Windows Forms Filling a strongly typed dataset
Guys, A simple problem I hope. I can fill a normal dataset without a problem. However, I now have a dataset which I created design time (hence the strongly typed dataset). I want to use a stored procedure within code to populate this strongly typed dataset can anyone provide an example hope so Cheers ...Show All
SQL Server Replication is renaming my Stored Procedures on Client only
I am new to replication but I have a question, I have my server which is using a transaction replication process and a client with using SQL Express with replication turned on. I have the identical DB on both nodes yet when I subsrcibe to the server from the client, data is transfer but for some reason, all of my stored procedures are renamed with sp_MSDel_DBOxxxx. How do I keep SQL from renaming these SP's The server maintains the origial names to the SPs its just happening on my client. Thanks My Server SP's are named properly, for example usp_AddActivityLog is the proper name of my custom SP. After replication occurs the name of the same SP on my client is now named sp_MSdel_dboActivityLog. ...Show All
Smart Device Development MediaPlayer 10 control and put_uiMode("none") broken
The put_uiMode("none") method of the MediaPlayer 10 control only seems to work on the latest build of WM 5.0 as seen in the Motorola Q emulator (am I to guess that it does not work on an actual Q which has an older build ). All other versions of WM seem to fail. The control panel continues to be displayed. Is there a workaround for this Also, the fullscreen mode does not work properly on a landscape orientation screen, it tries to display the video vertically. This would not be a problem if put_uiMode worked... Any help on this is very much appreciated. This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forum for this type of queries. http://forums. ...Show All
SQL Server Remark some task or data transformation component
How could I remark my script component, It is isolated, I just wanna check something without losing the long script written inside. Thanks, Fahad I hope you're doing something other than trimming fields in the script component. That is what the derived column transformation is for. However, just cut the script component and paste it into either a new, temporary data flow, or in a new package altogether. You can comment out the code, but then you'll probably have to adjust the input/output columns. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where do I find my Xbox 360's Connection Key?
Where can the Connection Key be found on my Xbox 360 to get it to connect with XNA Right now you cannot sell 360 XNA games. You can sell Windows XNA games. Q: Can I use the XNA Game Studio Express or XNA Framework to build a commercial Xbox 360 game A: XNA Game Studio Express will enable you to create Windows and now Xbox 360 console games much more easily. These games are limited to non-commercial scenarios for 360 titles created with XNA Game Studio Express. However, XNA Game Studio Express may be used to create commercial games which target Windows. We will be releasing XNA Game Studio Professional next year which will allow developers to create commercial games for Xbox addition to Windows. S ...Show All
.NET Development Setup Error When Installing .NET Framework 3.0 in Windows XP SP2.
I'm trying to install .NET Framework 3.0 on my computer with Windows XP SP2. When I go to install it is cut short because of a setup error, then it wants me to run a file called dotnetfx3setup.exe which does nothing for the install. Any help would be greatly appreciated. Please elaborate as much as possible. The error log states the following: [02/26/07,01:40:25] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603 [02/26/07,01:40:52] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed. [02/26/07,01:40:52] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed. [02/26/07,01:43:13] Win ...Show All
Visual Studio Team System Compare Rational Suite with VSTS
Is there any good documentation comparing Rational Suite to VSTS I need this for a management descision. Hi Jason, I give you some post in where can you read about this camparing. http://softwareeng.blogspot.com/2004/05/rational-vs-ms-team-system.html Bao! ...Show All
Visual C++ Source browser and intellisense dont work in a solution
If my solution only contains one project then the source browser and intellisense work fine. If my solution contains 2 or more project where one does depend on the other, then the intellisense and source browser are not functioning correctly. Is there a 'solution' to this or is it a known bug or limitation Thanks. Hello There is a question a week talking about the limitations of Intellisense and the steps to workaround it; please search the Forums before posting a question like this to avoid unnecessary duplication. Try looking at these threads for an answer to your question: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=87651&SiteI ...Show All
Visual Studio 2008 (Pre-release) databinding with a nullable value
Hi, I'm trying to bind a property to a combo box wich in the initial state has a nullable value. When I do so, the databinding doesn't work anymore, if I select a value in the combo box it doesn't refresh the property. At first I thought it was my code, but if in the initial state of the property the value is not null, it works fine. Is there a property for the combo box that I forgot The following scenario seems to work fine, cb1 is bound to list of objects one of them being null. when I set cb1.SelectedValue = null. it selects null Item in the coombobox. when I enter something in the textbox, correct Item is selected in the combobox < ComboBox SelectedValuePath = " Id " Display ...Show All
Visual Studio 2008 (Pre-release) Getting an Operation's Action from the OperationDescription
Is there an easy way to get an operation's SOAP Action when all you have is the OperationDescription representing the method Here's the scenario I'm looking at: I have a custom service behavior that injects a custom IDispatchMessageInspector into several of the endpoints of the service. That part works just fine. However, when I get to the AfterReceiveRequest() method, all I have in hand is the request message, from which all I know is the SOAP Action it contains, and what I really need is the name of the operation it maps to. I can get the System.ServiceModel.Description.ServiceDescription object directly in my service behavior and pass that to my message interceptor, and from there on I could easily get at the OperationDescription objec ...Show All
Visual Studio 2008 (Pre-release) Xbap and standalone applications in Vista.
I came across some errors while developing wpf applications in vista. So I have a couple of questions. I would appreciate anybody who makes an effort to go through them and answer. I have tried to document what I tried in some detail. Question 1 I created an xbap (formerly known as WBA) application using a standard template provided in VS 2005.Hit F5 to start application with debugging, so my xbap application launches within IE. This is the expected behaviour. Until this point everything looks good. Go to the bin\debug inside my project directory and double click on the xbap application there. I get an error message. Well this no the expected behaviour. "Application cannot be downloaded. Check for network connectivi ...Show All
