Showing posts with label xml. Show all posts
Showing posts with label xml. Show all posts

Monday, March 19, 2012

check file date script

SQL Server file system objects
Posted: 08-18-2004 06:23 PM
Hello World!...
Here is the scenerio..
SQL Server Database
VB FrontEnd App.
App loads XML file data into database.
Changes are often made to the XML files. When changes are made,
the files must be reloaded into the database via the application. Changes
have been missed causing loss of production and jobs being processed
incorrectly.
I am looking for a script that will check the filedate of the
xml file or the filedate tag in the xml against a 'DesignFileDate' field in
the database. If a discrepancy in the filedates is identified, I want to
load the XML data to a temporary table [ExchangeTable] into the database.
The developer will provide a process to either load the data
into the production database or delete the data. This will be processed from
the Exchange table.
Having no background in programming languages and fairly new to
SQL this is quite a challenge.
Any assistance is greatly appreciated..
Regards
Hi steve,
I will recommend the .NET framework for your application and SQL Job Agent
for your monitoring purposes.
Regards,
Jon
|||Look in "Books on Line" (BOL) that comes with SQL Server as it is a great
resource for SQL Server questions of all types.
Using T-SQL you can read values out of an XML doc and compare them to
variables in a stored proc. Look in BOL and if you have any more questions
feel free to ask.
"Steve T." wrote:

> SQL Server file system objects
> Posted: 08-18-2004 06:23 PM
> Hello World!...
> Here is the scenerio..
> SQL Server Database
> VB FrontEnd App.
> App loads XML file data into database.
> Changes are often made to the XML files. When changes are made,
> the files must be reloaded into the database via the application. Changes
> have been missed causing loss of production and jobs being processed
> incorrectly.
> I am looking for a script that will check the filedate of the
> xml file or the filedate tag in the xml against a 'DesignFileDate' field in
> the database. If a discrepancy in the filedates is identified, I want to
> load the XML data to a temporary table [ExchangeTable] into the database.
> The developer will provide a process to either load the data
> into the production database or delete the data. This will be processed from
> the Exchange table.
> Having no background in programming languages and fairly new to
> SQL this is quite a challenge.
> Any assistance is greatly appreciated..
> Regards
>
>
>

check file date script

SQL Server file system objects
Posted: 08-18-2004 06:23 PM
Hello World!...
Here is the scenerio..
SQL Server Database
VB FrontEnd App.
App loads XML file data into database.
Changes are often made to the XML files. When changes are made,
the files must be reloaded into the database via the application. Changes
have been missed causing loss of production and jobs being processed
incorrectly.
I am looking for a script that will check the filedate of the
xml file or the filedate tag in the xml against a 'DesignFileDate' field in
the database. If a discrepancy in the filedates is identified, I want to
load the XML data to a temporary table [ExchangeTable] into the database
.
The developer will provide a process to either load the data
into the production database or delete the data. This will be processed from
the Exchange table.
Having no background in programming languages and fairly new to
SQL this is quite a challenge.
Any assistance is greatly appreciated..
RegardsHi steve,
I will recommend the .NET framework for your application and SQL Job Agent
for your monitoring purposes.
Regards,
Jon|||Look in "Books on Line" (BOL) that comes with SQL Server as it is a great
resource for SQL Server questions of all types.
Using T-SQL you can read values out of an XML doc and compare them to
variables in a stored proc. Look in BOL and if you have any more questions
feel free to ask.
"Steve T." wrote:

> SQL Server file system objects
> Posted: 08-18-2004 06:23 PM
> Hello World!...
> Here is the scenerio..
> SQL Server Database
> VB FrontEnd App.
> App loads XML file data into database.
> Changes are often made to the XML files. When changes are made
,
> the files must be reloaded into the database via the application. Changes
> have been missed causing loss of production and jobs being processed
> incorrectly.
> I am looking for a script that will check the filedate of the
> xml file or the filedate tag in the xml against a 'DesignFileDate' field i
n
> the database. If a discrepancy in the filedates is identified, I want to
> load the XML data to a temporary table [ExchangeTable] into the databa
se.
> The developer will provide a process to either load the data
> into the production database or delete the data. This will be processed fr
om
> the Exchange table.
> Having no background in programming languages and fairly new t
o
> SQL this is quite a challenge.
> Any assistance is greatly appreciated..
> Regards
>
>
>

check file date script

SQL Server file system objects
Posted: 08-18-2004 06:23 PM
Hello World!...
Here is the scenerio..
SQL Server Database
VB FrontEnd App.
App loads XML file data into database.
Changes are often made to the XML files. When changes are made,
the files must be reloaded into the database via the application. Changes
have been missed causing loss of production and jobs being processed
incorrectly.
I am looking for a script that will check the filedate of the
xml file or the filedate tag in the xml against a 'DesignFileDate' field in
the database. If a discrepancy in the filedates is identified, I want to
load the XML data to a temporary table [ExchangeTable] into the database.
The developer will provide a process to either load the data
into the production database or delete the data. This will be processed from
the Exchange table.
Having no background in programming languages and fairly new to
SQL this is quite a challenge.
Any assistance is greatly appreciated..
RegardsHi steve,
I will recommend the .NET framework for your application and SQL Job Agent
for your monitoring purposes.
Regards,
Jon|||Look in "Books on Line" (BOL) that comes with SQL Server as it is a great
resource for SQL Server questions of all types.
Using T-SQL you can read values out of an XML doc and compare them to
variables in a stored proc. Look in BOL and if you have any more questions
feel free to ask.
"Steve T." wrote:
> SQL Server file system objects
> Posted: 08-18-2004 06:23 PM
> Hello World!...
> Here is the scenerio..
> SQL Server Database
> VB FrontEnd App.
> App loads XML file data into database.
> Changes are often made to the XML files. When changes are made,
> the files must be reloaded into the database via the application. Changes
> have been missed causing loss of production and jobs being processed
> incorrectly.
> I am looking for a script that will check the filedate of the
> xml file or the filedate tag in the xml against a 'DesignFileDate' field in
> the database. If a discrepancy in the filedates is identified, I want to
> load the XML data to a temporary table [ExchangeTable] into the database.
> The developer will provide a process to either load the data
> into the production database or delete the data. This will be processed from
> the Exchange table.
> Having no background in programming languages and fairly new to
> SQL this is quite a challenge.
> Any assistance is greatly appreciated..
> Regards
>
>
>

check file date

SQL Server file system objects
Posted: 08-18-2004 06:23 PM
Hello World!...
Here is the scenerio..
SQL Server Database
VB FrontEnd App.
App loads XML file data into database.
Changes are often made to the XML files. When changes are made,
the files must be reloaded into the database via the application. Changes
have been missed causing loss of production and jobs being processed
incorrectly.
I am looking for a script that will check the filedate of the
xml file or the filedate tag in the xml against a 'DesignFileDate' field in
the database. If a discrepancy in the filedates is identified, I want to
load the XML data to a temporary table [ExchangeTable] into the database.
The developer will provide a process to either load the data
into the production database or delete the data. This will be processed from
the Exchange table.
Having no background in programming languages and fairly new to
SQL this is quite a challenge.
Any assistance is greatly appreciated..
Regards
I would recommend that you start with the SQL Server documentation (aka
Books OnLine) and the XML chapter there.
HTH
Michael
"Steve T." <stornari@.nvrinc.com> wrote in message
news:O$y%23aFjhEHA.712@.tk2msftngp13.phx.gbl...
> SQL Server file system objects
> Posted: 08-18-2004 06:23 PM
> Hello World!...
> Here is the scenerio..
> SQL Server Database
> VB FrontEnd App.
> App loads XML file data into database.
> Changes are often made to the XML files. When changes are made,
> the files must be reloaded into the database via the application. Changes
> have been missed causing loss of production and jobs being processed
> incorrectly.
> I am looking for a script that will check the filedate of the
> xml file or the filedate tag in the xml against a 'DesignFileDate' field
> in
> the database. If a discrepancy in the filedates is identified, I want to
> load the XML data to a temporary table [ExchangeTable] into the database.
> The developer will provide a process to either load the data
> into the production database or delete the data. This will be processed
> from
> the Exchange table.
> Having no background in programming languages and fairly new to
> SQL this is quite a challenge.
> Any assistance is greatly appreciated..
> Regards
>
>

Friday, February 24, 2012

chart problem

Hi,

I'm facig this problem. I have xml data which are: dateTime, count

for example:
2006-09-14-14.27 1
2006-09-15-19.09 2
2006-09-22-13.18 3
2006-09-22-15.20 4
2006-09-22-18.36 5
2006-09-25-13.15 6
2006-09-25-15.22 7
2006-09-25-17.29 7
2006-09-25-18.31 8
2006-09-26-17.27 9
2006-09-26-18.28 10
2006-09-27-12.26 11
2006-09-27-19.02 12

I need to make 7 charts corresponding to each day, and show a count
in each hour...

Do you have any suggestions how to make it?

Thanks for answer

PeterHave you tried grouping on Date and putting a chart in the group header (or footer)?

Friday, February 10, 2012

changing XML values

If I use the REPLACE feature to change only a part of the XML document, does this require the whole document be reinserted and/or parsed, or just that bit of the XML that I changed? Since its shredded out from the XML, it seems to me that I should be fine and not take this performance hit. Just trying to figure out the performance impact of our application updating the XML that already exists. Thanks.The chunk of the document that you are going to insert into the existing document will need to be reparsed, but the existing document will not need to be reparsed since it is in the shredded form, it will just have the section replaced.

changing XML values

If I use the REPLACE feature to change only a part of the XML document, does this require the whole document be reinserted and/or parsed, or just that bit of the XML that I changed? Since its shredded out from the XML, it seems to me that I should be fine and not take this performance hit. Just trying to figure out the performance impact of our application updating the XML that already exists. Thanks.The chunk of the document that you are going to insert into the existing document will need to be reparsed, but the existing document will not need to be reparsed since it is in the shredded form, it will just have the section replaced.