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
D

der flori

@der flori
About
Posts
6
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem with SQL-Server Date Query
    D der flori

    thanks a lot, this link solved my problem :)

    C#

  • Problem with SQL-Server Date Query
    D der flori

    yes, they are stored with time! But when I change the string in this way I get an syntax error:

    string str_Verlaufdate = "'" + p.Verlauf_date.Month + "/" + p.Verlauf_date.Day + "/" + p.Verlauf_date.Year + " 00:00:00'";

    I don´t know, how the format of the string has to look like.

    C#

  • Problem with SQL-Server Date Query
    D der flori

    hi, i have a little problem with the following Query:

    string str_Verlaufdate = "'" + p.Verlauf_date.Month + "/" + p.Verlauf_date.Day + "/" + p.Verlauf_date.Year + "'";

    DataRow[] dr2 = this.dataNet.Tables["Verlauf"].Select("BehID = '"+v[0].ToString()+"' and Date = "+str_Verlaufdate);

    I don´t get any result, but there exist a lot of records that match to this date in the database!

    C#

  • EvaluateException at Select-Funktion
    D der flori

    hey, thanks a lot :))) that works fine and solves the problem perfectly!

    C# help csharp visual-studio

  • EvaluateException at Select-Funktion
    D der flori

    I already tried to create a DateTime Object from

    datum

    and the Cast worked perfectly, but there occurs the same Exception when I edit the Code as follows:

    DataRow[] VerlaufDatum = data1.Verlauf.Select("BehandlungsID=" + BehID + " AND Datum= '" + Convert.ToDateTime(datum) + "'");

    I think it has something to do with the '=' Operator, but I don´t know what´s wrong with it :(

    C# help csharp visual-studio

  • EvaluateException at Select-Funktion
    D der flori

    Hi, I´d like to select DataRows with an Id and a Date, but I always get the following Error-Message: Cannot perform '=' operation on System.DateTime and System.String. Here my Code:

    string BehID = data1.Behandlungen.Rows.Count.ToString();
    string datum = microsim1["picdate"].ToString();
    DataRow[] VerlaufDatum = data1.Verlauf.Select("BehandlungsID=" + BehID + " AND Datum= '" + datum + "'");

    It worked perfectly witch Visual Studio 2003, but with Visual Studio 2008 I always get this Exception :( thanks for your help.

    C# help csharp visual-studio
  • Login

  • Don't have an account? Register

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