943,657 Members | Top Members by Rank

Ad:
  • MS SQL Discussion Thread
  • Unsolved
  • Views: 689
  • MS SQL RSS
Dec 1st, 2008
0

a simple application

Expand Post »
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
etc123 is offline Offline
49 posts
since May 2008
Dec 1st, 2008
0

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?
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Dec 1st, 2008
0

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?
Reputation Points: 10
Solved Threads: 0
Light Poster
etc123 is offline Offline
49 posts
since May 2008
Dec 1st, 2008
0

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
MS SQL Syntax (Toggle Plain Text)
  1. SELECT SYSTEM_CODE, DATE_FIELD
  2. WHERE DATE_FIELD >= convert(datetime, '2008-12-1 12:00', 120)
  3. 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
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS SQL Forum Timeline: Displaying Data
Next Thread in MS SQL Forum Timeline: Error In trigger.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC