Click here to Skip to main content
15,905,875 members
Home / Discussions / Database
   

Database

 
QuestionMDX crossjoin is not responding...it is giving system.outofmemoryexception on below query excution Pin
vamanpnayak27-Jul-10 20:52
vamanpnayak27-Jul-10 20:52 
QuestionTable with Multiple Foreign Keys Pin
ASPnoob27-Jul-10 14:25
ASPnoob27-Jul-10 14:25 
QuestionSelf Referential table Pin
indian14327-Jul-10 7:33
indian14327-Jul-10 7:33 
AnswerRe: Self Referential table Pin
PIEBALDconsult27-Jul-10 8:00
mvePIEBALDconsult27-Jul-10 8:00 
GeneralRe: Self Referential table Pin
indian14327-Jul-10 8:13
indian14327-Jul-10 8:13 
GeneralRe: Self Referential table Pin
PIEBALDconsult27-Jul-10 16:22
mvePIEBALDconsult27-Jul-10 16:22 
GeneralRe: Self Referential table Pin
Luc Pattyn27-Jul-10 16:55
sitebuilderLuc Pattyn27-Jul-10 16:55 
QuestionRetrieve table structure with OPENXML Pin
Tridip Bhattacharjee27-Jul-10 3:21
professionalTridip Bhattacharjee27-Jul-10 3:21 
when we use OPENXML then we have to mention table structure like below one.

DECLARE @xml_text VARCHAR(4000), @i INT
/* put xml structure here */

EXEC sp_xml_preparedocument @i OUTPUT, @xml_text

SELECT au_id AS author_id,
au_lname AS last_name,
au_fname AS first_name,
a.title_id,
title,
royaltyper AS royalty

FROM
OPENXML(@i, '/root/authors/titles', 1)
WITH (
au_id VARCHAR(11),
au_lname VARCHAR(20) '../@au_lname',
au_fname VARCHAR(30) '../@au_fname',
title_id VARCHAR(15),
royaltyper INT) a
INNER JOIN titles b ON a.title_id = b.title_id


WITH (
au_id VARCHAR(11),
au_lname VARCHAR(20) '../@au_lname',
au_fname VARCHAR(30) '../@au_fname',
title_id VARCHAR(15),
royaltyper INT
)

suppose if i dont want to mention the table structure manually or hard coded rather dynamically fetch table structure,datatype and length then how could i proceed.

please help me with sample code.

thanks in advance
tbhattacharjee

QuestionRemove Replication Artefacts from MSSQL 2005 Database Pin
Joschwenk66627-Jul-10 1:49
Joschwenk66627-Jul-10 1:49 
AnswerRe: Remove Replication Artefacts from MSSQL 2005 Database Pin
Yusuf27-Jul-10 4:15
Yusuf27-Jul-10 4:15 
QuestionGet Previous number Pin
SatyaKeerthi1526-Jul-10 21:00
SatyaKeerthi1526-Jul-10 21:00 
AnswerRe: Get Previous number Pin
Mycroft Holmes26-Jul-10 21:41
professionalMycroft Holmes26-Jul-10 21:41 
Questionalternative to rewire CASE WHEN in query Pin
prachidalwadi25-Jul-10 19:28
prachidalwadi25-Jul-10 19:28 
AnswerRe: alternative to rewire CASE WHEN in query Pin
Herman<T>.Instance26-Jul-10 3:55
Herman<T>.Instance26-Jul-10 3:55 
AnswerRe: alternative to rewire CASE WHEN in query Pin
scottgp26-Jul-10 6:06
professionalscottgp26-Jul-10 6:06 
GeneralRe: alternative to rewire CASE WHEN in query Pin
prachidalwadi26-Jul-10 17:12
prachidalwadi26-Jul-10 17:12 
GeneralRe: alternative to rewire CASE WHEN in query Pin
scottgp27-Jul-10 1:40
professionalscottgp27-Jul-10 1:40 
GeneralRe: alternative to rewire CASE WHEN in query Pin
prachidalwadi3-Aug-10 19:36
prachidalwadi3-Aug-10 19:36 
GeneralRe: alternative to rewire CASE WHEN in query Pin
Herman<T>.Instance28-Jul-10 3:38
Herman<T>.Instance28-Jul-10 3:38 
AnswerRe: alternative to rewire CASE WHEN in query Pin
PIEBALDconsult26-Jul-10 8:05
mvePIEBALDconsult26-Jul-10 8:05 
AnswerRe: alternative to rewire CASE WHEN in query Pin
Jörgen Andersson27-Jul-10 21:31
professionalJörgen Andersson27-Jul-10 21:31 
QuestionMessage Removed Pin
25-Jul-10 1:24
bapu288925-Jul-10 1:24 
AnswerRe: SQL INSERT ISSUE Pin
Matt U.25-Jul-10 6:23
Matt U.25-Jul-10 6:23 
AnswerRe: SQL INSERT ISSUE Pin
Stoffy197225-Jul-10 7:13
Stoffy197225-Jul-10 7:13 
QuestionRe: SQL INSERT ISSUE Pin
bapu288925-Jul-10 21:15
bapu288925-Jul-10 21:15 

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.