Steveinbeloit's Q&A profile
SQL Server NS Data
Where is the NS Data being stored, in the ADF it defines tables and queries and such but does not declare a place to put them (a specific DB rather than just a server) Also, how can you create subsriptions/subscribers through T-SQL thanks in advanced Hi Geoff - See if these blog postings help... http://sqlns.blogspot.com/2006/01/using-existing-database-for-our-sqlns.html http://sqlns.blogspot.com/2005/10/creating-subscribers-in-2005.html HTH... Joe ...Show All
Visual C++ A code which shows the coordinates were i click on the window doesnt work
Hi, i have write this code for a win32 application to show a message box with the coordinates where i clik on the window. but nothing happens... case WM_LBUTTONDOWN: { int lParam; int x = LOWORD(lParam); int y = HIWORD(lParam); std::ostringstream oss; oss << x << "," << y; std::string coordString = oss.str(); ::MessageBox(NULL, (oss.str()).c_str(), "Your title", MB_OK); } break; Hi, are you sure your WM_LBUTTONDOWN block is executed is that block in you WndProc Are you clicking in the right window -- SvenC ...Show All
SQL Server Ongoing problem connecting to SQL Server
Hi, I am getting the error: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) whilst trying to connect to a database on SQL Server Express from an ASP .NET application. I'm trying to connect locally for testing purposes, so there seems to be little relevance in the "not allowing remote connections" error. I was kindly helped out the other week by Jimmy Wu who gave me links to some resources to read. This allowed me to connect without an error via th ...Show All
Windows Forms A quick DataGridView question
Is there a way to set the back color of all cells in a DGV without having to iterate through them one at a time ie. Is there a command that will affect all the cells at once Thanks... Setting the default cell style will work on all cells that have not had a different style specifically applied to them. If you have already changed the backcolor of some cells then they will not be affected by a change to the default cell style backcolor. If you need to change them all to another colour you may have little option other than to iterate through all the cells but beware of setting the styles on a large number of cells as this can be inefficient as it creates a cell style object for every cell. Even just acc ...Show All
SQL Server federated query architecture advice
I'm involved in a project building a federated query app. There is an ASP.NET web app talking to a central SQL Server 2005 db. Users input query parameters to the web ap, the request is submitted as a stored procedure to a central db, and from there it is distributed to the selected remote SQL Server 2005 db servers with similar but not necessarily identical schemas where the actual data resides. We must wait for all servers to execute the query and return the results, then aggregate those query results and present them to the web app user. The question is, what is the best way to design this with Server 2005 We need to be able to initiate multiple concurrent queries, then wait (up to some max timeout value) for all responses to ret ...Show All
Visual Studio Report dissapear on postback
Hi all, I am using Crystal Report for VS 2005 to develop an Asp page.Below is the code is use to display my report in a button click event. OdbcDataAdapter myAdap = new OdbcDataAdapter (); myAdap.SelectCommand = myCmd; DataSet ds = new DataSet (); myAdap.Fill(ds); ds.WriteXml( @"c:\dataset_summary.xml" , XmlWriteMode .WriteSchema); string reportPath = Server.MapPath( "Crystal/projectsummary.rpt" ); myReport.Load(reportPath); myReport.SetDataSource(ds); myCrystalReportViewer.ReportSource = myReport; The report is displayed but when i click on the Export button or the Print button, the report dissapear. Any idea why this occurs and how to solve it ...Show All
Visual C++ separating high and low 32 bits in a 64 bit interger
Hi, Can anyone help me to separate the high 32 bits and low 32 bits of a 64 bit integer into 2 new intergers Thanks in Advance inline unsigned long HILONG(__int64 value) { return (unsigned long )(value >> 32); } inline unsigned long LOLONG(__int64 value) { return (unsigned long )(value & 0xffffffff); } ...Show All
Visual Studio Express Editions formating columns of a datagridview
does anyone know how to format especific columns of a datagridview in windows forms with values already in it for example, I wanna format the first row to #.## but it doesn’t do anything (instead of 5.45444 I wanna show only 5.45 in a existing cell DataGridview1.Columns.Add( "value" , "value" ); DataGridview1.Columns.Add( "name" , "name" ); String [] row = new String [2]; row[0] = "5.45444" ; row[1] = "test" ; DataGridview1.Rows.Add(row); DataGridview1. Columns[0].DefaultCellStyle.Format = "N2" ; dtgAcao.Refresh(); interesting. I tried it with SQL being a datasource and works well but when adding rows customely, as you are doing, I also experience this. Spent a ...Show All
SQL Server File system error: A FileStore error from WriteFile occurred
Error: Code: 0x00000000 Source: SRC Process dimensions Error: Description: File system error: A FileStore error from WriteFile occurred. Physical file: \\ \ <pathto filename> attribute.asstore. Logical file: . . Errors in the OLAP storage engine: An error occurred while the <attribute id> attr ibute' attribute of the <dimensionname> dimension from the ' <database>' database was being processed. Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation. End Error I encountered this while incrementally processing a dimension via AMO script in SSIS. Does anyone have ideas on what this e ...Show All
Windows Forms How to tell (event) the user changed a bounded value
I hoped to use CurrencyManager on a bounded table to tell when a user changes a value. (IsDirty state) Instead of having an event for each control bounded for the same table. Any one knows what the trick is In the .Desgner.CS I have lots of text boxes databinding tothe datatable this .customer_BillToForEditBindingSource like this .customer_SourceDBTextBox.DataBindings.Add( new System.Windows.Forms. Binding ( "Text" , this .customer_BillToForEditBindingSource, "Customer_SourceDB" , true )); I used your example in C# (maybe I missed somthing) in the form_load myCurrencyManager = ( CurrencyManager ) this .BindingContext[ this .salesDM_XRefDataSet.Customer_BillToForEdit]; myCurrencyManager.ItemChang ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems implementing a skybox
Perhaps somebody with more experience could help me. I want to implement the skybox example from the DirectX SDK (Samples/C++/Direct3D/StateManager) and I've copied and renamed the following files (skybox01.x, skybox02.dds and skybox03.fx) to my project folder and have added them to the content pipeline. But I don't get it managed to load the skybox with her texture and set the camera to the center of the box, I think because I don't know how to handle the effects of the *.fx file and how to transform the box correct. (I'm new to XNA and I only have tried out the simple 3D examples with BasicEffects from the help files so far.) So if somebody has the time to show me how to handle these files correctly, I would be very glad. (You c ...Show All
Visual Studio New Web Site dialog has no templates
Hello. I was trying to create a new web site in Visual Studio 2005 Standard when I noticed that the dialog box it usually presents for what kind of website you want to create is completely blank. I can set a path to save the site, and I can select the file system but I cannot select a language. I have had this problem before and I had to do an uninstall using the VS2005 product key and completely reinstall. It was working fine then boom its gone again. I would like to not have to continually reinstall visual studio. Anyone know what the problem is B There were some known issues with Registry Cleaners: http://pointerx.net/blogs/glozano/archive/2006/07/25/How-registry-cleaners-can-cause-headaches.aspx Off course there can be oth ...Show All
Visual C++ Class not showing in Class View
In a VC++ project, I have a class CMyClass. It is defined in MyClass.h and implemented in MyClass.cpp, in the usual way. When I look at Class View, CMyClass is not listed. If I use Class View's search for CMyClass, it finds CMyClass::CMyClass and CMyClass::~CMyClass only. Why isn't CMyClass shown in Class View I want to add some member functions, and need to have its properties window to do this. Immediately after I did this, VS stopped handling dependencies correctly. When I change source C++ files, recompile only that file, and run (F5), the old code is used, even though the debugger displays the new object, even at the assembly level. The only way I can get a solution up to date is to clean and r ...Show All
Visual Studio Express Editions radio box text
I have fourRadioButtons on a form. I want to assign a different text value to each (based on the contents of a picturebox), but I don't know how to. Well you simply set the .Text property of them. Example: Me.theRadioButton1.Text = "new text" Me.theRadioButton2.Text = "new text" .. .. however you need to determine this "content" shown in the picturebox in some way. Perhaps by the Image location/file path of the image ...Show All
Visual C# Reflection Related query
I am facing one problem in my project. I want to find the referenced assemblies of my current assembly. I am using reflection.assembly.getreferencedassemblies() function for that. But I can't get COM converted .net dll in that. why what should I do to get that dll also............... Thanks in advance.................. Thanks Rick for reply.......... But here my dll is not .net generated and it doesn't have even CLR header....................... When I tried to open it in ILDasm then it was giving error................................. even the assembly which referenced that assembly doesn't have (unmanaged)its reference(in manifest) in ILDasm. But I want to get that assembly......... ...Show All
