Click here to Skip to main content
15,890,690 members
Home / Discussions / Database
   

Database

 
QuestionChanging the location for a replication subscription Pin
SeXyProwler29-Dec-05 9:37
SeXyProwler29-Dec-05 9:37 
QuestionSQL Server security Pin
Fad B29-Dec-05 6:50
Fad B29-Dec-05 6:50 
AnswerRe: SQL Server security Pin
Colin Angus Mackay29-Dec-05 15:38
Colin Angus Mackay29-Dec-05 15:38 
GeneralRe: SQL Server security Pin
Paul Conrad29-Dec-05 18:25
professionalPaul Conrad29-Dec-05 18:25 
GeneralRe: SQL Server security Pin
Fad B29-Dec-05 21:14
Fad B29-Dec-05 21:14 
GeneralRe: SQL Server security Pin
Fad B29-Dec-05 21:15
Fad B29-Dec-05 21:15 
QuestionParsing Text file w/ multple datasets and schema.ini? Pin
Joshua Lunsford29-Dec-05 6:33
Joshua Lunsford29-Dec-05 6:33 
QuestionExport xls from sql Pin
GoodQuestion28-Dec-05 6:52
GoodQuestion28-Dec-05 6:52 
I am having trouble to get export from sql. I can get import working well. When I am importing xls to sql and it was working fine. when I am exporting to new file and I tried to open xls file and it said it cannot open file bec of poor data. I have no idea how can I fix this one. I am hoping that yo can help this one.
_BulkCopyPtr spIBulkCopy;
HRESULT hr = S_OK;
spIBulkCopy.CreateInstance(__uuidof(BulkCopy));
CString strFile;

m_EditTextBox.GetWindowText(strFile);


spIBulkCopy->DataFilePath = strFile.AllocSysString();
spIBulkCopy->DataFileType = SQLDMODataFile_TabDelimitedChar;
//spIBulkCopy->DataFileType = SQLDMODataFile_NativeFormat;
spIBulkCopy->ErrorFilePath = "c:\errores.log";
spIBulkCopy->ServerBCPDataFileType = SQLDMOBCPDataFile_Native;
spIBulkCopy->UseBulkCopyOption = true;
//spIBulkCopy->UseExistingConnection = true;
spIBulkCopy->IncludeIdentityValues = true;


m_ctrlDBTable.GetWindowText(strFile);
_bstr_t bstrFile(strFile);
int nCount = m_spITables->Count;
for (int i=0; i<ncount; i++)
="" {
="" m_spitable="m_spITables-">Item(i + 1, vtMissing);
if(m_spITable->GetName().operator==( bstrFile))
break;

m_spITable = NULL;
}

hr=m_spITable->ExportData(spIBulkCopy);//it worked with importData
AnswerRe: Export xls from sql Pin
S Douglas5-Jan-06 0:31
professionalS Douglas5-Jan-06 0:31 
GeneralRe: Export xls from sql Pin
GoodQuestion11-Jan-06 12:02
GoodQuestion11-Jan-06 12:02 
QuestionSQL table organization for authentication Pin
shapper28-Dec-05 3:48
shapper28-Dec-05 3:48 
AnswerRe: SQL table organization for authentication Pin
Paul Conrad28-Dec-05 6:38
professionalPaul Conrad28-Dec-05 6:38 
GeneralRe: SQL table organization for authentication Pin
Paul Conrad28-Dec-05 6:51
professionalPaul Conrad28-Dec-05 6:51 
Questionhow to declare the procedures Pin
sasire1828-Dec-05 0:53
sasire1828-Dec-05 0:53 
AnswerRe: how to declare the procedures Pin
S. Akif Kamal28-Dec-05 1:24
S. Akif Kamal28-Dec-05 1:24 
Questionstoring xml doc in asp page uisng sqlserver Pin
suneelbabu_net27-Dec-05 19:02
suneelbabu_net27-Dec-05 19:02 
Questionstoring xml file in sqlserver Pin
suneelbabu_net27-Dec-05 15:59
suneelbabu_net27-Dec-05 15:59 
AnswerRe: storing xml file in sqlserver Pin
rihdus27-Dec-05 18:19
rihdus27-Dec-05 18:19 
GeneralRe: storing xml file in sqlserver Pin
suneelbabu_net27-Dec-05 18:42
suneelbabu_net27-Dec-05 18:42 
QuestionMS-SQL server Self join Pin
Amit Malik25-Dec-05 19:11
Amit Malik25-Dec-05 19:11 
AnswerRe: MS-SQL server Self join Pin
Michael Potter27-Dec-05 3:22
Michael Potter27-Dec-05 3:22 
Questiondelete trigger Pin
Vipin.d25-Dec-05 17:16
Vipin.d25-Dec-05 17:16 
AnswerRe: delete trigger Pin
Colin Angus Mackay26-Dec-05 2:40
Colin Angus Mackay26-Dec-05 2:40 
Questionneed help about database Pin
ngAnhTuan24-Dec-05 20:54
ngAnhTuan24-Dec-05 20:54 
AnswerRe: need help about database Pin
Colin Angus Mackay26-Dec-05 2:37
Colin Angus Mackay26-Dec-05 2:37 

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.