Click here to Skip to main content
15,888,461 members
Home / Discussions / Database
   

Database

 
AnswerRe: Date difference with total years, months and days Pin
Mycroft Holmes2-Jul-13 1:21
professionalMycroft Holmes2-Jul-13 1:21 
GeneralRe: Date difference with total years, months and days Pin
Richard Deeming2-Jul-13 1:35
mveRichard Deeming2-Jul-13 1:35 
GeneralRe: Date difference with total years, months and days Pin
Tim Carmichael2-Jul-13 1:57
Tim Carmichael2-Jul-13 1:57 
GeneralRe: Date difference with total years, months and days Pin
Mycroft Holmes2-Jul-13 2:20
professionalMycroft Holmes2-Jul-13 2:20 
AnswerRe: Date difference with total years, months and days Pin
Tim Carmichael2-Jul-13 1:59
Tim Carmichael2-Jul-13 1:59 
QuestionKeep Client QL DB Updated Pin
Kevin Marois1-Jul-13 7:02
professionalKevin Marois1-Jul-13 7:02 
AnswerRe: Keep Client QL DB Updated Pin
Mycroft Holmes1-Jul-13 12:43
professionalMycroft Holmes1-Jul-13 12:43 
QuestionAutomatically open keys upon connection Pin
PIEBALDconsult28-Jun-13 7:58
mvePIEBALDconsult28-Jun-13 7:58 
I'm experimenting with encrypting some values in SQL Server (2012). This requires that I open the appropriate key(s) for the user/role. I haven't seen any information on doing this automatically.
I have written a procedure that will open keys by querying a table that associates users with keys. When I open the database in ADO.net via C#, I can simply check for the existence of the procedure and execute it before proceding.

[I see that procedures can be executed when the server starts, but that's not what I want.]

But it seems like there should be a standard/conventional/"best practice" way to do this at the database level so that the keys get opened even when I connect from SSMS or SSIS.

Can keys be opened automatically depending on the user?
Can a procedure be executed automatically when a user connects?
QuestionDerived Fields Pin
eddieangel28-Jun-13 6:49
eddieangel28-Jun-13 6:49 
AnswerRe: Derived Fields Pin
Tim Carmichael28-Jun-13 7:12
Tim Carmichael28-Jun-13 7:12 
AnswerRe: Derived Fields Pin
PIEBALDconsult28-Jun-13 7:25
mvePIEBALDconsult28-Jun-13 7:25 
AnswerRe: Derived Fields Pin
Mycroft Holmes28-Jun-13 12:53
professionalMycroft Holmes28-Jun-13 12:53 
GeneralCrazy many data from database to array then a lot of calculation Pin
crunchor26-Jun-13 7:40
crunchor26-Jun-13 7:40 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
wizardzz26-Jun-13 8:20
wizardzz26-Jun-13 8:20 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
crunchor26-Jun-13 8:23
crunchor26-Jun-13 8:23 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
wizardzz26-Jun-13 8:26
wizardzz26-Jun-13 8:26 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
crunchor26-Jun-13 8:29
crunchor26-Jun-13 8:29 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
Ron Beyer26-Jun-13 8:25
professionalRon Beyer26-Jun-13 8:25 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
Marco Bertschi26-Jun-13 8:39
protectorMarco Bertschi26-Jun-13 8:39 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
Big Daddy Farang26-Jun-13 8:41
Big Daddy Farang26-Jun-13 8:41 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
Marco Bertschi26-Jun-13 21:10
protectorMarco Bertschi26-Jun-13 21:10 
AnswerRe: Crazy many data from database to array then a lot of calculation Pin
lewax0026-Jun-13 9:42
lewax0026-Jun-13 9:42 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
crunchor26-Jun-13 15:49
crunchor26-Jun-13 15:49 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
lewax0026-Jun-13 16:20
lewax0026-Jun-13 16:20 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
crunchor26-Jun-13 17:14
crunchor26-Jun-13 17:14 

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.