Luis_Ga's Q&A profile
SQL Server Integrated Security doesn't work - "Not associated with a trusted SQL Server connection." Error
Hi, I have a piece of Java code that needs to connect to SQL 2000 (SP4) using Windows Authentication. It's running on Windows Server 2003 SP1. I tried JDBC v1.1 and followed the code from the following blog: http://blogs.msdn.com/angelsb/default.aspx p=1 But still get this error as shown below. Any help appreciated. I am using JDK1.4.2, "sqljdbc_auth.dll" is located under "E:\SQL2005JDBCDrv\sqljdbc_1.1\enu\auth\x86", also made a copy under "E:\JavaTest" and "C:\Windows\System32" but still won't work. Cheers Allan =========================================================== E:\JavaTest>javac -classpath ".;E:\JavaTest\sqljdbc.jar" TestW2.java E:\JavaTest>java -classpath ".;E:\JavaTest\sq ...Show All
Software Development for Windows Vista Help Critical issue w/ Remote debugging on Vista!!
Ok, here is my situation. I have remote debugging working w/ windows vista (using vs2k5 and vs2k3 sp1). However the software i am working on controls a wifi card and creates a connection with it (using the the new MS wlanapi). But whenever i make the connection w/ the wifi card it kills the connection for my remote debugger. The app will freeze and the visual studio will sometimes freeze w/it. Requiring me to restart visual studio. It is a native c++ app and I am using tcpip w/o authentication. I am running the code over the network. This also happens when i use pipe mode on vs2k3 aswell. Furthermore this also happens if i make the connection outside of my software aswell (using windows gui). In addition i also noticed that occ ...Show All
SQL Server create app by VB.net 2003 and connect to SQL XE
Hi , Would it be available to connect from VB.net 2003 to SQL Server XE VB.net 2003 works on .net framework1.1 while SQL XE works on .net framwork 2.0 so i think this couldn't be done!! is this true yes this CAN/WILL work. I am assuming the real question here is having both sql & the VB03' app running on the same box. In which case the answer is YES it will work. You can have multiple versions of the Framework installed site-by-side, one of the great many benefits that .Net gives us :) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Looking for an example using a 2D back buffer
Does anyone know of an example that shows how to use a back buffer and flipping a 2D app nick5454 wrote: I looked through all of those yesterday. But, none of them use the Present method or refer to the back buffer technique. Because you don't need to. You need to discard the old way of thinking. nick5454 wrote: Or am I looking at this wrong and that the Draw method is actually drawing to the back buffer surface Correct. All the stuff you used to have to handle yourself is now done for you with XNA. That's one of the great things about it. ...Show All
Visual Studio Delete command bar
Hi, I am writing an Addin that adds a command bar (sub menu) to the "Project" context menu. The addin is loaded upon user's request (from add-in manager). The problem is that if I activate the addin more then once (i.e. disable it, press OK, OnDisconnection is called, and then enable it again) it creates another instance of my sub menu. This is my code: Microsoft.VisualStudio.CommandBars. CommandBar m_mySubMenu; public void OnConnection( object application, ext_ConnectMode connectMode, object addInInst, ref Array custom) { Microsoft.VisualStudio.CommandBars. CommandBar projectCmdBar; _applicationObject = ( DTE2 )application; _addInInstance = ( AddIn )addInInst; m_addinM ...Show All
Visual Basic Unknown problem
Hello! I am writing application which is server which communicates with client by socket. The server contains one form "frmMain" and one module "Module1". Module1 contains the following lines: Imports System Imports System.IO Imports System.Net Imports System.Net.Sockets Module Module1 Public Const BS_PORT = 8221 Private pfnWorkerCallBack As AsyncCallback Private soclistener As Socket Private socWorker As Socket Public Sub StartListening( ByVal Port As Integer ) Try Dim ipLocal As IPEndPoint = New IPEndPoint(IPAddress.Any, Port) soclistener = New Socket(AddressFam ...Show All
Windows Search Technologies Search result appears in "Indexed Locations" but not in "Everywhere" on Vista
My custom protocol handler is finally working to the point where I can search for keywords indexed from a custom store and get the appropriate results back. BUT, this only works if I search specifically in "Indexed Locations". If I go into the search textbox in the start menu and just type in a search term, it searches by default in a location called, "Everywhere". This location should be a superset of "Indexed Locations", but search results for items indexed via my protocol handler do not appear here. They only appear if I actually NARROW the search to look only in indexed locations. Can someone explain why this would be the case, and how I can fix my code so that my results appear when a user searches ...Show All
SQL Server Report Model "Folder" vs "Perspective"
Can someone explain why I might use a Report Model "Perspective" rather than a Report Model "Folder" TIA!!! hi brian, Let me explain the difference between them and then i will get back to your question. 1) In Report Model an entity can appear in multiple perspectives, but can reside in only one folder. you cannot have one entity in multiple folders. getting back to your question ..... Lets consider a senario where you have a accounting department (account entity)and Packaging department ( Packaging Entity ) trying to access the customer entity. If the Customer entity is in a folder and this folder exists in the accounts entity, then the customer entity will not be visible in the Packging entity. ...Show All
Smart Device Development [Pocket PC] User32.dll for keybd_event
It seems like everyone else is using the keybd_event great i've never had a problem using it in applications for the desktop, but for the pocket pc i get a connot find user32.dll. I can't figure out how you guys are getting this to work and i'm getting an error. Declare Sub keybd_event Lib "user32.dll" Alias "keybd_event" _ (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer) Nothing to special about the code i dont think it seems like the standard of what everyone else uses. Any help would be great. Thanks. I know this... and it doesn't make it work. I figured by labeling it that someone would say it was some specific .dll that i wasn't think ...Show All
Visual Studio Team System Why not property in C# and VB.NET is different?
Dear All: I use C# create FXCOP rule add in vs2005,The rules is test property,but test In VB.NET is different from C#,who can tell me why In C# string gstrOrigEmpID = ""; public string OrigEmpID { get { return gstrOrigEmpID; } set { gstrOrigEmpID = value; } } In VB.NET Dim gstrOrigEmpID As String = "" Public Property OrigEmpID() As String Get Return gstrOrigEmpID End Get Set(ByVal Value As String) Me.gstrOrigEmpID = Value End Set End Property In C# Property ,OrigEmpID is property,but in VB.NET,OrigEmpID is Field.I don’t known why ,can you help me thanks! --Tiny ...Show All
SQL Server Change in connection string
I have a SSIS Package which I developed on my own my database server. But now the package is to deployed on 3-4 different computers pointing it to different databases. I do not want to change the connection string for each and every instance because in future there may be more number of instances running. I tried using the Configuration file and add that file in to the configuration window but that also did not work. Please can anybody help me We're going to need more information here... You said you tried using a configuration file, "but that also did not work." How did you set it up What exactly happened that "did not work" If running locally for testing, you'll have to get ou ...Show All
Visual Studio Team System 2 questions about TFS workgroup edition proxy
1) TFS workgroup edition has limitation to number of users. Does TFS workgroup edition Proxy have any restriction 2) Does TFS Proxy cache attached files No. The limitation on users is done thru permissions (the 'TFS valid users' group). All permissions are handled by the mid-tier. You mean files attached to work items No. We're looking at this for future versions. Hope this helps :) ...Show All
Windows Forms How can i avoid the Unicode File conversion wizard at the time of opening up the document? [C#.net---Ms-Access---MS-Word]
Hi, We are supposed to create a Word doc file for our client that is to be used for printing a large list of names and addresses. I am facing some problem at the time of retrieving the data from MS-Access and showing it in the Ms-Word Document [here I am using C#.net Windows Application]. The below is the code for your reference: private void button1_Click(object sender, System.EventArgs e) { try { button1.Enabled = false; StreamWriter sw; DateTime dt = DateTime.Now; string strFileName = @"Rene's book .doc"; string strMyOdbc = "SELECT * FROM Contacts "; strMyOdbc += "ORDER BY Account, LastName"; OdbcConnection myCon ...Show All
Visual Studio unistalling Visual Studio 2005 Remote Debugger on a xp machine
Hi, for some reason Visual Studio 2005 Remote Debugger got installed on a xp machine, dunno with which appliacation it came, because it got installed neither intentionally nor was any Viso Studio 2005 installed. Yet is shows up in the start menu but not in the add/remove panel and I need to get rid of it but dunno how to... Already tried vs_uninst_betas.exe, but it did not work. Appreciate your input. Cheers I think the remote debugger has been included in Office installations, as well as Office tools. It should be removeable as a specific component from another app, so if you could let us know which other MS products you have installed, we may have a better shot at diagnosing this, Cheers, John ...Show All
.NET Development Reflecting on Properties
How can one determine the common or garden access modifiers of a property (i.e. public, private virtual, override etc) - the PropertyInfo class does not have an Attributes property nor any IsPublic, IsFamily etc properties. The get & set methods have such properties but its not clear to me how one determines which one inherited its modifiers from the property and which one has the accessor specified modifiers. Nor can I see how one can easily determine that a property uses the override attribute to "hide" one of the same name in it base. Rgds PhilD almost as little as zero I venture to suggest. Late last evening I was looking at Lutz Roeder's reflector, I think think I can see what he does, ...Show All
