Ted Ekeroth's Q&A profile
SQL Server How to connect to SQL server 2005 from C# after default installation?
Hi everyone, I just installed Visual Studio 2005 and SQL Server 2005. However, I`m not able to connect to the database. When running this C# code, I get a SqlException. using System; using System.Data; using System.Data.SqlClient; class Program { static void Main( string [] args) { SqlConnection connection = new SqlConnection (); connection.ConnectionString = "Data Source=(local)\\sqlexpress;Initial Catalog=X;Integrated Security=True;" ; connection.Open(); connection.Close(); } } I get the following error message: Cannot open database X requested ...Show All
Visual Studio Team System Unable to rename a file back
I changed the name of a class under TF and checked in the change. I now want to change the class name back, but team foundation tells me a file already exists with that name. I'm unable to find a way to locate the original file under source control and permenantly delete it so I can change the class back. I assume this is a bug. Anybody else come across it, or have a work around Which version of Team Foundation are you using Did you rename from within Visual Studio or from the command line A few things to try: - run "tf dir" (or "h dir" for older versions) to see what files the server is currently ...Show All
Windows Forms FileSystemWatcher
I'm right about to lose my mind... so hopefully someone can help... Here is the situation. I wrote a program that has a file watcher on a folder on a clients machine. When a document is dropped into the folder, the program runs and they enter information about the document and it's uploaded to their corporate web site. I have tested this&n ...Show All
.NET Development How to realize that add/remove the access permission on a specific folder in code?
Hello everybody, We have a requirement for add/remove the access permission on a specific folder. Would anyone tell me how to realize it in code Thanks and Regards, Hawkins With .NET 2.0 you can implement this using the new classes in the namespace System.Security.AccessControl. Documentation and some samples can be found in the MSDN Library ( http://msdn2.microsoft.com/library/system.security.accesscontrol.aspx ) The following snippet grants modify access to everony on c:\foo // Get the DACL of the existing directory "c:\foo" DirectoryInfo dirInfo = new DirectoryInfo ( @"c:\foo" ); DirectorySecurity dirSecurity = ...Show All
Visual Studio How to extract UserDump from KernelDump ?
Hi Experts, I've generated a crash dump file in kernel dump file format (2 GB in size). This is having all the process information. I want to get my application user process dump from this. Is there any tools or commands (of windbg ) available The dump was created on my Windows XP Professional SP2 x86 dual CPU System. I came across the genedump.exe from Microsoft site, but is not working with XP kernel dump . Any help Thanks in advance. -Thilak ...Show All
Software Development for Windows Vista How to tracking with oracle?
Persistence service with oracle ,only create a table with GUID column and STATE column. But tracking service with oracle, a lot of table must be created. Can you tell me a easy way to do that, thanks Add some comments here: SqlTrackingService and SqlWorkflowPersistenceService are SQL-based. They do not support Oracle. You need to create your own tracking and persistence services for Oracle. The SDK samples can be used as a good starting point for custom persistence and tracking services. ...Show All
SQL Server High Performance in Mirror
In this mode, I get that it's asynchronous. Does that just mean it sends the TX over and what happens, happens Do I at least know it hit the comms stack, or the wire or anything Or just it will do its est. Thanks. When you say 'the principal takes database offline' you mean the MIRROR right, not the Principal database which could still live and service TXs, right ...Show All
Visual C++ Compiling C Project with /clr in VS2005
Hello, I have been using VS2003 to comple C projects with /clr and generate CIL binary, which I use to generate code for an embedded processor. In VS2005, compiling C projects to CIL is no longer supported. It seems the only possible way is setting the compiler options to compile everything as C++. Now, my problem is whenever I compile even the simplest C files (e.g. int main(){retrun 1;} ) in this way, after all optimizaitons, the output CIL contains a huge amount of seemingly unnecessary code. There are many new funcitons, variables, namespaces, etc. in the output CIL. I have tried every possible option or optimizations. Specifically ...Show All
Windows Forms Installation not working
hi, i have been having major problems with install sheild recently... i just cant seem to install anything i get a 1607 error and i have been told that i need to reinstall windows to sort it out! ! ! anyone know anything about this also, im not quite sure how but my copy of organismbase.dll has gone missing and due to my installation poblems i cant reinstall the terrarium sdk... would someone be good enough to send it to me thanks in advance The Terrarium client and server are available here- http://www.windowsforms.net/terrarium/download ...Show All
Visual Studio 2008 (Pre-release) Duplex when the client is a Windows Forms or Presentation Foundation applications
Hello! (I'm using the February CTP). My console client application works well with duplex, but when I run a Windows Forms or Presentation Foundation client application my server's CallbackProxy.SomeMethod() hangs. Do some of you have some hint what I must do in order to make a Windows Forms or Presentation Foundation client application work with duplex, please Best regards, Henrik Dahl The thread on which you have made the server call is blocked. So you need to start the call on another thread. Juval Lowy wrote about this in another thread. Do a search on him if the following does not mak ...Show All
Visual Basic Reports in Express edition of VB 2005 ?
Can somebody confirm how are Reports possible in Express edition of VB 2005. Hi, Many threads exist about this topic, you can do a quick search for them. For example http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=226418&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=103335&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=152198&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=62604&SiteID=1 ...Show All
Visual Studio Express Editions MIcrosoft Visual C++ Runtime Library
I am getting this error when trying to open my newly installed quickbooks: Runtime Error! abnormal program termintaion Any Ideas on why this might be Thank you Chris This is not a VC2005 issue. Contact the author of the application. Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server RPC Server is unavailable
Can anyone tell me why I get this error on my new test server when trying to poing the setup of Reporting Services to my (local) database in SQL 2005 Enteprise I've come across this before on another machine and ended up having to reinstall SQL 2005: http: / / www. webfound. net/ rpc_ server_ unavailable_ error. JPG Is RS installed on the same box of SQL You need to enter the name of the server that runs RS. The screenshot shows you entered (loca). Is this a typo ...Show All
Microsoft ISV Community Center Forums Reading text file and accessing specific columns in VBA
I am new to VBA and I have some code that I put together that reads a text file. Now, I am trying to access the columns in the line I just read. I have scoured the web and cannot find column manipulation with the way I have set up the I/O. Should I be using another way to read the file I would rather use this code but if there is a better way I would love to know. Any help is greatly appreciated. here is the code Sub balance() Const FILE_PATH As String = "P:\Clients\Vanguard\Finance\20060117_ftp.DNO_Report_Summary.txt" Dim ts As TextStream Dim docname As String Dim Fso As FileSystemObject Dim txt$ Set Fso = New ...Show All
Visual C++ Debug Output: DLL Loading/Unloading
I have an issue that makes it almost impossible to have my software output useful debug data to the "Output" window in Visual C++ .NET 2003. When I compile and run my program in debug mode, the "Output" window is flooded continually throughout the execution of the program with messages saying that a specific DLL is being loaded and unloaded rapidly. The messages look like this sample output: 'Program.exe': Loaded 'C:\Program Files\Logitech\SetPoint\IMHook.dll', No symbols loaded. 'Program.exe': Unloaded 'C:\Program Files\Logitech\SetPoint\IMHook.dll' 'Program.exe': Loaded 'C:\Program Files\Logitech\SetPoint\IMHook.dll ...Show All
