Click here to Skip to main content
15,915,600 members
Home / Discussions / Database
   

Database

 
QuestionExport a table to a CSV file Pin
Alvin Ortiz5-May-06 12:46
Alvin Ortiz5-May-06 12:46 
AnswerRe: Export a table to a CSV file Pin
Rob Graham7-May-06 6:07
Rob Graham7-May-06 6:07 
GeneralRe: Export a table to a CSV file Pin
Alvin Ortiz15-May-06 12:27
Alvin Ortiz15-May-06 12:27 
QuestionOutputting RTF from SQL Reporting? Pin
dxben5-May-06 5:54
dxben5-May-06 5:54 
QuestionInstr function for SQL Pin
MatthysDT5-May-06 1:54
MatthysDT5-May-06 1:54 
AnswerRe: Instr function for SQL Pin
sathish s5-May-06 2:07
sathish s5-May-06 2:07 
QuestionSQL or TSQL Help Needed Pin
Naveed Kamboh5-May-06 0:42
Naveed Kamboh5-May-06 0:42 
AnswerRe: SQL or TSQL Help Needed Pin
sathish s5-May-06 1:36
sathish s5-May-06 1:36 
GeneralRe: SQL or TSQL Help Needed Pin
Naveed Kamboh5-May-06 2:03
Naveed Kamboh5-May-06 2:03 
QuestionReg Stored Proc Parameter usage & performance Pin
Pradeep Shamarao4-May-06 23:15
Pradeep Shamarao4-May-06 23:15 
QuestionMSDE and MS SQL 2005 Express Edition inquiry Pin
Kuira4-May-06 13:35
Kuira4-May-06 13:35 
AnswerRe: MSDE and MS SQL 2005 Express Edition inquiry Pin
Paul Conrad4-May-06 14:37
professionalPaul Conrad4-May-06 14:37 
QuestionClone rows based on existing rows Pin
Ravi Bhavnani4-May-06 11:42
professionalRavi Bhavnani4-May-06 11:42 
AnswerRe: Clone rows based on existing rows Pin
goyal manish4-May-06 20:12
goyal manish4-May-06 20:12 
GeneralRe: Clone rows based on existing rows Pin
Ravi Bhavnani5-May-06 8:47
professionalRavi Bhavnani5-May-06 8:47 
QuestionCheckBox Control and RowID Pin
karinb4-May-06 5:41
karinb4-May-06 5:41 
AnswerRe: CheckBox Control and RowID Pin
Paddy Boyd4-May-06 5:56
Paddy Boyd4-May-06 5:56 
AnswerRe: CheckBox Control and RowID Pin
goyal manish4-May-06 20:18
goyal manish4-May-06 20:18 
QuestionOle DB for OLAP Pin
Tarek Jabri4-May-06 4:50
Tarek Jabri4-May-06 4:50 
I am trying to connect to MDP provider using
OLE DB For OLAP following these steps:
1-i'v got the List of providers..and choose one of them
2-i called ParseDisplayName() ,..the i called BindMoniker() method as written in the code below...
3-When i Call ppIDBInitialize->Initialize(); ..i got Access voilation exception
can any one help me please....
Here is the code:

ULONG chEaten = 0;
hr = pIParseDisplayName->ParseDisplayName(pIBindCtx,rgEnumInfo[i].wszParseName, &chEaten, &pIMoniker);
ppIDBInitialize=NULL;
hr = BindMoniker(pIMoniker, 0, IID_IUnknown,(void**)&ppIDBInitialize);

rgProps[0].dwPropertyID = DBPROP_INIT_LOCATION;
rgProps[0].vValue.vt  = VT_BSTR;
rgProps[0].vValue.bstrVal  =  SysAllocString(L"server");

rgProps[1].dwPropertyID = DBPROP_INIT_DATASOURCE;
rgProps[1].vValue.vt  = VT_BSTR;
rgProps[1].vValue.bstrVal  = SysAllocString(L"FoodMart 2000");

rgProps[2].dwPropertyID = DBPROP_AUTH_INTEGRATED;
rgProps[2].vValue.vt  = VT_BSTR;
rgProps[2].vValue.bstrVal  = SysAllocString(L"SSPI");

// Create the structure containing the properties.
DBPROPSET PropSet;
PropSet.rgProperties      = rgProps;
PropSet.cProperties       = 3;
PropSet.guidPropertySet   = DBPROPSET_DBINIT;

IDBProperties *pIDBProperties=NULL;

// create properties pointer
hr=ppIDBInitialize->QueryInterface(IID_IDBProperties,(void**)&pIDBProperties);

// Set properties
hr=pIDBProperties->SetProperties(1, &PropSet);

// Initialize the data source object.
 hr = ppIDBInitialize->Initialize();   // Access voilation exception

QuestionODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'dbo.sysconstraints' Pin
thomasa4-May-06 3:39
thomasa4-May-06 3:39 
AnswerFixed Pin
thomasa4-May-06 23:50
thomasa4-May-06 23:50 
QuestionSQL 2005 Analysis Services - pivot table Pin
alex_kl4-May-06 3:22
alex_kl4-May-06 3:22 
QuestionWhy can't I update my data ? Pin
nirishere4-May-06 2:47
nirishere4-May-06 2:47 
AnswerRe: Why can't I update my data ? Pin
jonathan154-May-06 5:06
jonathan154-May-06 5:06 
GeneralRe: Why can't I update my data ? Pin
nirishere4-May-06 7:20
nirishere4-May-06 7:20 

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.