Click here to Skip to main content
15,902,276 members
Home / Discussions / Database
   

Database

 
GeneralRe: convert access database to mysql Pin
ThomasH119-Jul-04 12:42
ThomasH119-Jul-04 12:42 
GeneralRe: convert access database to mysql Pin
Alexander Wiseman20-Jul-04 7:08
Alexander Wiseman20-Jul-04 7:08 
GeneralPlease help, its very urgent ( retrieving datetime ) Pin
deep_george_zach19-Jul-04 8:15
sussdeep_george_zach19-Jul-04 8:15 
GeneralRe: Please help, its very urgent ( retrieving datetime ) Pin
Colin Angus Mackay19-Jul-04 9:10
Colin Angus Mackay19-Jul-04 9:10 
GeneralRe: Please help, its very urgent ( retrieving datetime ) Pin
deep_george_zach19-Jul-04 16:04
sussdeep_george_zach19-Jul-04 16:04 
GeneralRe: Please help, its very urgent ( retrieving datetime ) Pin
vikram attiganal19-Jul-04 20:00
vikram attiganal19-Jul-04 20:00 
QuestionUrgent : Running SQL Script files through a SqlCommand object? Pin
matthias s.19-Jul-04 7:37
matthias s.19-Jul-04 7:37 
AnswerRe: Urgent : Running SQL Script files through a SqlCommand object? Pin
dishanf19-Jul-04 17:00
dishanf19-Jul-04 17:00 
isql has output parameter : /o

public int Exec( string sCommand )
{
int nResult = 0;

m_oInstallProcess = new Process();
m_oInstallProcessInfo = new ProcessStartInfo("cmd");

m_oInstallProcessInfo.UseShellExecute = false;
m_oInstallProcessInfo.RedirectStandardInput = true;
m_oInstallProcessInfo.RedirectStandardOutput = true;
m_oInstallProcessInfo.RedirectStandardError = true;
m_oInstallProcessInfo.CreateNoWindow = true;

m_oInstallProcess.StartInfo = m_oInstallProcessInfo;

m_oInstallProcess.Start();

m_oCommandWriter = m_oInstallProcess.StandardInput;
m_oResultReader = m_oInstallProcess.StandardOutput;
m_oErrorReader = m_oInstallProcess.StandardError;

m_oCommandWriter.AutoFlush = true;

m_oCommandWriter.WriteLine( sCommand );

m_oCommandWriter.Close();
m_oCommandWriter = null;

string s = m_oResultReader.ReadToEnd();
m_sErrorMsg = m_oErrorReader.ReadToEnd();

if( s.IndexOf("Cannot open input file") > 0 )
throw new Exception( "Command:\r\n"+sCommand+"\r\nError:\r\nCannot open input file!" );
else if( m_sErrorMsg.Trim().Length > 0 )
throw new Exception( "Command:\r\n"+sCommand+"\r\nError:\r\n"+m_sErrorMsg+"" );
else
System.Threading.Thread.Sleep( 10 );

return nResult ;

}

D!shan
GeneralRe: Urgent : Running SQL Script files through a SqlCommand object? Pin
matthias s.20-Jul-04 5:25
matthias s.20-Jul-04 5:25 
GeneralAccess 2000 DB and multithreaded access Pin
mav.northwind19-Jul-04 4:16
mav.northwind19-Jul-04 4:16 
GeneralRe: Access 2000 DB and multithreaded access Pin
Anders Molin19-Jul-04 16:23
professionalAnders Molin19-Jul-04 16:23 
GeneralRe: Access 2000 DB and multithreaded access Pin
mav.northwind19-Jul-04 19:50
mav.northwind19-Jul-04 19:50 
GeneralNeed Help to make SQL SERVER Query Pin
Arvind200419-Jul-04 0:42
Arvind200419-Jul-04 0:42 
GeneralRe: Need Help to make SQL SERVER Query Pin
dishanf19-Jul-04 1:17
dishanf19-Jul-04 1:17 
GeneralRe: Need Help to make SQL SERVER Query Pin
dishanf19-Jul-04 1:28
dishanf19-Jul-04 1:28 
GeneralRe: Need Help to make SQL SERVER Query Pin
Arvind200419-Jul-04 3:32
Arvind200419-Jul-04 3:32 
Questionwhat is wrong with this query?... Pin
blankg16-Jul-04 22:42
blankg16-Jul-04 22:42 
AnswerRe: what is wrong with this query?... Pin
Daniel Turini16-Jul-04 23:55
Daniel Turini16-Jul-04 23:55 
GeneralRe: what is wrong with this query?... Pin
blankg17-Jul-04 2:38
blankg17-Jul-04 2:38 
GeneralRe: what is wrong with this query?... Pin
Daniel Turini17-Jul-04 3:10
Daniel Turini17-Jul-04 3:10 
GeneralSQL Query using date format problem!!! Pin
girl_lash16-Jul-04 0:26
girl_lash16-Jul-04 0:26 
GeneralRe: SQL Query using date format problem!!! Pin
Mike Dimmick17-Jul-04 23:59
Mike Dimmick17-Jul-04 23:59 
GeneralRe: SQL Query using date format problem!!! Pin
EdbertP18-Jul-04 15:24
EdbertP18-Jul-04 15:24 
Generalquering on views Pin
blankg15-Jul-04 23:47
blankg15-Jul-04 23:47 
GeneralRe: quering on views Pin
Colin Angus Mackay15-Jul-04 23:57
Colin Angus Mackay15-Jul-04 23:57 

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.