2,245 Posted Topics
Re: You're not saying what you really want to do here. You can pipe the information to a named pipe or to a remote mount and store the information there. Obviously you are wanting to do something with the data on another terminal or with another user account... please fill us … | |
Re: I'm very interested in *how* that happened. Do all of your records have only 3 entries ... and each has one field? Anyway here is one way of going about it. My test data: [code=sql] Insert Into MyTable ([Unique], c_date, m_date, qty, ht_num) Values ('SWA123', '6/1/2009', null, null, '28683') Insert … | |
Re: [url]http://www.codeproject.com/[/url] also has a lot of articles with full source code and explanations. | |
Re: [code=bash] sk@sk:/tmp$ cat l 123_1 123_2 123_3 123_4 123_5 123_6 123_7 123_8 123_9 123_3 123_5 123_3 123_7 123_6 123_1 123_3 sk@sk:/tmp$ sort -u l 123_1 123_2 123_3 123_4 123_5 123_6 123_7 123_8 123_9 sk@sk:/tmp$ sort -u l | wc -l 9 [/code] | |
Re: Did you add any items to the collection before calling GetNames()? [code=c#] using System; using System.Collections.Generic; using System.Text; namespace selectionsort { public sealed class MyTest { public string Name { get; set; } public MyTest() { this.Name = string.Empty; } public MyTest(string Name) : this() { this.Name = Name; } … | |
Re: Look at: [url]http://msdn.microsoft.com/en-us/library/63abbwzw.aspx[/url] Compiler Error CS1644 Error Message Feature 'feature' is not part of the standardized ISO C# language specification, and may not be accepted by other compilers This error occurs if you specified the /langversion option ISO-1 and the code you are compiling uses features that are not part … | |
Re: In short -- no. For standard <asp: you don't have to worry about tag prefixes either that you might with third party controls. Why are you trying to get at designer generated code in your application anyway? It isn't valid markup .. unless you are trying to write a code … | |
Re: There is no out of the box way to do this with MSSQL but its a common request for web applications so you can show rows 1-10, 11-20, 21-30, etc. on a website. Try googling "MSSQL PAGING" or "MSSQL PAGINATION" and you should come up with a lot of relevant … | |
Re: What are you storing where they both need the same data? I typically store the configuration in my service and use the windows application to ask the service for data, or set values. This way the server handles the get/set requests of data and maintains the configuration file. You also … | |
Re: That is what you have to do. You work with varchar()s in C# as a string. I do the same thing and what I would suggest is using attributes on the fields that mirrors your database setup so you can do client-side validation before submitting queries. [code=c#] [ DBTableInfo("vea_Job"), DBChildTableInfo("vea_JobRecip"), … | |
Re: If client_name, clientlastname, and clientage are all locally declared variables then you don't really have much of a choice. If you stored them in a class you have a lot more options. You could do something like... [code=c#] string s1 = string.Empty; string s2 = string.Empty; string s3 = string.Empty; … | |
Re: You can use a cursor to iterate for every @id. Here is sample data and code to demonstrate the concept: [code=sql] IF OBJECT_ID('OrdersTest', 'U') IS NOT NULL Drop Table OrdersTest Create Table OrdersTest ( OrderId int identity(1000, 1) PRIMARY KEY NONCLUSTERED, CustName varchar(30) ) GO Insert Into OrdersTest (CustName) Values … | |
Re: Check out this thread: [url]http://stackoverflow.com/questions/495629/mssql-disable-triggers-for-one-insert[/url] It offers a number of possible solutions but none are straight forward 'disable triggers for my individual session'. | |
Re: [QUOTE=sonia sardana;915570]can u tell me in GetPhoneString abcd is there & how u r spliting it with , there is no , in string,then how can u do it,& what is Getstr- is it a function?[/QUOTE] I agree with sonia said ... but I might have phrased it a little … | |
Re: Yes. I believe using [icode]get; set;[/icode] like this was implemented in the 3.X framework. In this case you cannot call any custom methods when a property is being changed. [code=c#] public bool FormEnabled { get; set; } [/code] But if you implement it the second way you can: [code=c#] private … | |
Re: Check your windows firewall rules out. A lot of times browser traffic will work with those anti virus programs installed (i hate norton and mcafee equally) because it uses a proxy server so it can further hinder .. i mean .. protect your internet connection. Uninstalling AV software with complex … | |
Re: Using a typed data set is very slow but ones created at runtime are not quite as bad. I assume you already have this table bound to a report for creating PDFs? If that is the case then you can leave them in a datatable/dataset. You will want to use … | |
Re: A corrupt print job was hung up in the spooler causing printing to fail. When the spooler was restarted it picked up the document again so the service was stopped, manually identified and deleted the file, then started the service. | |
Re: I dont think your command worked: [code=bash] sk@sk:~/zip$ zip backup . zip error: Nothing to do! (backup.zip) [/code] What I did to create the zip archive: [code=bash] sk@sk:~/zip$ ls readme.txt sk@sk:~/zip$ tail -1 readme.txt test123 sk@sk:~/zip$ zip -r backup ../zip adding: ../zip/ (stored 0%) adding: ../zip/readme.txt (stored 0%) [/code] Now … | |
Re: Did you change the computer name? [url]http://support.microsoft.com/kb/884564[/url] | |
Re: I'm just going to copy/paste from the help file to answer your questions. 1. you use nothing to assign the default value for that for that data type. "Nothing" for reference data types is effectively a null, nothing for an integer would be 0. You don't declare a variable as … | |
Re: I replied to your old thread with a correct answer. Please go back and mark that thread as solved and I will continue to help: [url]http://www.daniweb.com/forums/thread202905.html[/url] | |
Re: Its called port forwarding or NAT and the implemention depends on what type of router you have. If your router is a linux router you can use iptables: [code=bash] #!/bin/sh iptables -t nat -F iptables -t filter -F iptables -t nat -I PREROUTING -i eth0 -d 1.2.3.4 -p tcp --dport … | |
Re: Take a look at code project: [url]http://www.codeproject.com/KB/vb/[/url] | |
Re: I can assure you they run sequentially and not at the same time. You also posted code that won't compile so I suspect your problem lies elsewhere. Please post [b]your complete code[/b] so we can take a look at it. | |
Re: Look in to [icode]xp_sendmail[/icode] but I would advise using a program for this task. [url]http://www.google.com/search?hl=en&q=MSSQL+xp_sendmail+attachment&aq=f&oq=&aqi=[/url] [url]http://doc.ddart.net/mssql/sql70/xp_aa-sz_11.htm[/url] [url]http://www.bigresource.com/MS_SQL-Mail-Attachment-using-xp_sendmail-Yo72AFEm.html[/url] | |
Re: You can pull the contents of the database down in to a temporary file or create a stream. The constructor of [icode]Attachment()[/icode] takes either a file name OR a stream with a file name to attach to a mail message. [code=c#] using System; using System.IO; using System.Net; using System.Net.Mail; using … | |
Re: Are you trying to get CentOS to connect via ODBC to a Microsoft SQL Server? Based on your past posts this looks like you're referring to MySQL. Please confirm the db connection you're looking for | |
Re: Here is another way using the [icode]System.Configuration[/icode] namespace | |
Re: Run this query. The comments are embedded. [code=sql] IF OBJECT_ID('Men', 'U') IS NOT NULL DROP TABLE Men Create Table Men ( Name varchar(30) PRIMARY KEY, Spouse varchar(30), DateOfBirth DateTime ) IF OBJECT_ID('Women', 'U') IS NOT NULL DROP TABLE Women Create Table Women ( Name varchar(30) PRIMARY KEY, Spouse varchar(30), DateOfBirth … | |
Re: Download SIW: [url]http://www.gtopala.com/siw-download.html[/url] On the left you will see "Running Processes". Click on the process you wish to explore and it will list the file. You can also list all open files and sort by process or filename. | |
Re: You're wanting to create a database via an ODBC connection when an application is deployed via an .msi? It isn't very clear what you are asking | |
Re: Assuming you are using MSSQL (based on your other posts) you can create a new table with an identity like this: [code=sql] IF OBJECT_ID('TestTable123', 'U') IS NOT NULL DROP TABLE TestTable123 Create Table TestTable123 ( SerialNumber int identity(1000, 1), Column1 varchar(20) ) [/code] This example creates a new table (to … | |
Re: Here is an academic project for data access in Microsoft Access. It should give you a starting point: [url]http://www.itwriting.com/pcw/vbdotnetdata.php[/url] | |
Re: What browser are you running? In IE it has a zoom percentage in the lower right corner.. see if that is changing when you click. It is also accessible under "View -- Zoom" and also check "View -- Text Size". I bet one of those is changing | |
Re: Please use [code] tags in the future when pasting your code. When the page is recreated after the postback you are not wiring up the event so the application has no knowledge that an event is associated with that textbox. Reassign the delegage when the page posts back: [code=c#] protected … | |
Re: Are you looking for an example of an SP using many out parameters? If so then here is one : [code=sql] GO SET QUOTED_IDENTIFIER ON GO CREATE Procedure [dbo].[SensorImport7] @SensorName varchar(30), @ServerId int, @SerialNumber varchar(16), @SensorType tinyint, @RowIndex tinyint, @JobValueA varchar(8), @JobValueB varchar(8), @JobState varchar(8), @JobHumidity varchar(8), @JobTemperature varchar(8), @JobAnalog … | |
Re: Write an application to mock up the data. You can download zipcode databases that have population data .. and then mock up a cell phone company for a specific zip code. Look at the change over time in population in the zip codes relative to a certain phone CLI (???-xxx-xxxx) … | |
Re: Thats not enough information to help solve your problem. You should provide more information about the behavior and upload your project. | |
Re: How is the datagrind bound? If you used a [icode]DataSet[/icode] then it will have an associated table adapter to fill the dataset where you will call [icode].Update()[/icode] to push the update/delete/insert changes to the database | |
Re: Here is an example of using GET. The yahoo URI will succeed but the gmail address will throw an exception because the certificate is bad. [code=c#] using System; using System.IO; using System.Net; using System.Windows.Forms; namespace daniweb { public partial class frmSSL : Form { public frmSSL() { InitializeComponent(); } private … | |
Re: There is another article to supplement adatapost's post on code project: [url]http://www.codeproject.com/KB/cs/SocketApplication.aspx[/url] -- they are both great reads. You will want to use TCP for transferring the file | |
Re: You might also consider using an [icode]ErrorProvider[/icode] instead of a message box. I hate it when applications pop up a dialog while typing. You could set the error message on an invalid key press and wait until the control loses focus or a valid key is pressed then clear the … | |
Re: I'm going out on a limb and [b]assuming[/b] you are using linux. If that is the case you can use grep to find the word: [code=bash] sk@svn:/tmp$ ls sk@svn:/tmp$ mkdir -p ./some/junk/dir sk@svn:/tmp$ echo "viagra" >> ./some/junk/dir/somefile.txt sk@svn:/tmp$ grep -l -r -i viagra . ./some/junk/dir/somefile.txt [/code] For grep -- -l: … | |
Re: You can specify the encoding used in the streamwriter [code=c#] new StreamWriter(@"C:\path\", false, Encoding.Default); [/code] | |
Re: [QUOTE=Ramy Mahrous;913870]Please mark it as solved if it's. [code=sql] SELECT MAX(PK) FROM yourTable [/code] [/QUOTE] Using Max(PK) is a dangerous practice to get an identity value :( Use: [code=sql] Select Cast(SCOPE_IDENTITY() as int) --or Select @@IDENTITY [/code] They are slightly different and you should use [icode]SCOPE_IDENTITY()[/icode] for your purpose. | |
Re: Try this code out. You must build it before you can view the forms in the designer -- so when you first open it just close all the files, do a build, then use the designer. "FormEx.cs" is a descendant of "Form" and is just a class file -- not … |
The End.