Thibaud's Q&A profile
SQL Server Scripting unattended install in a batch-file
Hi! I'm trying to do the following in a batch-file: 1) Install SQLExpress unattended providing settings in an .ini-file 2) Run an osql-command which creates a database and some tables etc. My batch-script looks like the following: REM Install SQLExpress start /wait .\SQLExpress\setup.exe /qb /settings %CD%\mysettings.ini osql -S (local)\MyExpress -U sa -P passwd -i .\createdb.sql ... The problem is that the SQLExpress setup updates the %PATH%, but the change is not visible in my cmd-context . So, the osql-command fails. It seems like I have to start a new cmd-window from the windows shell to get the updated environment. Is there any way to make the environment changes visible to my script This might be m ...Show All
Visual Studio Team System After import not verything is under source control.
Due to the errors I got from the "Internal inconsistency problem" I recreated the project. As my peer coder is not able to built the project, I saw that VS left some files out and did not put them under source control, bringing the errors at my peer that some objects are not available and therefore bringing up many validation error because of constraint relations etc. This seems to be imrpovable :-) -Jens. --- http://www.slqserver2005.de --- Hi Jens Do you know if there was anything unusual about those files that did not get added to source control. Do you have a consistent repro steps we could follow in order to check if this is reproing internally for us to address. Any help would be ...Show All
Windows Forms Forms in different dlls needs to communicate
hi, I am fairly new to Visual Studio (2005, c++) and I have a large application that needs to be ported to this plattform. Most of the application we need to rewrite from scratch (as it contains very bad code). But since this application is large, I need to devide it into several dlls (assemblies) and I also need to put forms in the dlls. I have tried to search the Internet for this, but I can't find out how the forms can communicate with eachother! Do you understand my problem Well, I have three dlls; A,B and C. In each dll I have one form AF, BF and CF. AF is a mdiparent and BF and CF are childs. This works and I can show them and operate with them, but I cant get BF and CF to send data to eachother. I tried to u ...Show All
.NET Development Bitmap.Save 'A generic error occurred in GDI+'
Hello All, I was just going to play around by generating some bitmaps programatically. I started off with this simple example, expecting everything to go smoothly, but have run into a strange error. The following code is by no means good, just something simple and complete I would expect to work: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace BitmapOutput { public partial class Form1 : Form { /// <summary> /// The picture i am drawing /// </summary> System.Drawing.Bitmap myBitmap; /// <summary> /// Graphics object for drawing /// </summary&g ...Show All
SharePoint Products and Technologies Accessing SharePoint Server from a client computer with a windows application
Hi, I'm trying to develop a small windows application for administering a sharepoint server. When I try to connect to the server via SPSite site = new SPSite (" http://server/ " ); I get an error, that the web application doesn't exist. I can do this fine on the server itself. Is there a way to allow such client applications access the sharepoint server Some security setting Thanks in advance. ...Show All
SQL Server How to create report parameter programmatically?
Hi, I'm working on custom report manager. It manages "report entities" and "report templates" (actually, RDLs uploaded on the server) and stores one-to-many relation between them. The task is to store "MasterEntityID" report parameter in every RDL and keep it up in actual state whether RDL is being assigned to another entity or new RDL is being uploaded and assigned. I've covered the first issue with SetReportParameters() web method, but how should I deal with the second one Uploaded RDL may be short of the param, so I have to add it programmatically while uploading. Thanks, Anatoly Yes, but actually I'm interested in adding new report parameter via we ...Show All
Visual Studio 2008 (Pre-release) HorizontalAlignment on DataTemplate in GridView (bug?)
We have a ListView with a GridView, witch has a DataTemplate on the columns. The DataTemplate consist of a border with a TextBox. In May CTP the HorizontalAlignment=Stretch on the Border and TextBox worked fine, but this doesn’t seem to be the case in June CTP Best regards, Thomas Andersen Hehe, thanks. Didn't think of that dirty workaround. I would however classify it as a bug. It worked fine in May CTP (I haven't tested July CTP though). I'll use the workaround for the time being, thanks. Best regards, Thomas Andersen ...Show All
Visual Studio Express Editions Help with time
I want to be able to display the average number of hands palyed (BlackJack Game) per hour and the average profit made per hour. But im struggling with the coding for this. Can anyone help me with the coding the varibles I have are Sessionstart as date Gamesplayed as integer Sessionprofit as single not 100% sure how you are wanting to go about this, but my advice would be to set Sessionstart As Integer = 0 Then every hour (or minute if you want a more accurate number) Sessionstart = Sessionstart + 1 The when you need to find the averages: Dim AverageHands = Gamesplayed / Sessionstart Dim AverageProfit = Sessionprofit / Sessionstart ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem accessing the pixels of a texture
Hello! I'm currently writing a bitmap font renderer and for that I need to access the individual pixels of a texture that contains all the characters that make up the font so I can calculate the kerning values. I've got this working, but I'm having some issues with accessing the pixels. My texture is a 170x170 pixel DDS file (the issue is reproducable with a TGA as well) which I have loaded into memory. I create it like this: D3DXCreateTextureFromFileInMemoryEx(lpDevice, pResource->pData, pResource->ulSize, D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0xFFFF00FF, &d3dImageInfo, NULL, &pTexture); If I load my texture as described above, then lock it and loop over its width and ...Show All
SharePoint Products and Technologies Apply changes after editing web part properties.
What event do I trap to notify my web part of updated custom properties TIA Dave OK, looks like it hits the property accessors automatically. The other way looks like overriding the GetToolParts() method and inheriting from the "Microsoft.SharePoint.WebPartPages.ToolPart" class for your own customtoolpart. You can then override the ApplyChanges() and SyncChanges() methods. Dave ...Show All
SQL Server Calculated member with measure and dimension
Hi, We have a little problem with our calculated member... in our table we have the total amount of a sale in 2 different currencies (US and CAN). In another field we have the currency (1 being can, 2 being US) Now I need to create a measure that will give me all the amount in CAN money and one in US money (depending on how users want to view the cube) but it's not working since my Exchange rate is not a measure and the type of currency isn't either, so the system isn't entering in my case. I tried to do something like this : case [Probill General].[Payeur Fund type] when 1 then ([Measures].[Probill Total] * [Probill General].[Us Exch Rate]) when 2 then ([Measures].[Probill Total]) end But it ...Show All
SQL Server Overloading add/subtract operators for CLR UDT
Hi, I have an implementation of the UDT - 3-dimentional vector. In my code I have implemented add, subtract and multiply methods for the type. I have also implemented overloaded operators for +/-/* in my C# code. Those overloaded operator are working as expected in C# tests. However when I’m trying to use +/-/* operators in T-SQL over my UDT it returns the following error: Invalid operator for data type. Operator equals add, type equals Vector. The following fragment does work: DECLARE @v1 Vector, @v2 Vector, @v3 Vector; SELECT @v1 = CAST ( '1,1,1' as Vector), @v2 = CAST ( '2,2,2' as Vector) SELECT @v1 'v1' , @v2 'v2' , @v1.[Add](@v2) 'v1 + v2' And this fragment does not work: DECLARE @v1 Ve ...Show All
.NET Development Different assembly version
Hello, I'm developing a solution which is divided into several small projects.I mean, I have designed some forms in discret .dll's..When the form is going to be loadded, the dll in which the form exists is loaded but there's a problem. What if the version of the .dll to be loaded is newer then the version of the .exe It gives error while loading the .dll at that time. It's possible to load different versioned modules Thanks in advance. No, there's no need for the EXE and the DLL to share the same version. If the DLL has a strong name, you have to use a <bindingRedirect> element in the application config file (or use publisher policy if it's deployed in the GAC) to ensure the new version is loaded. ...Show All
SQL Server MDX: Reference ROOT when subcube is used (database totals)
I am trying to create a calculated member that returns the database (not visual) total of a measure. CREATE MEMBER CURRENTCUBE.Measures.Test AS ([Measures].[Purchase Value], ROOT([Supplier]) Now, this works in the following query SELECT [Measures].[Test] ON 0, [Supplier].[Supplier].[Supplier].Members ON 1 FROM Analysis WHERE [Supplier].[Supplier Group].&[3434] But when the query is executed using a subcube: SELECT [Measures].[Test] ON 0, [Supplier].[Supplier].[Supplier].Members ON 1 FROM (SELECT [Supplier].[Supplier Group].&[3434] ON 0 FROM Analysis) .... Analysis Services applies VisualTotals and my calculated member is the result of the total for the supplier group specified in the subcube stateme ...Show All
Visual Studio Team System Import CheckinNote definition?
I'm wondering if I can import the definition of the checkin note fields into an existing project I think they're in VersionControl.xml. I'd like to be able to add users to a dropdown list in the Code Reviewer field. I think I could do that by changing the process template but I'd like to be able to do it for an existing project. Thanks, Richard Richard, I'm afraid that suggested values for check-in notes is not a feature in Version 1.0 - you can only define a set of fields and if a value for that field is required. Regards, Martin. ...Show All
