Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mersad00

@mersad00
About
Posts
23
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • convert unicode to iransystem
    M mersad00

    Hi there, i'm really in need of a convertor to convert unicode character map to iran system charachter map Please Help!

    C# help

  • out of memory !
    M mersad00

    hi there! i have a big problem with memory releasing in c#, let me explain u my case: i have a sql class (sqlconnection+ sqlDataAdapter )which fill a DataTable that contains about 34000 rows, now the memory consumtion goes up about twice than before query executed! but the problem is when user closes the host form, memory would not be released compeletly! so after 3 or 4 time execution, application stopped working and out of memory exception! I tried this solutions: Disposing Table- GC.Finalize- GC.Collect and so but they wont return whole of memory... plz HELPPPPP

    C# database csharp performance help

  • realtime update needing [modified]
    M mersad00

    djj55 wrote:

    You would need to calculate the maximum average in this query.

    how i could do this?

    Database database tools help announcement

  • realtime update needing [modified]
    M mersad00

    row #5 expected to be updated to 233, not 500

    Database database tools help announcement

  • realtime update needing [modified]
    M mersad00

    hi everybody, I have a big problem with update statement, let me mention the situation by exact script and results! first create trans table=>

    create table trans(
    id bigint identity(1,1) not null,
    price decimal(18,0) null,
    relatedid bigint null)

    Then fill it by this script

    Insert into trans (price,relatedid)values(100,NULL)
    Insert into trans (price,relatedid)values(100,NULL)
    Insert into trans (price,relatedid)values(500,NULL)
    Insert into trans (price,relatedid)values(1,NULL)
    Insert into trans (price,relatedid)values(1,3)

    Now run this query!

    Update trans
    set price=(case when relatedid is null then (select avg(price) from trans where id<=t.id)
    else (select top(1) price from trans where id=t.relatedid) end)
    from trans t

    After execution of query I expect this result: id-----price-----relatedid 1 100 NULL 2 300 NULL 3 200 NULL 4 200 3 <======== realy expected!!!! But this is the result!!! id-----price-----relatedid 1 100 NULL 2 300 NULL 3 200 NULL <======= #3 row 4 1 3 <===== wrong value, i mean this is the value before update row with id 3 has been updated before but update doesnt know this!!!!! WHAT I NEED i need to get expected result from this execution!!!! plzzzzzzzzzzz

    modified on Wednesday, April 13, 2011 7:53 AM

    Database database tools help announcement

  • refresh values after each row update [modified]
    M mersad00

    plz take look at edited message...

    Database database tools help announcement

  • refresh values after each row update [modified]
    M mersad00

    hi everybody, I have a big problem with update statement, let me mention the situation by exact script and results! first create trans table=>

    create table trans(
    id bigint identity(1,1) not null,
    price decimal(18,0) null,
    relatedid bigint null)

    Then fill it by this script

    Insert into trans (price,relatedid)values(100,NULL)
    Insert into trans (price,relatedid)values(100,NULL)
    Insert into trans (price,relatedid)values(500,NULL)
    Insert into trans (price,relatedid)values(1,NULL)
    Insert into trans (price,relatedid)values(1,3)

    Now run this query!

    Update trans
    set price=(case when relatedid is null then (select avg(price) from trans where id=
    After execution of query I expect this result:
    id-----price-----relatedid
    1 100 NULL
    2 300 NULL
    3 200 NULL
    4 200 3 <======== realy expected!!!!

    But this is the result!!!
    id-----price-----relatedid
    1 100 NULL
    2 300 NULL
    3 200 NULL <======= #3 row
    4 1 3 <===== wrong value, i mean this is the value before update

    row with id 3 has been updated before but update doesnt know this!!!!!

    WHAT I NEED i need to get expected result from this execution!!!! plzzzzzzzzzzz

    modified on Tuesday, April 12, 2011 10:34 AM

    Database database tools help announcement

  • sql server connection
    M mersad00

    hi there, Im really confused! i need to connect sql server from my pocket pc ... i made a wireless network and connect them to each other. now with this code i try to connect ...

    SqlConnection con = new SqlConnection(@"Data Source=mohsen-pc\sqlexpress;Initial Catalog=ManagerCo;Persist Security Info=True;User ID=sa;Password=123456");
    SqlCommand cmd = con.CreateCommand();
    try
    {
    con.Open();
    }
    catch (Exception f)
    {
    MessageBox.Show(f.Message);
    }

    sqlexception is result! note that firewall is switched off, sql express accepts remote and configured correctly plz help!!!!!!!!!1

    Mobile sysadmin database sql-server security help

  • connect sql server over wifi
    M mersad00

    Hi there, as i titled im going to connect sql server over wifi, i use windows mobile 6.5 on my device, i installed sql server ... its ready for remote connection, now how i could make network between device and my pc? please answer me in details!!!!

    Mobile sysadmin database sql-server question

  • condition for x64
    M mersad00

    it wasnt what i need, I need a condition varaible for windows installer, to do a custom action in two way depends on 64bit os or else... like

    memmory>=4000

    i need something to check 64bit like

    64bit=1

    C# question announcement workspace

  • condition for x64
    M mersad00

    hi there, im going to run a custom action in a setup proj... its a driver installer which depends on windows platform now i have two version of this driver x64 and x86 ... i know there is a condition properties for detecting platform... but what should i write in it for this reason?

    C# question announcement workspace

  • remote connection sql express 2008
    M mersad00

    http://www.sql-articles.com/scripts/enabling-remote-connections-via-dos-or-t-sql[^] the actual link! THANK YOU :laugh:

    Database database sysadmin

  • remote connection sql express 2008
    M mersad00

    Thank you, but the link does not work! this is the link for sp of enable remote: http://www.sql-articles.com/index.php?page=Scripts/remoteconn_dos.php[^] which opens no downloadable text page!

    Database database sysadmin

  • remote connection sql express 2008
    M mersad00

    Hi, look im going to configure sql express 2008 for accepting remote connection, BUT, automically ... I mean the enduser will not set anything, after installing sql express it whould be configured for network connections and etc. actually i need sql scripts for this...

    Database database sysadmin

  • how to set preprocessing when using devenv from the command line?
    M mersad00

    i meaned condition compilation symbols! there is no info about condition compilation symbols in that link

    C# tutorial question

  • how to set preprocessing when using devenv from the command line?
    M mersad00

    please answer with sample... i googled but i mixed up!

    C# tutorial question

  • How to compile (make) setup project in command line
    M mersad00

    MS build cant build vdproj, test it!!!!!! devenv could do this! :)

    C# csharp tutorial workspace

  • How to compile (make) setup project in command line
    M mersad00

    Hi, as i titled i really need to compile a vdproj in command line or in c# classes! i googled and i found nothing really related! THANK YOU

    C# csharp tutorial workspace

  • SqlCommand
    M mersad00

    Hi, Specially parameters used to pass data to ur query , as inset update delete even select

    select *
    from t1
    where id = 12

    this query always returns a fixed result, now going to make it gloabal, i mean change the 12 value to needed value, so u use parameters as:

    select *
    from t1
    where id=@id

    now in command line, u must set the parameter, look at this method as a sample:

        private DataTable SelectParameter(int idvalue, bool useWithvalue)
        {
            string constr = "";
            SqlConnection con = new SqlConnection(constr);
            SqlCommand cmd = new SqlCommand("select \* from t1 where id=@id", con);
    
            if (useWithvalue)
            {
                cmd.Parameters.AddWithValue("@id", idvalue);
               
            }
            else
            {
               
                SqlParameter p = new SqlParameter("@id", SqlDbType.Int);
                p.Value = idvalue;
                cmd.Parameters.Add(p);
            }
    
            con.Open();
            DataTable dt = new DataTable();
            dt.Load(cmd.ExecuteReader());
            return dt;
    
        }
    

    in cases that u are going to set the value type of parameter u should use add else u could use both of them.

    C# performance question

  • is this my ocx certainly?
    M mersad00

    look for example my application uses lpl.ocx ... well now I want to be sure that this lpl.ocx is the true one like this

    assemblycheck c=new assemblycheck;
    //lpl.ocx is assembly name and 193718378378937937732 is crc number or digitally sign
    if(!c.check("lpl.ocx","193718378378937937732"))
    ///cracked assmbly

    actually i need a way to check current assembly used in my application that could check assembly in c# code with digital signed number as I mentioned. thank you

    C# hardware help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups