barkingdog's Q&A profile
SQL Server Windows Authentication - Different Domain
Hi: I am trying to figure out if there is a way to connect via SQL Server Management Studio to a server sitting on a separate domain. So here is the situation. there is Server B which sits in a domain called DomainB. If I am in DomainA, I could typically remote into that server utilizing an IP address in DomainB, and even transfer files to that server. But how do I connect via SQL Server Management Studio(basically login as a different domain user) to Server B in DomainB from DomainA. Basically when I choose Windows Authentication from the dropdown list in SQL Server Management Studio, it grays out the username field, which is where I could type something like this domainB\usernameondomainB, similar to how you would connect to a share o ...Show All
Visual Studio Team System Getting error "TF10201: Source control could not start the manual merge tool"
Hi I'm receiving the error " TF10201: Source control could not start the manual merge tool. " when I'm trying to resolve a conflict during checkin. The scenario is as follows: I have 1 file $/TeamProject/Dev/MyFile.h that has been branched to $/TeamProject/Branch/MyFile.h I have made changes to both the "Dev" and the "Branch" file, and then done a merge from "Dev" to "Branch", this creates a pending merge on "Branch" (as expected). Now I try to checkin the pending change and receive a conflict (also as expected), I click "Resolve" and select "merge changes in merge tool" and then I get the above error message. If I try to resolve this from the co ...Show All
Community Chat .NET
What is the difference between .NET and java. If both are platform independent, can you suggest which is the most preferable based on platform independency. .NET application needs to have .NET framework running on the machine where you want to run it. In case of Java, you need to have JVM/JRE running to run Java application. As per my knowledge, JVM/JREs are available for different plateforms but DOT NET needs to have MS operating system. Note: there is possibility to run DOT net application on non-Microsoft plateform using some 3rd party application like MONO. Hope this helps you understand the difference. Well, I will love to work on DOT NET.... ...Show All
Visual C# Accesing key shortcuts from another program
I'm trying to write a small code library program that I want to hide in the system tray, and pop up whenever some one hits a key shortcut, such as CTRL+F1. I have the program in the tray, but don't know how to check for key presses happening outside of my program. Any help would be greatly appreciated. Thanks a lot for the help. I'll give it a shot, and can hopefully get every thing converted from VB. The only part I'm not sure about is exactly how to convert the dll import: <DllImport("user32", EntryPoint:="RegisterHotKey", _ SetLastError:=True, _ ExactSpelling:=True, _ CallingConvention:=CallingConvention.StdCall)> _ If any one knows what this would look lik ...Show All
.NET Development .NET Framwwork 2.0 installation problems!
Hi all, I recently tried to uninstall NET FW 2.0 because I am having problems with it, I have tried to re-install the program but have not been sucessfull. This is the error message that I am getting, any ideas "Patch package coul not be opened. Verify that the patch package exist and that you can access it, or cntact the application vendor to verify that this is a valid Windows Installer patch pakage". &nbs ...Show All
.NET Development XML and GridView
Hi all! I have xml: <BOM> <BO> <AdmInfo> <Object>oRecordset</Object> </AdmInfo> <ORDR> <row> <DOCDATE>20060426</DOCDATE> <DOCSTATUS>O</DOCSTATUS> <DOCTOTAL>8161889.170000</DOCTOTAL> </row> <row> <DOCDATE>20060523</DOCDATE> <DOCSTATUS>O</DOCSTATUS> <DOCTOTAL>12298629.600000</DOCTOTAL> </row> </ORDR> </BO> </BOM> and gridview: < asp : GridView ID ="gvPedido" runat ="server" Width ="90%" Visible ="False" AutoGenerateColumns ="False"> < Columns > < asp : BoundField HeaderText ="Da ...Show All
SQL Server MDX Expression For Sum of Days Between Dates
Hi guys, We have this small problem that we cannot figure out how to do. In a nutshell, we want to write a calculated member that will calculate the difference in days between dates in a table and then it sum all the differences. Our knowledge of MDX is somehow limited :) Thanks Robert J Can you be a little clearer Firstly, MSAS is cubes, dimensions, and measures. Secondly, what do you mean by "sum all of the differences". Between dateA and dateB, there's only one number. Reminder: you can take advantage of SQL Server capabilities when pulling information into MSAS. There's a few ways to do this when the information isn't readily avaiable on the table: a) Access your table via a view. Thi ...Show All
Windows Forms Using Microsoft.Build.Tasks.Deployment.ManifestUtilities to update file on doeployment server.
Hi, We are trying to update .recources file on the deployment sever programmatically. Our .Resources (string for multilanguage support) files are keep in our database for maintainability purpose. If resources are edited in database, .resources files need to be updated on the deployment server. We are trying to use Microsoft.Build.Tasks.Deployment.ManifestUtilities for forcing clickonce to update client application. We made a little application that look a bit like MageUI that will enable to extract .resource from DB(this is the easy part), make modification to application manifet and deployment manifest and sign these manifest files. We have no problem signing manifest files, but I can't made clickonce recognize my new .resour ...Show All
Visual Studio bracket matching highlighting
Hi Just had VC 2005 pro installed and I cant see any bracket matching highlighting as the standard install gives me. Had a look around in the docs and have checked the right box is ticked ie Options/Text Editor/ Automatic delimiter highlighting Is on, I beleive this is the right box well the docs mention bracket highlighting. Anyway does jack, kind of basic functionality I guess. Anyone got a fix as I am trying to go through someelses code and I really need it..... Cheers Frosty If it helps, you can put your cursor on the line of either the opening or closing bracket of the given block of code and type ctrl+] to go to the opposite end of the block. ...Show All
SQL Server Tutorial problem - please help
Guys, I am working through the tutorial. Although I discovered this problem in lesson 7 it has nothing to do with the KPIs. All this relates to Sales Amount Quota. If I browse with no time filtering, I get $109,226,500 which agrees with the tutorial. If I make Fiscal Year a row dimension, I see 2004 has $43,240,000 which agrees with the tutorial. If I use fiscal year as a filter (restricting to 2004) as well as having it as a row dimension, the 2004 figure shows correctly and there is a grand total of $109,226,500. If I then remove the row dimension (leaving the filter) the $109,226,500 remains but the 2004 figure disappears. This does not agree with the tutorial. As an experiement I then used Calendar quarter as a filter selectin ...Show All
Smart Device Development Performance System.DateTime.Now
Hello The API function GetSystemTime(out st); (PInvoke) is about 1500 faster then System.DateTime.Now; System: WinCE50 on ARMV4I TestCode: using System; using System.Data; using System.Runtime.InteropServices; namespace DateTimePerformance { public struct SystemTime { public ushort wYear; public ushort wMonth; public ushort wDayOfWeek; public ushort wDay; public ushort wHour; public ushort wMinute; public ushort wSecond; public ushort wMilliseconds; } /// <summary> /// Summary description for Class1. /// </summary> class Class1 { [DllImport("coredll.dll")] public static extern void GetSystemTime(out SystemTime st); /// <summary> /// The main entry point for the a ...Show All
Visual Studio Team System Adding files to source control
I created an empty project for a Project Manager (who has Project Administrator permissions) to add files to Source Control himself. He added source to the first sub-project from Visual Studio successful. However, he can no longer add another sub-project at the same level as the first. When the TFS Administrator added this second sub-project for the Project Manager, the Project Manager still was not able to add file to this second sub-project (even after he was given the Team Foundation Administrator rights temporarily). Then the TFS Administrator added a file to the second sub-project and ask the Project Manager if he was able to check the file out. The answer was "No". Can you tell me what would cause this problem and ...Show All
Visual C++ Best way to get the directory of the program?
What is the best way to get the directory that the program was ran from I know this my sound simple to you guys, but I have been having a hell of time trying to figure it out. Thanks alot guys! TCHAR szPath[MAX_PATH]; CString strModulePath; GetModuleFileName(GetModuleHandle(NULL),szPath,MAX_PATH); TCHAR *szDir = _tcstok(szPath,_T(".")); Now szDir will have the directory path. Thanx&Regards, Ch.T.Gopi Kumar ...Show All
Visual FoxPro impersonateloggedonuser and Getfil()
Iam running VFP 9 with SP1 under windows 2k. In order to protect my database/table files on a network I have created a single user who has access to the folder where the files are contained. This is the only user with access to the folder. When an individual on the network runs the application the application logs on as that user and has access to the database files...the code goes like this.... #define LOGON32_PROVIDER_DEFAULT 0 #define LOGON32_PROVIDER_WINNT50 3 #define LOGON32_PROVIDER_WINNT40 2 #define LOGON32_PROVIDER_WINNT35 1 #define LOGON32_LOGON_INTERACTIVE 2 #define LOGON32_LOGON_NETWORK 3 #define LOGON32_LOGON_BATCH 4 #define LOGON32_LOGON_SERVICE 5 #define LOGON32_LOGON_UNLOCK 7 DECLARE ...Show All
Smart Device Development Please quickly help?
there is an error in my code but i don't know where i'm using pocket pc 2003 with visual studio 2005 beta 2 and sql server 2005, i create database as sql server mobile database (mydb.sdf) and connet it with my application, the when i insert new row. the error message: An unhandled exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.dll Additional information: The path is not valid. Check the directory for the database. [ Path = C:\Documents and Settings\User\my documents\visual studio 2005\Projects\DeviceApplication1\DeviceApplication1\db2.sdf ] I've got the same error, however the path is [ Mobile Device \Program Files\MyDB\jobs.sdf] I checked my connection strings, seems correct... plz ...Show All
