Viewing 15 posts - 181 through 195 (of 315 total)
Jack Corbett (10/24/2008)
October 24, 2008 at 6:49 am
If you want to do this in sql, refer http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926
October 24, 2008 at 5:44 am
aveerabadran (10/23/2008)
I have a requirement where i need to execute a query (daily) ,and put its output into Excel or HTML file before sending it as a mail ....
October 23, 2008 at 8:11 am
Also read about sp_executesql in sql server help file
October 23, 2008 at 7:54 am
aravind (10/23/2008)
Hi Madi,The output wont be the one I expected. The decimal should not get truncated.
Here it is
declare @d float
declare @d1 float
select @d = '34343.454'
select @d1 = '676.1566545'
select cast(cast (@d...
October 23, 2008 at 7:48 am
Vera (10/22/2008)
Thank you, that works.
welcome 🙂
October 23, 2008 at 7:47 am
Use replace(@record,'''','''''')
October 22, 2008 at 3:17 am
Also beware of implicit conversion
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/01/16/beware-of-implicit-conversions.aspx
October 21, 2008 at 5:45 am
aravind (10/21/2008)
declare @d float
declare @d1 float
select @d = 34343.454
select @d1 = 676.1566545
select cast (@d as varchar(50)) + CHAR...
October 21, 2008 at 5:43 am
carlos.tapadinhas (10/21/2008)
I need a function that run a simple sp, but i need to insert into a table the result... but i dont know how to fix this...
October 21, 2008 at 5:42 am
October 21, 2008 at 5:10 am
vsjayashri (10/21/2008)
declare @dFrom varchar(12)
set @dFrom = convert(varchar,getdate(),112)
INSERT INTO OPENROWSET ('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=D:\test.xls','SELECT * FROM October$B2:B2]')
@dFrom
I want to write the date on the october sheet in b2 cell,
I tried the...
October 21, 2008 at 5:09 am
msaidi2 (10/14/2008)
SELECT * INTO table FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0','Data Source=" +
OpenFileDialog1.FileName + ";Extended...
October 16, 2008 at 8:49 am
Chris Morris (10/15/2008)
If you create the temp table before executing the string, then (as Barry's code shows) the table is...
October 15, 2008 at 5:09 am
Viewing 15 posts - 181 through 195 (of 315 total)