Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: help in datagride view CellLeave Pin
Muhammad Waqas Aziz22-May-15 0:35
Muhammad Waqas Aziz22-May-15 0:35 
GeneralRe: help in datagride view CellLeave Pin
aahamdan26-May-15 13:02
aahamdan26-May-15 13:02 
QuestionControls Pin
Member 1136270921-May-15 20:22
Member 1136270921-May-15 20:22 
AnswerRe: Controls Pin
OriginalGriff21-May-15 22:25
mveOriginalGriff21-May-15 22:25 
AnswerRe: Controls Pin
Eddy Vluggen22-May-15 2:17
professionalEddy Vluggen22-May-15 2:17 
QuestionDayPilot Calendar cannot Update clientState If i Navigate... Pin
Victor Ebe21-May-15 6:11
Victor Ebe21-May-15 6:11 
AnswerRe: DayPilot Calendar cannot Update clientState If i Navigate... Pin
Ravi Bhavnani21-May-15 8:07
professionalRavi Bhavnani21-May-15 8:07 
QuestionHow to use password protected sqlite database? Pin
DPaul199421-May-15 5:07
DPaul199421-May-15 5:07 
I have a sqlite database protected by password and I can't use it in query. How should I modify the code to read data from a protected database?
C#
private static string conn = @"Data Source=aplicatie.db;Pooling=true;FailIfMissing=false;Version=3;Password=example";

An example with query:
C#
string selectutilizator = "SELECT username,prenume,licenta FROM accounts";
            SQLiteCommand selcom = new SQLiteCommand(selectutilizator, Conexiune.getConnection());
            selcom.CommandType = CommandType.Text;
            using (SQLiteDataReader read = selcom.ExecuteReader())
            {
                if (read.Read())
                {
                    SimulatorManager.Nume = (string)read["username"];
                    SimulatorManager.Prenume = (string)read["prenume"];
                    SimulatorManager.Utilizator = SimulatorManager.Nume + " " + SimulatorManager.Prenume;
                }
            }

Error is:
C#
file is encrypted or is not a database

QuestionRe: How to use password protected sqlite database? Pin
Richard MacCutchan21-May-15 5:38
mveRichard MacCutchan21-May-15 5:38 
AnswerRe: How to use password protected sqlite database? Pin
DPaul199421-May-15 6:12
DPaul199421-May-15 6:12 
GeneralRe: How to use password protected sqlite database? Pin
Richard MacCutchan21-May-15 7:48
mveRichard MacCutchan21-May-15 7:48 
GeneralRe: How to use password protected sqlite database? Pin
Eddy Vluggen21-May-15 8:25
professionalEddy Vluggen21-May-15 8:25 
AnswerRe: How to use password protected sqlite database? Pin
OriginalGriff21-May-15 6:05
mveOriginalGriff21-May-15 6:05 
QuestionProgram for an older version than the one in GAC Pin
Member 1124071321-May-15 4:22
Member 1124071321-May-15 4:22 
SuggestionRe: Program for an older version than the one in GAC Pin
Abhipal Singh21-May-15 8:11
professionalAbhipal Singh21-May-15 8:11 
QuestionWant to ask about Memory (private working set) Windows Services Pin
Mercurius8421-May-15 1:54
Mercurius8421-May-15 1:54 
AnswerRe: Want to ask about Memory (private working set) Windows Services Pin
OriginalGriff21-May-15 2:24
mveOriginalGriff21-May-15 2:24 
AnswerRe: Want to ask about Memory (private working set) Windows Services Pin
Dave Kreskowiak21-May-15 2:28
mveDave Kreskowiak21-May-15 2:28 
QuestionHelp this code shows to me what to do?? Pin
abdo.kouta21-May-15 1:45
abdo.kouta21-May-15 1:45 
AnswerRe: Help this code shows to me what to do?? Pin
Pete O'Hanlon21-May-15 2:13
mvePete O'Hanlon21-May-15 2:13 
AnswerRe: Help this code shows to me what to do?? Pin
Dave Kreskowiak21-May-15 2:21
mveDave Kreskowiak21-May-15 2:21 
GeneralRe: Help this code shows to me what to do?? Pin
abdo.kouta21-May-15 2:29
abdo.kouta21-May-15 2:29 
GeneralRe: Help this code shows to me what to do?? Pin
siddartha kopparapu21-May-15 3:12
professionalsiddartha kopparapu21-May-15 3:12 
GeneralRe: Help this code shows to me what to do?? Pin
Dave Kreskowiak21-May-15 6:44
mveDave Kreskowiak21-May-15 6:44 
QuestionC# Help with new level start in Unity Pin
Member 1170715120-May-15 17:33
Member 1170715120-May-15 17:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.