Viewing 15 posts - 46 through 60 (of 65 total)
you can not do this using SQL. You will have to either schedule a job to do this or create a Windows Service which will fire the delete query every...
August 20, 2008 at 5:37 am
Andras Belokosztolszki (8/20/2008)
johan.frisell (8/20/2008)
I want to reada textfile which will further on be used in a mail sent from the database.
To read this file i want to use the...
August 20, 2008 at 5:07 am
kumar99ms (8/20/2008)
Query to delete, all the records from a table before half an hour,…Delete * from table where condition=100 and …..what we have write here…for time…
Regards,
I am afraid your...
August 20, 2008 at 5:03 am
I think this should help
select id, Depreciation, Depreciation + isnull((select Depreciation from TABLE where id = (select max(id) from TABLE where id < x.id)),0) from
TABLE x
😀
August 20, 2008 at 3:22 am
arjun.tewari (8/20/2008)
The following script will give you the name of the SP, the name of the tables it references, and the name of the columns inside those tables used by...
August 20, 2008 at 2:12 am
Hi,
The following script will give you the name of the SP, the name of the tables it references, and the name of the columns inside those tables used by the...
August 20, 2008 at 2:11 am
if your ID values are random as shown in the data example, you will have to either iterate using a loop or use a cursor. If they are in an...
August 20, 2008 at 2:00 am
PhisycalOp referes to Physical Operations. Physical operators displayed in red indicate that the query optimizer has issued a warning, such as missing column statistics which is turn forces the optimizer...
August 20, 2008 at 1:46 am
check my query, I haven't casted the whole case but only the else part which was returning the INT value.:D
August 20, 2008 at 1:15 am
The reason is that right() function returns a string value where as case returns the highest precedence type from the set of types in when or else clause. Which, in...
August 20, 2008 at 1:11 am
Couldn't understand the question clearly. In the scenario that you have specified, you don't need a dynamic SQL, you can simply write:
SELECT * FROM Product P WHERE
P.ProductName Like '%'...
August 20, 2008 at 12:50 am
How about this?
create table #temp_table
(
ID int identity primary key,
number int
)
GO
declare @ss int
declare @ms int
declare @rand int
select @ss = datepart(ss, getdate())
select @ms = datepart(ms, getdate())
select @ss...
August 20, 2008 at 12:42 am
This table is not normalized please work on the database design. Once done, rest all will be a piece of cake.
August 19, 2008 at 11:47 pm
I dont think that the problem is due to the CAST done to int because in thins case, you should get String or binary data would be truncated ERROR and...
August 19, 2008 at 6:21 am
Viewing 15 posts - 46 through 60 (of 65 total)