Atul Bahl's Q&A profile
Visual Studio Team System Team Foudation Server Scheduled Backup + Disaster Recovery Scenarios
Hi, We have Team Foundation Server installed in our premises. We arranged with all the people working on TFS to make sure that their connection to TFS is closed before they leave work, so that to enable our SQL Server Full Backup Schedule to work correctly at around 03:00 AM. Our questions are: 1. Do we have to back up the Reporting Services Encryption Key every night as well Or we do that only once in a life time 2. Is there anything else to backing up TFS - in order to gurantee successfull recovery in the case of a hardware crash - other than backing up TFS databases and RPT Service Enc. Key 3. Can we still reuse the files that exist in users' worksapces in the case of a TFS crash I mean after we recover/restore TFS , ...Show All
Visual C# DataGridView_CellFormatting - Formatting dates cells in column dates
Hello, I currently have a grid that I want to check the date entered is valid and format it into a short date time. This seems to work OK except that the even keeps firing and wont allow the user to re-enter the value in the cell if incorrect. Any suggestions (code below) Thanks private void CommissionDataGridView_CellFormatting( object sender, DataGridViewCellFormattingEventArgs e) { DataGridView dataGridView = (sender as DataGridView ); // Validates that the effective date entered if (dataGridView.Columns[e.ColumnIndex].Tag.ToString() == "EffectiveDate" ) { if (e != null ) { if (e.Value != null ) { try { e.Value = DateTime .Parse(e.Value.ToString( ...Show All
SQL Server Infinite Loop in cursor
Hi I have an infinite loop in a trigger I and I cant reslove it. In my system the user updates a stock table from the GUI and on the update I need to check values to see if I need to add records to a StockHistory table. For Example: If the user changes the grade of Product X from A to B then I need to add a new line in StockHistory for product X grade A that decrements the total number of products in the warehouse. Similary I need to increase the quantity of stock for Product X grade B. I had the trigger working for single updates but now when stock is added to the database (from another db) it has status of 'New'. This isn't actually 'in stock' until the user sets the status to 'Goods In'. This proces ...Show All
Visual Studio Building error: Type or namespace name 'Reporting' does not exist in the namespace 'Microsoft'
Hi! I get the following error when trying to build my project: " Error 2: The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) " I use VS 2005 Pro and I have installed (and re-installed) the ReportViewer package found in "Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer". I have checked that the web.config file contains the http-handler: <httpHandlers> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXXX" validate="true" /> & ...Show All
Visual C++ More fun circular dependency trouble
Alright, so, I'm trying to make a structure kind of like the .Net framework where everything is based on type Object and Object has a few basic methods, including ToString(). My problem is that ToString() returns a String object and the String class derives the Object class. Is there any way at all to do this in C++ I'm not sure that this is a very good example for what the OP is trying to achieve. Maybe, it's because I've had the fun of working on a compiler FE -- and specifically the symbol table -- supporting both C & C++, but elaborated type specifiers introducing new types should really be avoided, at least outside of typedefs. public: virtual class MyString ToString() = 0; // pure virtual wi ...Show All
Visual C++ .NET Form App + Link Errors
I have a .NET Forms Application and I am getting link errors. I am linking to some static librarys that work fine when linked to with Win32 apps. I have commented out the majority of the code an I am down to these errors . LINK : error LNK2020: unresolved token (0A000011) atlTraceException LINK : error LNK2020: unresolved token (0A000012) s_trace@CTrace@ATL@@2V12@A Can anyone advise on how to eliminate these Thanks, Michael Ok. When I do this I get like 1711 errors. Some are on this order AssemblyInfo.obj : error LNK2001: unresolved external symbol "int __stdcall GetVersionExW(struct _OSVERSIONINFOW *)" ( GetVersionExW@@$$J14YGHPAU_OSVERSIONINFOW@@@Z) main. ...Show All
SQL Server question about job names
When I create a 'simple' transactional push replication 3 jobs are created. As far as I know from studing books online I can either let SQL Server generate the jobs, and SQL Server determine the jobname (which is different with every time I let generate them), or I can create the jobs manually and use that jobs when I create publication and subscription. What I like is that SQL Server generate the jobs with a name I define. Why is this not supported Or do I miss something Regards Wolfgang Kunk Thanks for your feedback, I'll file a bug and see if we can get something for a future Yukon service pack, if not for next release. We do have some public procs that do as you want, but unfortunately they're n ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2d resets with nuclex fonts?
I've done the resets from Shawn Hargreaves blog and it's worked in the past, but since i moved over to the nucles font engine these dont work(even in a minimalistic demo setup). The model(s) are still skewed.... anyone have a workaround adding the line at the beginning of my draw function doesnt work. is there a reset im missing im using a console(like the quake-based games have) and it uses nuclex fonts too so i need something that can be used globally to fix the drawing then too... am i basically screwed ...Show All
Windows Forms Loading Image (Visual C# 2005)
Hey, I after these lines of code what should I put to make it load the image into a PictureBox openFileDialog1.DefaultExt = "*.gif" ; openFileDialog1.Filter = "Gif Images (*.gif)|*.gif|JPG Images (*.jpg)|*.jpg|TIF Images (*.tif), (*.tiff)|*.tif|PNG Images (*.png)|*.png|BMP Images (*.bmp)|*.bmp" ; openFileDialog1.InitialDirectory = "MyDocuments" ; openFileDialog1.CheckFileExists = true ; openFileDialog1.CheckPathExists = true ; Thanks :) o..k..no I have not...so...I would just do the same thing...but...ummm...so I just go: all the iamgebox. stuff.save(string, imageformat); that kinda way Thanks :) ...Show All
Visual Studio Express Editions Is it possible to compile .CP?
I am converting about some old CodeWarrior projects to Visual Express. For whatever reason, using a .cp extension for c++ files was the custom with Codewarror way back when. Is there any way to get Visual Express to recognize them as a .cpp file I don't want to have to rename everything and reorganize on the Mac side too. Thanks in Advance, Mark Yes it should be entirely possible, assuming that the files do not use code warrior specific extensions. Just add the files manually to a project and you should be set to go. ...Show All
Visual Basic VB .Net Express ? (not VB 2005)
Is there or was there an express version of VB .Net (2003) available for download. My work PC is stuck at XP SP1 and VB 2005 requires SP2. Stuck That's odd: as a developer, I'm sure you could download SP2. But to answer your question, no. ...Show All
Visual C++ operator[](ptrdiff_t) and operator T* : ambiguity
Hi All, I have the following simple code: class MyClassOne { }; template < typename _Ty> class MyClassTwo { public : operator MyClassOne* (); operator const _Ty* const (); _Ty& operator []( const ptrdiff_t index); }; int _tmain( int argc, _TCHAR* argv[]) { MyClassTwo< long > instance; instance[0] = 123; // example #1. will compile fine instance[0L] = 123; // example #2. will give the following C2666 error: /* Error 1 error C2666: 'MyClassTwo<_Ty>::operator []' : 3 overloads have similar conversions <skipped> test.cpp 22 */ return 0; } I am aware of the problem with ambiguity of overloading of T* and [] operators in C++ standard: that's why they introduced ptrdiff_t parameters fo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. need help getting started
a couple questions before i start asking for help 1. are there any videos on youtube, i seen videos on the homepage 2. i know this will take alot of patients and time learning.. i am wanting to make a online wrestling gaming promotion, so would it be possible to use XNA to develope the game then be able to play it on xbox note that i have no experience in game developement, however i am a expert in gfx design and drawing would i be able to bring my drawings and gfx to life and put them on the game i develope also in this thread please tell me every program i need to develope a game, i need a software that programs them, and i want to apply gfx, i originaly use this program called endorphin which you can make full scenes but ...Show All
SQL Server Data contained in a CDATA Section in XML is lost
I know that anything in a CDATA section will be ignored by an XML parser. Does that hold true for the SSIS XML Source I am trying to import a large quantity of movie information and all of the reviews, synopsis, etc are contained in CDATA. example: <synopsis size="100"><![CDATA[Four vignettes feature thugs in a pool hall, a tormented ex-con, a cop and a gangster.]]></synopsis> Sounds like a good one, no The record gets inserted into the database however it contains a NULL in the field for the synopsis text. I would imagine that the reason for this would fall at the feet of CDATA's nature and that SSIS is ignoring it. Any thoughts would be appreciated. Thanks. Yes, this is a k ...Show All
Visual Studio Team System Get load test run name in coded test?
Is there a way to get the name of the current run of a load test within a coded test <user name>@<computerName> <date/time> Lewis, I don't believe it's possible to anticipate the name of the trx file during the loadtest execution. As a side note, why would you want to There really isn't anything that you can do to the file. --Mike ...Show All
