Click here to Skip to main content
15,926,144 members
Home / Discussions / Database
   

Database

 
AnswerRe: If Directory Structure is not known then how to provide file path for a FILENAME param Pin
Colin Angus Mackay19-Feb-07 0:40
Colin Angus Mackay19-Feb-07 0:40 
QuestionA couple of questions Pin
El'Cachubrey18-Feb-07 23:52
El'Cachubrey18-Feb-07 23:52 
QuestionWhere to work it out? Pin
Sam Heller18-Feb-07 23:01
Sam Heller18-Feb-07 23:01 
AnswerRe: Where to work it out? Pin
andyharman19-Feb-07 1:59
professionalandyharman19-Feb-07 1:59 
Questionhow to retrieve the result in Oracle? Pin
ShaluMalu18-Feb-07 23:00
ShaluMalu18-Feb-07 23:00 
AnswerRe: how to retrieve the result in Oracle? Pin
andyharman19-Feb-07 1:53
professionalandyharman19-Feb-07 1:53 
QuestionMaxLocksPerFile initialization through Installshield Pin
Harpreet00718-Feb-07 20:07
Harpreet00718-Feb-07 20:07 
AnswerRe: MaxLocksPerFile initialization through Installshield Pin
Harpreet00719-Feb-07 17:45
Harpreet00719-Feb-07 17:45 
Hi,

Actually the what I am trying to implement is the following three requirements:

1) If the registry value Jet MaxLockPerFile is set to 30000 or lower the kit installation should set the value to 30000.
2) If the registry value Jet MaxLockPerFile doesn't exist the kit installation should set the value to 30000.
3) If the registry value Jet MaxLockPerFile is higher than 30000 the kit installation should not change this value in the registry.

To implement the above 3 requirements, I wrote the following script in Installshield:


szRegPath = "SOFTWARE\\Microsoft\\Jet\\4.0\\Engines\\Jet 3.x";
if(RegDBKeyExist(szRegPath) = 1) then
if(RegDBGetKeyValueEx(szRegPath, "MaxLocksPerFile", nzDummy,
szTmp, nzDummy) = 0) then
if (StrToNum (nVar, szTmp) = 0) then
if(nVar < 30000) then
nVar = 30000;
if(NumToStr (szTmp1, nVar) = 0) then
RegDBSetKeyValueEx(szRegPath, "MaxLocksPerFile", REGDB_NUMBER,
szTmp1, -1);
endif;

endif;
endif;
else
RegDBSetKeyValueEx(szRegPath, "MaxLocksPerFile", REGDB_NUMBER,
"30000", -1);

endif;
endif;

szRegPath = "SOFTWARE\\Microsoft\\Jet\\4.0\\Engines\\Jet 4.0";
if(RegDBKeyExist(szRegPath) = 1) then
if(RegDBGetKeyValueEx(szRegPath, "MaxLocksPerFile", nzDummy,
szTmp, nzDummy) = 0) then
if (StrToNum (nVar, szTmp) = 0) then
if(nVar < 30000) then
nVar = 30000;
if(NumToStr (szTmp1, nVar) = 0) then
RegDBSetKeyValueEx(szRegPath, "MaxLocksPerFile", REGDB_NUMBER,
szTmp1, -1);
endif;
endif;
endif;
else
RegDBSetKeyValueEx(szRegPath, "MaxLocksPerFile", REGDB_NUMBER,
"30000", -1);
endif;
endif;

Now for Jet 3.x it is working fine but when i check for fulfilment of the 3rd requirement in Regisrty(for Jet 4.0), the value changes to 30000, if previously it was greater than 30000.
This is because, the RegDBGetKeyValueEx function in script for(above) for Jet 4.0 retrieves the value 9500 instead of the value that we set greater than 30000( say 35000).

This is exactly what is happening. I will be highly obliged if anybody can help me to resolve this issue.
QuestionHow do i set the parameter value Pin
www.Developerof.NET18-Feb-07 17:45
www.Developerof.NET18-Feb-07 17:45 
AnswerRe: How do i set the parameter value Pin
Krish - KP18-Feb-07 17:52
Krish - KP18-Feb-07 17:52 
GeneralRe: How do i set the parameter value Pin
www.Developerof.NET18-Feb-07 18:06
www.Developerof.NET18-Feb-07 18:06 
QuestionSetting parameter value as alias on column Pin
firestoper18-Feb-07 16:18
firestoper18-Feb-07 16:18 
AnswerRe: Setting parameter value as alias on column Pin
Krish - KP18-Feb-07 16:39
Krish - KP18-Feb-07 16:39 
GeneralRe: Setting parameter value as alias on column Pin
firestoper18-Feb-07 16:54
firestoper18-Feb-07 16:54 
AnswerRe: Setting parameter value as alias on column Pin
Harini N K21-Feb-07 21:57
Harini N K21-Feb-07 21:57 
Questiondecimal data type Pin
hadad18-Feb-07 7:48
hadad18-Feb-07 7:48 
AnswerRe: decimal data type Pin
Krish - KP18-Feb-07 17:08
Krish - KP18-Feb-07 17:08 
GeneralRe: decimal data type Pin
hadad18-Feb-07 21:53
hadad18-Feb-07 21:53 
GeneralRe: decimal data type Pin
Krish - KP18-Feb-07 22:52
Krish - KP18-Feb-07 22:52 
GeneralRe: decimal data type Pin
hadad23-Feb-07 1:57
hadad23-Feb-07 1:57 
GeneralRe: decimal data type Pin
Krish - KP26-Feb-07 17:17
Krish - KP26-Feb-07 17:17 
QuestionHow to connect C#.Net program to MS Access database? Pin
Sanjeewani17-Feb-07 20:15
Sanjeewani17-Feb-07 20:15 
AnswerRe: How to connect C#.Net program to MS Access database? Pin
Colin Angus Mackay18-Feb-07 0:02
Colin Angus Mackay18-Feb-07 0:02 
Questionhow to get the value from store procedure Pin
Amit Agarrwal17-Feb-07 17:27
Amit Agarrwal17-Feb-07 17:27 
AnswerRe: how to get the value from store procedure Pin
Krish - KP18-Feb-07 17:46
Krish - KP18-Feb-07 17:46 

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.