Click here to Skip to main content
15,895,256 members
Home / Discussions / Database
   

Database

 
GeneralRe: Use a where clause Pin
logicon12-Nov-10 9:03
logicon12-Nov-10 9:03 
GeneralRe: Use a where clause Pin
PIEBALDconsult12-Nov-10 9:36
mvePIEBALDconsult12-Nov-10 9:36 
GeneralRe: Use a where clause Pin
Mycroft Holmes12-Nov-10 10:58
professionalMycroft Holmes12-Nov-10 10:58 
GeneralRe: Use a where clause Pin
PIEBALDconsult12-Nov-10 15:23
mvePIEBALDconsult12-Nov-10 15:23 
AnswerRe: Timeourt Pin
thatraja12-Nov-10 2:47
professionalthatraja12-Nov-10 2:47 
AnswerRe: Timeourt Pin
jschell16-Nov-10 9:03
jschell16-Nov-10 9:03 
QuestionCreate table from xml file Pin
Hum Dum11-Nov-10 22:07
Hum Dum11-Nov-10 22:07 
AnswerRe: Create table from xml file Pin
Eddy Vluggen13-Nov-10 9:18
professionalEddy Vluggen13-Nov-10 9:18 
Hi Smile | :)

I have read the question a couple of times, but I'm still having trouble understanding your query. So, let's verify what we got;

Hum Dum wrote:
I have a xml file on which i have to operate.

That's a physical file, located on the harddisk? I mean, it's not stored inside an SQL Server table or anything like that?

Hum Dum wrote:
Now i have to use a cursor for getting all the values of corresponding fields.

To make sure I understood that correctly; you're first reading the columns from that file, and you'd be fetching it's values with a cursor?

Is it a requirement to use Sql to import the data, or would it be allowed to use C# or VB.NET? How will the import-process be started, does it get run by the server automatically, or does the user init the import?

Hum Dum wrote:
Is there any better way?

There might be, depending on your requirements and restrictions. If you're allowed to program a solution, I'd rather suggest the XmlDocument[^]-class.

If it has to be done from Sql, I'd suggest converting the file from XML to (several?) CSV-files. Then again, if it's Sql Server, then you might even get away with creating a linked server to your file and SELECT INTO the destination table.
I are Troll Suspicious | :suss:

GeneralRe: Create table from xml file Pin
Hum Dum14-Nov-10 19:05
Hum Dum14-Nov-10 19:05 
GeneralRe: Create table from xml file Pin
Mycroft Holmes14-Nov-10 20:37
professionalMycroft Holmes14-Nov-10 20:37 
Questionin which version of sql i can get this performance tools & database tuning advisor Pin
vinu.111111-Nov-10 19:00
vinu.111111-Nov-10 19:00 
AnswerRe: in which version of sql i can get this performance tools & database tuning advisor Pin
thatraja11-Nov-10 19:27
professionalthatraja11-Nov-10 19:27 
GeneralRe: in which version of sql i can get this performance tools & database tuning advisor Pin
vinu.111111-Nov-10 19:31
vinu.111111-Nov-10 19:31 
QuestionMySQL-incorrect information in file frm Pin
PeriyasamyRamachandran9-Nov-10 23:24
PeriyasamyRamachandran9-Nov-10 23:24 
AnswerRe: MySQL-incorrect information in file frm Pin
Luc Pattyn10-Nov-10 7:21
sitebuilderLuc Pattyn10-Nov-10 7:21 
GeneralRe: MySQL-incorrect information in file frm Pin
PeriyasamyRamachandran10-Nov-10 17:12
PeriyasamyRamachandran10-Nov-10 17:12 
QuestionSQL where Clause help needed Pin
Member 44205349-Nov-10 23:11
Member 44205349-Nov-10 23:11 
AnswerRe: SQL where Clause help needed Pin
Blue_Boy9-Nov-10 23:31
Blue_Boy9-Nov-10 23:31 
AnswerRe: SQL where Clause help needed Pin
Scubapro10-Nov-10 1:07
Scubapro10-Nov-10 1:07 
AnswerRe: SQL where Clause help needed Pin
Chris Meech10-Nov-10 6:51
Chris Meech10-Nov-10 6:51 
QuestionBasic Question from a newbie Pin
JohnnyG9-Nov-10 14:49
JohnnyG9-Nov-10 14:49 
AnswerRe: Basic Question from a newbie PinPopular
Jörgen Andersson9-Nov-10 23:54
professionalJörgen Andersson9-Nov-10 23:54 
GeneralRe: Basic Question from a newbie Pin
PIEBALDconsult10-Nov-10 2:10
mvePIEBALDconsult10-Nov-10 2:10 
GeneralRe: Basic Question from a newbie Pin
JohnnyG10-Nov-10 2:36
JohnnyG10-Nov-10 2:36 
QuestionGetting InvalidCastException using VS2005 TableAdapter generator to call a stored procedure Pin
Brian C Hart8-Nov-10 18:49
professionalBrian C Hart8-Nov-10 18:49 

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.