Search Results

Showing results 1 to 40 of 331
Search took 0.03 seconds.
Search: Posts Made By: dickersonka
Forum: C# 18 Days Ago
Replies: 3
Views: 345
Posted By dickersonka
you need to have an open connection, just as it says, right before you call execute reader call this


if (conn1.State != ConnectionState.Open)
{
conn1.Open();
}

...
Forum: Java Apr 8th, 2009
Replies: 8
Views: 2,479
Posted By dickersonka
you are trying to run the jar file

do you have this in there?


public static void main(String [] args)


i'm assuming you don't, but for a jar file to be run, just like any other code, it...
Forum: C# Apr 7th, 2009
Replies: 8
Solved: arrays
Views: 562
Posted By dickersonka
its because you are using an untyped list for one, but you didn't have an else statement


if (yourValue == "b")
{
break;
}
else
{
numbers.Add(Convert.ToInt32(yourValue));
Forum: MS SQL Apr 7th, 2009
Replies: 2
Views: 1,301
Posted By dickersonka
there are other ways you could do this, but here's one


select
CAST(Reference AS INT) as REFERENCE
from tablename
Forum: C# Apr 7th, 2009
Replies: 8
Solved: arrays
Views: 562
Posted By dickersonka
you don't always have to use that way, but you can

you could also do something like this


foreach(int num in numbers)
{
Console.WriteLine(" " + num);
}
Forum: C# Apr 7th, 2009
Replies: 8
Solved: arrays
Views: 562
Posted By dickersonka
this will loop through all the values in your array
IEnumerator basically means you can use it to iterate your data

lets say you have 1, 5, 3, 8 in your array

this will print out

1 5 3 8
Forum: MySQL Apr 7th, 2009
Replies: 5
Views: 741
Posted By dickersonka
also try this statement also


select * FROM assign2 WHERE UPPER(CONVERT(keyword1 USING latin1)) LIKE '%MICROSOFT%';
Forum: MySQL Apr 7th, 2009
Replies: 5
Views: 741
Posted By dickersonka
What type of collation is this?

run this


SHOW FULL COLUMNS FROM assign2;
Forum: MS SQL Apr 3rd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
Awesome, you happen to know what the issue was with the one we were working with?
Forum: MS SQL Apr 2nd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
the stop table is only used in the subquery and can't be referenced outside of it

i don't get why, but it looks like the isdrop =1 is not just joining on those records

try adding this piece in...
Forum: MS SQL Apr 2nd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
its not late, only 5, just got a few left before work is done though, there is some data in here that isn't jiving

this will do a partial update, but might help determine what is going on

add...
Forum: MS SQL Apr 2nd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
so close, just something in there i'm just not catching right now, one last try for the evening, cross our fingers


UPDATE jobhistory
SET modifieddt =
(SELECT top 1...
Forum: MS SQL Apr 2nd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
but all stop.stopcompletiondatetime are not null?
Forum: MS SQL Apr 2nd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
hmmmm,

run this


select jobhistory.histjobid, stop.stopcompletiondatetime
from jobhistory
inner join jobxstop
on jobxstop.jobid = jobhistory.histjobid
inner join stop
Forum: MS SQL Apr 2nd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
sorry long day already, i didn't have the join on the original table, lets go back to your query the first time with that one line removed


UPDATE jobhistory
SET modifieddt =...
Forum: MS SQL Apr 2nd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
i can't completely tell the structure, but i believe this will work, just make sure you do a backup first!!!


UPDATE jobhistory
SET modifieddt =
(SELECT stop.stopcompletiondatetime
from...
Forum: MS SQL Apr 2nd, 2009
Replies: 19
Views: 1,269
Posted By dickersonka
you have this in here
INNER
JOIN stop
ON stop.stopcompletiondatetime = jobhistory.modifieddt

which will not work, because stopcompletiondatetime does not equal your modifieddt
Forum: C# Mar 19th, 2009
Replies: 4
Views: 579
Posted By dickersonka
The exe is the compiled solution, all exes have already been compiled as well

if you are in a winforms app, it needs to be compiled before running it, if you are in asp.net you can set the project...
Forum: C# Mar 17th, 2009
Replies: 4
Views: 3,042
Posted By dickersonka
In the past I have used SharpZipLib

http://www.icsharpcode.net/OpenSource/SharpZipLib/
Forum: MS SQL Mar 17th, 2009
Replies: 2
Views: 665
Posted By dickersonka
select p.ID,
(SELECT SUM(i.IncomeAmount) from Income i where i.PersonId = p.ID) AS INCOME_AMOUNT,
(SELECT SUM(o.OutcomeAmount) from Outcome o where o.PersonId = p.ID) AS OUTCOME_AMOUNT
from Person...
Forum: MS SQL Mar 17th, 2009
Replies: 2
Solved: greatest three
Views: 521
Posted By dickersonka
select top 3 *
from tableName
order by col3 desc
Forum: C# Mar 11th, 2009
Replies: 2
Views: 1,298
Posted By dickersonka
System.Diagnostics.Process.Start("calc")
Forum: MS SQL Mar 10th, 2009
Replies: 6
Views: 890
Posted By dickersonka
Ok, just wanted to make sure we aren't chasing a ghost

Rather than just adding the parameters with a name and value, try to add them with a name and type

SqlParameter param1 = new...
Forum: MySQL Mar 10th, 2009
Replies: 2
Solved: MySQLI
Views: 406
Posted By dickersonka
this doesn't have error handling, but here is how you do it following your line


$result = $mysqli->query($queryStr);

$row_count = $result->num_rows;

$result->close();
Forum: MS SQL Mar 10th, 2009
Replies: 6
Views: 890
Posted By dickersonka
For starters lets start off with syntax:

Did you see this line?
SqlParameter("@ResultTime", ddRTime.Text.Trim()));

your parameter is named @RTime
Forum: MS SQL Mar 10th, 2009
Replies: 6
Views: 890
Posted By dickersonka
Are you sure you set the column's data type to datetime? It sounds like you are using varchar
Forum: MS SQL Mar 8th, 2009
Replies: 10
Views: 1,658
Posted By dickersonka
Ahhh sorry, forgot you only needed sql server

here's a link that should help
http://www.nigelrivett.net/SQLTsql/RemoveNonNumericCharacters.html

here it is with modification

CREATE FUNCTION...
Forum: MS SQL Mar 7th, 2009
Replies: 10
Views: 1,658
Posted By dickersonka
here is my idea then


select translate('123AB45',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ') from dual;


i don't necessarily know the context...
Forum: C# Mar 6th, 2009
Replies: 2
Views: 627
Posted By dickersonka
of course, the same as you would any other property


public int[] LendMoney
{
get{return lendMoney;}
set{lendMoney = value;}
}
Forum: MS SQL Mar 5th, 2009
Replies: 10
Views: 1,658
Posted By dickersonka
would adding a trigger that will format the field to only be characters upon inserts and updates be sufficient?
Forum: ASP.NET Mar 5th, 2009
Replies: 4
Views: 962
Posted By dickersonka
well lets start with this

what is the connection string?
Forum: C# Mar 5th, 2009
Replies: 1
Solved: file path help
Views: 941
Posted By dickersonka
from the ui we get a filepath


string filePath = this.textBoxPath.value;

//We call our class like this from the ui
BusinessLogic logic = new BusinessLogic(filePath);
logic.Load();
Forum: MySQL Mar 4th, 2009
Replies: 17
Views: 1,450
Posted By dickersonka
look at my previous post with a subquery just for you javamedia :-)

i'm not against them at all, just meaning don't shy away from the joins, get a understanding of them and use them in combination...
Forum: MySQL Mar 4th, 2009
Replies: 17
Views: 1,450
Posted By dickersonka
sorry bout that, was a late night and didn't think twice about it

this will work

select
(select count(*) from posts p1 where p1.user_id = u.user_id) as post_count,
u.user_id
from users u...
Forum: C# Mar 3rd, 2009
Replies: 4
Views: 552
Posted By dickersonka
much more clear now, well if you really will have 50000 records at once or a large number of records, i would use the sql bulk insert

here's a link that should get you started in the right...
Forum: MySQL Mar 3rd, 2009
Replies: 17
Views: 1,450
Posted By dickersonka
you are trying to do an inner join on something that isn't there, all users don't have posts

unlike javamedia, i would suggest trying to use inner or outer joins, at least to me it makes life much...
Forum: C# Mar 3rd, 2009
Replies: 4
Views: 552
Posted By dickersonka
a couple possible options is dependent on how you are accessing your data

if lets say you are looping through ids and running a select on each id, then that is very inefficient as far as the...
Forum: C# Dec 2nd, 2008
Replies: 28
Views: 1,605
Posted By dickersonka
right, then the exception is correct

uri is expected to be a registered prefix, and javascript is not, things are working properly!!!
Forum: C# Dec 2nd, 2008
Replies: 28
Views: 1,605
Posted By dickersonka
lol whoa, i thought you said it was microsoft
Forum: C# Dec 2nd, 2008
Replies: 28
Views: 1,605
Posted By dickersonka
right, but when that throws an exception, what is the linkItem?
Showing results 1 to 40 of 331

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC