Search:

Type: Posts; User: Serge

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    7
    Views
    271

    Re: EF or NHirbernate?

    If you need a Document database (NoSQL), I would chose MongoDB over RavenDB, besides MongoDB is free.
  2. Replies
    3
    Views
    147

    Re: Upsize Access DB to SQL Server 2008

    You can also do a straight through IMPORT into SQL Server. Select Access as your source. Then write a t-sql script to change each table to use identity. You can query sys.tables, loop through them...
  3. Replies
    15
    Views
    677

    Re: Alternative to VB.net ?

    The reason a lot of people are having a tough time moving from VB6 to .NET is because VB6 (and early) was never an object oriented language, more like Object Based. VB6 has lots of static function...
  4. VS 2012 Re: FormAuthentication Signout when browser close

    You can try to use body.onblur event and do a location.href = '/account/logoff' (but it will not work 100%). Also you can specify a small timeout in your web.config (default is 30 minutes).

    ...
  5. Replies
    7
    Views
    271

    Re: EF or NHirbernate?

    My personal view on EF is that if my application has many concurrent users, I would never ever use EF. It's the slowest framework there is. Although MS has optimized it a bit in 4.5, its still slow...
  6. Re: How to send JQuery function value to @html.actionlink method

    You should assign a function call in your A tag, then change location.href to your ActionResult. Do not use void. You don't have to use an HTML helper because you don't really need your URL to go...
  7. Replies
    4
    Views
    231

    Re: Searching via IN clause

    Or you can just execute a dynamic sql passing your variable with "IN" values.
  8. Re: Determine where the records of an RDL comes from?

    Run a SQL Server PROFILE and monitor your sql statements. Navigate to the page/form where you expect to have that SP to run, check back in the profiler which SP was ran.
  9. Replies
    3
    Views
    147

    Re: Upsize Access DB to SQL Server 2008

    You can accomplish it in 2 ways:

    1. Export data to SQL Server and then manually change the NUMBER field to include identity.
    2. Create a table that already defines that field as identity, enable...
  10. Replies
    14
    Views
    875

    Re: MVC 4 using Stored Procedure to display view

    The reason it worked with a ViewBag is because you explicitly assigned value to it.
    This code:


    var viewModel = db.stp_getEmployees(0, 1, null, "", "[Name]");
    ViewBag.Employees =...
  11. Replies
    8
    Views
    305

    Re: SQL Backup

    You cannot copy those 2 files while the database is attached and live. SQL Server has it's own format to store both database and the log in 1 file (unless you want it in .sql file as an export).
  12. Replies
    4
    Views
    364

    Re: NoSQL Database to support Key Value Pairs

    I can tell you first hand about NoSQL database as I'm using it in conjunction with SQL Server. NoSQL is not a solution for ALL scenarios, there are pros and cons. I personally use MongoDB but there...
  13. Replies
    5
    Views
    376

    Re: launching excel from asp.net app

    You can't launch Excel from ASP.NET because the file will be opened on the SERVER and not your computer. What you can do is process the file and serve it for the client to download it.
  14. Replies
    14
    Views
    875

    Re: MVC 4 using Stored Procedure to display view

    It's because if you look at your code, your empList is never being populated with records. I'm not sure what you are using for your data access layer (LinqToSQL, Entity Framework, pure ADO.NET or...
  15. Replies
    7
    Views
    587

    Re: IE 10 (or what in god's name is this mess)

    What are the problems are you having with IE10?
  16. Replies
    14
    Views
    875

    Re: MVC 4 using Stored Procedure to display view

    The code you have should work. All you have to do is "return View(empList )"; at the end of your ActionResult. Just make sure you define your model (in the view) as List<EmployeeInfo>.

    In your...
  17. Re: Sqlite and db locking? 2 programs, 1 writing, 1 reading...

    Another thing to think about is your transaction log. If you insert 2mil records in a loop your transaction log file gets bigger and bigger. The bigger the transaction log file, the slower the...
  18. Replies
    14
    Views
    875

    Re: MVC 4 using Stored Procedure to display view

    If you've ever done it in MVC without stored procedure than you already should know the answer. Using stored procedure in opposed to dynamic sql statement (or ORM if you are using one) doesn't make...
  19. Thread: Sqlite with vb6

    by Serge
    Replies
    12
    Views
    597

    Re: Sqlite with vb6

    I don't think .NET is going anywhere. If there is anything, it's expanding. VB6 (and I used to love it) should go away. It doesn't serve that much anymore. It's lacking a lot of programming...
  20. Re: Sqlite and db locking? 2 programs, 1 writing, 1 reading...

    If you don't mind getting "somewhat old" data, you can use NOLOCK to do "dirty reads".

    SELECT Field1,Field2 FROM Table(nolock)

    You might not get all the data. When the first portion is being...
  21. Replies
    5
    Views
    227

    Re: manage large database

    If you are searching for partial names for example (or any other text-like keywords), this query:
    select * from mytable where lastname like 'Abc%' will not use an index and the query on a couple of...
  22. Re: New Feature on CodeGuru (sister site): Tech IQ: Are You Better than a C# Rookie?

    Sorry to be blunt but this quiz is irrelevant.


    It doesn't provide even a partial scope of C#.
    C# is not only used to create WINDOWS applications.
    There were a couple of questions related...
  23. Re: Arithmetic overflow error converting expression to data type nvarchar.

    That error indicates that the float might not have enough to store the value. It is not a problem with varchar. Use double instead of float (in you cast statement).
  24. Replies
    2
    Views
    726

    VS 2010 Re: Uploading Files in ASP .NET MVC3

    You can read Request.Files in your ActionResult. It's pretty easy to do.
  25. Re: Can't change the contents of a table in SQL Server2005

    I would second this except the indexes. I would add all indexes(except PK) afterwards. I always do that because most of the time I move a lot of data and populating a table with lots of data is slow....
  26. Replies
    11
    Views
    743

    Re: Executing a Stored Procedure in VB.net

    Have you tested the stored proc itself (in sql server management studio)? Does it return data?
  27. Replies
    4
    Views
    306

    Re: Query regarding MySQL Databases....

    Relational database doesn't really scale horizontally. So you can either use RAID5/10/50/60 of multiple drives or deal with the drive size later. If you don't need transactions then I would even...
  28. Replies
    1
    Views
    262

    Re: Read tables from Oracle to SQL Server

    There are many ways of doing that.

    You can link an oracle server/db in the SQL Server then do a select from the linked server and insert into sql server table(s).
    You can import the data...
  29. Replies
    1
    Views
    456

    Re: Convert Hex to display time and date

    It depends how the data is stored. If the data represents a little-endian 64-bit integer, then you can convert it like this:


    public DateTime HexToUTCDate(string hex)
    {
    //Convert Hex To...
  30. Replies
    2
    Views
    425

    Re: Find element ID: Expression Expected Error

    Looks like you forgot one parenthesis:

    Change this:
    var target = $this).attr("id");

    to this
    var target = $(this).attr("id");
  31. Replies
    15
    Views
    2,193

    Re: [RESOLVED] How much can I load up into the DOM?

    I understand your reasons but until you get those arrays loaded the user will just sit there and wait. Although it might take a couple of seconds and you might only get one array of 25k records to...
  32. Replies
    15
    Views
    2,193

    Re: How much can I load up into the DOM?

    That goes against all rules in web page development. Your initial load will be slow(er). Also if you have a public website, you will be heavily penalized by search engines. Your rank is also based on...
  33. Replies
    15
    Views
    2,193

    Re: How much can I load up into the DOM?

    I've used autocomplete with 500k user records (ajax calls). With proper indexes in the table, it works very well even if you set minChars: 1.
  34. Replies
    3
    Views
    495

    Re: How to Read m4a tags in C#?

    http://www.codeproject.com/Articles/50056/Read-M4A-tags-in-C
  35. Re: Adding MVC project to existing Web application project

    1. You can actually use MVC's routing to redirect from one project to another but this method could be problematic if you have many link types to work with.
    2. You can just merge 2 projects into 1...
  36. Replies
    3
    Views
    1,319

    VS 2010 Re: Customizing SimpleMembership Provider

    Even if you create your own custom membership provider, you shouldn't use USERS table to store extra fields. You can either implement your own custom PROFILE provider (as I did) or just use a built...
  37. Replies
    5
    Views
    427

    Re: speed up query execution

    Your query looks pretty simple (although it's not recommended to just concatenate strings to your WHERE clause, as it opens your application for SQL Injections, use parametrized query instead ). But...
  38. Replies
    1
    Views
    1,052

    VS 2010 Re: passing back ViewData

    First thing first, you cannot store your IEnumerable values in the hidden box.

    Question, are you trying to do the update call through Ajax? If that's the case you will have to store your...
  39. VS 2010 Re: [MVC3] Implementing a custom validation attribute for CompareTo

    Actually ActionFilters CAN work both on the class level as well as on an individual ActionResult. As long as you don't decorate your ActionFilter with definition to ONLY allow it on the class level....
  40. Replies
    1
    Views
    650

    Re: Create new Table in DataBase

    The only way I know is to call ExecuteStoreCommand on the ObjectContext object.

    objectContext.ExecuteStoreCommand
    And I believe this code will only work in EntityFramework 4.0.
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4