DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   MS SQL (http://www.daniweb.com/forums/forum127.html)
-   -   a simple application (http://www.daniweb.com/forums/thread160353.html)

etc123 Dec 1st, 2008 11:29 pm
a simple application
 
topic continued from here:

http://www.daniweb.com/forums/post748453.htm

dickersonka Dec 1st, 2008 11:39 pm
Re: a simple application
 
lol another tip, post what you need in this forum in your next post

but, lets start here, what are you having trouble with?

etc123 Dec 1st, 2008 11:46 pm
Re: a simple application
 
I have an excel spreadsheet that has two columns, a date column and a system code column. One of the applications that I use on a regular basis requires a system code, it changes each day. I want to write an app, batch file, etc., anything that upon launching will get the system code for the day(either by manually passing the value through some sort of GUI, or based off of the date on the computer) and return it to me in a text file that I can copy and paste.

Any recommendations on a language that would make this task very easy?

dickersonka Dec 1st, 2008 11:54 pm
Re: a simple application
 
as you said before, you can import this into sql express with no problems correct?

you can do something like this
select SYSTEM_CODE, DATE_FIELD
where DATE_FIELD >= convert(datetime, '2008-12-1 12:00', 120)
and DATE_FIELD < convert(datetime, '2008-12-2 12:00', 120)

you can run this sql select, now its a matter of what you are familiar with to get it to a text file, you can do it with dts / ssis, c#, whatever else you may prefer


All times are GMT -4. The time now is 7:10 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC