RevTorA's Profile User Rating: *****

Reputation: 76 Whiz
Group:
Authors
Active Posts:
251 (0.21 per day)
Joined:
22-April 11
Profile Views:
9,352
Last Active:
User is offline Yesterday, 03:20 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Honda
Dream Kudos:
200
Icon   RevTorA has not set their status

Posts I've Made

  1. In Topic: Can't Query local DB

    Posted 26 Jul 2014

    View Postandrewsw, on 26 July 2014 - 07:16 PM, said:

    A guru will probably want to see the latest version of the connnection-string you are attempting. In particular, you need to double-up on all the back-slashes in a normal string, or precede the string with @ to create a verbatim string literal @"like\ this".

    Anyway, good luck.


    Yeah, I've escaped all the backslashes. Hopefully someone who has worked with these before will show up.
  2. In Topic: Can't Query local DB

    Posted 26 Jul 2014

    View Postandrewsw, on 26 July 2014 - 05:57 PM, said:

    This (LocalDB\v11.0); is different to this (LocalDB)\v11.0;.

    I believe you also actually type '|DataDirectory|', not App_Data.


    The site you linked actually shows two different versions, I'll try it with the closing parantheses further to the left.

    View Postandrewsw, on 26 July 2014 - 05:57 PM, said:

    Quote

    I've been reading documentation and tutorials for two days to no avail.

    How so? You only mentioned recently that you didn't consider the need for a connection string :whistling:/>/>

    As I said, the documentation stated that the server would first look for the db name (without the extension) in App_Data first before looking for connection strings in the webconfig.

    Edit: When using |DataDirectory| I get an "Illegal Character" error. Replacing (LocalDB\\v11.0) with (LocalDB)\\v11.0 just gives the same error as before. I guess I'll just have to wait for the gurus to get back on :\
  3. In Topic: Can't Query local DB

    Posted 26 Jul 2014

    Database.Open() can receive the connection string, but regardless I get an error now that I didn't get before when just opening "db".

    Connection string "Data Source=(LocalDB\v11.0);AttachDbFileName=App_Data\db.mdf;InitialCatalog=db;IntegratedSecurity=True;MultipleActiveResultSets=True" was not found. 
    


    Any ASP.NET gurus around that can explain how this is supposed to work, I've been reading documentation and tutorials for two days to no avail.
  4. In Topic: Can't Query local DB

    Posted 26 Jul 2014

    View Postandrewsw, on 26 July 2014 - 01:25 PM, said:

    What does your connection-string look like? Presumably this is in your Database.Open() method.


    I'm sad to say I was under the assumption that a db would be found in the App_Data folder without the need for a connection string. I'll try fixing that using what you gave me for a local db.

    Edit: I want to confirm if this looks right:
    var db = Database.Open("Data Source=(LocalDB\v11.0);AttachDbFileName=App_Data\db.mdf;InitialCatalog=db;IntegratedSecurity=True;MultipleActiveResultSets=True");

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
10
Programming Languages:
C++, C#, FreeBasic, Java, Python

Contact Information

E-mail:
Private

Friends

Comments

Page 1 of 1
  1. Photo

    janitar1 Icon

    29 Oct 2013 - 22:19
    Hey you should finish the Tile Engine tutorial, it was excellent, it would be nice to see a Player Class get added to it :)
  2. Photo

    sNIk Icon

    22 Sep 2011 - 02:44
    hey dude, i love your tile engine articles. thats a very good point to start with. :) simple and clean as it should be.
    just hope you are going to release the other parts covering animations, collisions and so on. :)
    cheers
  3. Photo

    C++Noobster Icon

    20 Jul 2011 - 10:41
    You need to help us people that ask questions in your Tile Engine fourm post things
  4. Photo

    ishkabible Icon

    18 May 2011 - 06:04
    the maps in crysis are pretty well open world which was very innovative for an FPS. far cry had an even more open world and was more RPG like. so far games like Oblivion and Fallout take the cake for open world :)
  5. Photo

    ishkabible Icon

    17 May 2011 - 20:48
    ya, i still want to play Crysis 2. in my opinion COD4 MW2 had better graphics than Crysis, not to mention how clean it was. Crysis always seemed like it was only made for computers that could play it on high or ultra. even on High some of the stuff doesn't look perfect.
  6. Photo

    ishkabible Icon

    15 May 2011 - 10:45
    im up for Battle Feild 3. Crysis 2 isn't gonna have better graphics than Crysis 1, they just cleaned it up a bit(models, textures) and made it more efficient. in all honesty Crysis has fallen off its thrown a little lately.
  7. Photo

    RevTorA Icon

    13 May 2011 - 20:41
    Thanks man. I was starting to feel I wasn't really helping much hehe, glad some think so.
  8. Photo

    ishkabible Icon

    13 May 2011 - 18:12
    hey new member!! your doing a grate job in the C++ forums keep it up!!
Page 1 of 1