2,245 Posted Topics

Member Avatar for Thireus

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 …

Member Avatar for Thireus
0
192
Member Avatar for XavierExtreme

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 …

Member Avatar for XavierExtreme
0
109
Member Avatar for SammiSmi

[url]http://www.codeproject.com/[/url] also has a lot of articles with full source code and explanations.

Member Avatar for serkan sendur
0
101
Member Avatar for ermithun

[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]

Member Avatar for Dream2code
0
95
Member Avatar for pepcoder

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; } …

Member Avatar for sknake
0
134
Member Avatar for Acidburn

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 …

Member Avatar for sknake
0
145
Member Avatar for Alexpap

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 …

Member Avatar for sknake
0
156
Member Avatar for krokodajl

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 …

Member Avatar for rathnakar
0
189
Member Avatar for chewy81

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 …

Member Avatar for Ramy Mahrous
0
98
Member Avatar for nccsbim071

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"), …

Member Avatar for sknake
0
405
Member Avatar for Michael26

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; …

Member Avatar for sknake
0
112
Member Avatar for fatjoez

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 …

Member Avatar for rathnakar
0
214
Member Avatar for NextCom

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'.

Member Avatar for rathnakar
-1
3K
Member Avatar for ypdev

[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 …

Member Avatar for ypdev
0
213
Member Avatar for nccsbim071

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 …

Member Avatar for nccsbim071
0
90
Member Avatar for dooders

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 …

Member Avatar for gerbil
0
184
Member Avatar for tig2810

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 …

Member Avatar for serkan sendur
0
178
Member Avatar for mspake

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.

Member Avatar for gerbil
0
130
Member Avatar for HLA91

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 …

Member Avatar for sknake
0
669
Member Avatar for izzykatz

Did you change the computer name? [url]http://support.microsoft.com/kb/884564[/url]

Member Avatar for sknake
0
92
Member Avatar for sonia sardana

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 …

Member Avatar for sknake
0
266
Member Avatar for Link82

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]

Member Avatar for sknake
0
303
Member Avatar for k2k

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 …

Member Avatar for sknake
0
91
Member Avatar for dhwani2728

Take a look at code project: [url]http://www.codeproject.com/KB/vb/[/url]

Member Avatar for sknake
0
38
Member Avatar for tig2810

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.

Member Avatar for sknake
0
127
Member Avatar for Pankaj18

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]

Member Avatar for sknake
0
128
Member Avatar for shankbond

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 …

Member Avatar for sknake
0
86
Member Avatar for santhanalakshmi

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

Member Avatar for santhanalakshmi
0
88
Member Avatar for S2009
Member Avatar for S2009
0
152
Member Avatar for sivak
Re: sql

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 …

Member Avatar for sknake
0
88
Member Avatar for RahulV
Member Avatar for yassar

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.

Member Avatar for yassar
0
189
Member Avatar for elidotnet

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

Member Avatar for elidotnet
0
78
Member Avatar for ariez88

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 …

Member Avatar for mail2saion
0
96
Member Avatar for sandeshcha

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]

Member Avatar for sandeshcha
0
56
Member Avatar for slash49er

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

Member Avatar for gerbil
0
125
Member Avatar for dpreznik

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 …

Member Avatar for sknake
0
102
Member Avatar for HBMSGuy

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 …

Member Avatar for sknake
0
81
Member Avatar for TimeShift536

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) …

Member Avatar for sknake
0
113
Member Avatar for shahul.hameed

Thats not enough information to help solve your problem. You should provide more information about the behavior and upload your project.

Member Avatar for sknake
0
44
Member Avatar for elidotnet

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

Member Avatar for sknake
-1
53
Member Avatar for sivak
Re: SSL

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 …

Member Avatar for sknake
0
695
Member Avatar for tanvi bahl

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

Member Avatar for sknake
0
89
Member Avatar for sat4ever0606
Member Avatar for chathuD

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 …

Member Avatar for Ramy Mahrous
0
151
Member Avatar for elidotnet
Member Avatar for daprezjer

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: …

Member Avatar for Fest3er
0
116
Member Avatar for e^x

You can specify the encoding used in the streamwriter [code=c#] new StreamWriter(@"C:\path\", false, Encoding.Default); [/code]

Member Avatar for sknake
0
160
Member Avatar for functionalCode

[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.

Member Avatar for Ramy Mahrous
0
104
Member Avatar for S2009

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 …

Member Avatar for sknake
0
106

The End.