Kevin Stephens's Q&A profile
Visual Studio One or more rows contain values violating non-null, unique, or foreign-key constraints
Hi. i was Trying To read report and i got this error through reportviewer I'm No sure of wats wrong. I tried Searching the net it seems to be the Dataset Prob. But im positive Dataset is working as im using VWD dataset to bind data. even had a preview Which get the data i want. So it means its working. Which then shows that its Reportviewer thats gibing me this error. Appreciate any help thx "An error has occurred during report processing. Exception has been thrown by the target of an invocation. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. " I had a similar problem. I created a xsd file then modifi ...Show All
SQL Server Starting SQL job from a Bat file
I have the need to start the execution of an existing SQL Server 2005 Agent job from a bat file. The job has dependencies that are impossible to predict, but the dependent environment does have the ability to run bat files from the command line environment. I'm hoping there is a way to write a command line that starts an existing SQL job on the local server. Any ideas Hi, thats quite easy, write a CommandLine application using the SMo classes to call the job. The programmatic part is this here: Server s = new Server ( "." ); s.JobServer.Jobs[ "SomeJob" ].Start(); Quite easy , heh :-) HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Basic Help creating a Excel formula or a VB Macro for a specific function
Hello: EXCEL. I am trying to find the best way to create either a formula or a macro/button for the following issue: I have a spreadsheet, which has a specific daily total on cell G19 (Ex G19 = 2,000,000) cells G21 (Ex. -300,000)and G23(Ex. +300,000) are use to enter specific amouts that will either add or subtract from G19. The answer to this addition/ subtration is recorder automatically to cell G25. EX. 2,000,000 -300,000 = 1,700,000 The result on cell G25 (1,700,000) will be the beginning balance for the following day. My problem is, that when I open the spreadsheet on a daily basis, I have to Manually change the amount on G19 to the new Begining balance (Ex. G19=2,000,000 change to G19=1,700,000) and I w ...Show All
SQL Server SQL 2005 ENDPOINT ACCESS USING IE
Hi, How can I access my endpoint output set of values/xml using internet explorer I am able to access the wsdl file now I need to access the actual value returned from sql server 2005. Now i need to display it on my Internet Explorer. All the examples of microsoft leads to access using CLR. Please let me know also the difference between Get/Post with respect to EndPoints. Thanks in Advance Ajoy Kumar ajoyusa@yahoo.com Are you accessing the web service itself Check out this article written by Peter DeBetta http://www.developer.com/db/article.php/3390241 ...Show All
Visual Basic Looping
How do I setup a for next loop array to open files if I don`t know how many files are in the folder IO.Searchoption.TopDirectoryOnly. SearchOption is not a member of IO This is the error that I am getting,I have played around with it and can`t seem to figure it out. ...Show All
Visual C# why (Object reference not set to an instance of an object)?
I am using this code but getting "Object reference not set to an instance of an object.". This is the code and below it is the error message: private void generate_report() { npg_connection = new NpgsqlConnection ( "Server=www.db.2connectbahrain.com;Port=5432;User Id=jassim_rahma;Password=731004167;Database=billing;" ); npg_connection.Open(); // npg_command.CommandText = "Select category_title FROM reports_category ORDER BY category_title"; npg_command.CommandText = "select * from cdr where local_gateway_start_dt between '2006-08-01 00:00:00' and '2006-08-01 23:59:59' and originator_ip = '80.88.247.115' and dest_reg_id = '2connect_pbx' and called_num_e164 in('165 ...Show All
.NET Development How can I access local machine Port Number.
Hi All, How can I access the local machine port number through programmatically. Thanks for your help. as stated, you need some "operation" to do in order to access/use the port you are wanting to use, via the sockets classes or some other class which requires the usage of ports on the system. ...Show All
Visual Studio Any bodies have any idea about following error
Error 2 Unknown section header E:\\TempProject\\DSLTestAgain\\DslPackage\\CtcComponents\\..\\GeneratedCode\\GeneratedCmd.h 1 DslPackage I’m install visual studio sdk 3.0 and open a DSL project while I’m start debugging I’m getting this error It seems installation problem I reinstall visual studio sdk and problem fixed ...Show All
Visual Studio Express Editions cin a name & cout a name
Help!, am new to Visual Studio, my 1st attempt @ using this program. How do I cin a name & age and cout a name & age since you are new to visual studio, i suggest you to read this article: http://msdn2.microsoft.com/en-us/library/ms235632(VS.80).aspx if problem persists, can you paste out your code with that "class for customer" ...Show All
Windows Forms how to drag and drop a label, textfield, etc.?
how can i move a label that is in a panel i dont know what to do in the draganddrop event of the panel. how do i relocate the label do i need the pointtoclient here's the code: static void newPanel_DragDrop( object sender, DragEventArgs e) { } static void newPanel_DragEnter( object sender, DragEventArgs e) { e.Effect = DragDropEffects .Move; } see this thread ,it has been talked before http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=681124&SiteID=1 I hope it will help you ...Show All
Software Development for Windows Vista BUG?: Office Tools in Workflow Activity
I've been creating custom activities for my workflow that make use of VSOT. Compiling, running or working with these activities open multiple copies of both winword and excel in the background without closing them, slowly eating up resources until they are closed manually. Activities make use of the Microsoft Excel & Word 11.0 Object Component Libraries with each making a new instance of ApplicationClass and or Document. Let me know if you want me to supply some code samples, glitch found using beta 2.2 I've just tried the same code in a console application with no problems so i do assume that it is either my code in the workflow activity, or a bug in windows workflow code as follows -------------------------------- ...Show All
Visual C# Adding a item to a IDictionary<String, List<String>> object
Hello! I know this must have an stupidly easy solution, but now I just can't find it :( I have this collection: IDictionary<String, List<String>> publishers = new Dictionary<String, List<String>>(); The keys will be some web publishers names, such as "wired.com", "internet.com", etc. The values associated with these keys will be lists of urls (I'll be reading the urls from a txt file). The code: StreamReader sr = File.OpenText("blah.txt"); //initialize the dictionary structure for (int j = 1; j <= numberOfPublishers; j++) { this.publishers.Add(publisherName, new List<String>()); } string url = sr.ReadLine(); do { if (Regex ...Show All
Visual Basic open unbound form and fill with data
I have a form that has several unbound textboxes, I use it for entring new data only. I tried the below to open the form and populate the textboxes and it didnt work Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim EDFRow As DataSet1.EDFRow If Me .ListBox1.SelectedItems.Count = 1 Then EDFRow = DataSet1.EDF.FindByEName( Me .ListBox1.SelectedValue.ToString) My .Forms.EmployeeSimple.ShowDialog() My .Forms.EmployeeSimple.ENameTextBox.Text = EDFRow.EName etc. didnt post all lines, but its basically the same, just different columns Exit Sub End If End Sub I tried a msgbox to return EDFROW.EName and it was the name ...Show All
Visual Studio Express Editions Visual Studio validator hang
I got problems vith validator. First ting is that it makes problems in all versions of VS2005 (as i read on net). Problem causes asp: tags not to be detected correctly and it disables normal function of suggesting sub tags of current tag in webcontrol or any asp:controls. (sorry if i had explained this badly.) thing is that all this sometimes works and sometimes doesn't. First thing i have done is that i had turned off xhtml validation. Then, when i work i work with page that doesn't use master pages and that i located in root folder. There, there is no problem. From there i write and copy necesary things to target pages. I think this is VS general bug (as i read on web). So if there will be update or something i would like to know o ...Show All
Visual C++ Visual Studio 2005 Service Pack 1 Beta - error C2244
Hello, I installed SP1 Beta asap, because I am encountering the "Updating Intellisense ... 100% CPU load" problem. Intellisense problem seems to be resolved, but now I can't compile QT 4.1.4 here is compiler message: -----------------------------------------start c:\qt\4.1.4\include\qtcore\../../src/corelib/tools/qhash.h(805) : error C2244: 'QMultiHash<Key,T>::replace' : unable to match function definition to an existing declaration c:\qt\4.1.4\include\qtcore\../../src/corelib/tools/qhash.h(790) : see declaration of 'QMultiHash<Key,T>::replace' definition 'QHash<Key,T>::iterator QMultiHash<Key,T>::replace(const Key &,const T &)' existing declarations ...Show All
