Viewing 15 posts - 16 through 30 (of 32 total)
Just check if this may help you:
You can start from sysobjects and syscolumns
Get the datatype and the search value as parameters
:For each object in sysobjects where type ='U'
:for...
November 19, 2008 at 11:37 pm
suresh.s (9/29/2008)
I have writtern a Stored procedure in which have taken a Bigint value and insert it into another table.
while running the query i met...
September 30, 2008 at 3:01 am
1.Try with recompile option for your stored procedure.
2.Reassign all your parameters to local variables in your sp and use the local variables.
September 30, 2008 at 12:12 am
Seems this script is working fine.Can you just send across your drop table script.
select ' drop table ' + name
from dbo.SysObjects
WHERE LEFT(Name,5) = 'CustA'
AND SUBSTRING(NAME,LEN(Name)-4,3) IN ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec')
AND...
September 29, 2008 at 11:21 pm
David Webb (9/29/2008)
September 29, 2008 at 10:50 pm
use sqlcmd to run a batch file from the command prompt.
Copy all the procedures to a folder.
create a bat file for the below sqlcmd
sqlcmd -S
In your input...
September 26, 2008 at 6:38 am
This will meet your requirement
select table1.*,table2.call_ref,table3.call_time
from table1
left join
table2 on
table1.order_no = table2.order_no
left join table3
on table2.call_ref = table3.call_ref
September 26, 2008 at 6:27 am
1) I want to have data in this table(index_time) latest as 7 days (i,e,) data older than 7 days should be removed. How can i achieve this functionality....
September 26, 2008 at 6:11 am
Hope this will solve:
declare @startdate datetime
declare @enddate datetime
select @startdate = '10/17/2008'
select @enddate ='10/27/2008'
select
case
when datediff(dd,@startdate,@enddate ) < 7 then
case when DATEPART ( dw ,...
September 26, 2008 at 3:19 am
bhuvnesh.dogra (9/26/2008)
select datediff(ww,'08/01/2008','08/31/2008') +1
select datediff(ww,'08/01/2008','08/02/2008') +1 will not work as per your condition.For a single day it will give diff of 1 week....
September 26, 2008 at 3:14 am
Check whether this will solve it for you:
select datediff(ww,'09/01/2008','09/30/2008')
September 26, 2008 at 12:08 am
select convert(datetime,convert(varchar(12),getdate(),101),101)
September 25, 2008 at 6:26 am
select convert(datetime,convert(varchar(12),getdate(),101),101)
September 25, 2008 at 6:26 am
select convert(datetime,convert(varchar(12),getdate(),101),101)
September 25, 2008 at 6:26 am
The table contains millions of records and there are more than 30 child tables which goes to 7-8 levels.The on update cascade will be too costly and also risky to...
September 12, 2008 at 4:43 am
Viewing 15 posts - 16 through 30 (of 32 total)