Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 tSQL to get info from Excel

Author  Topic 

Pgrandjean
Starting Member

5 Posts

Posted - 2009-06-22 : 08:09:22
Hi.

In a view i would like to select all transaction before a date:
e.g.:

Select * from ledgertrans where transdate < '2009-05-30'

I use the view in Excel, where I also have written the date (called ExcelDate).

Is there a way in tSql to write something like
Select ExcelDate from monthreport.xls

I am using Sql 2005 and Excel 2007

Regards

Peter

Mangal Pardeshi
Posting Yak Master

110 Posts

Posted - 2009-06-22 : 08:26:04
have a look
http://blogs.msdn.com/rdas/archive/2008/08/15/excel-as-a-linked-server.aspx

Mangal Pardeshi
http://mangalpardeshi.blogspot.com
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-06-22 : 08:35:08
Also read
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -