Viewing 15 posts - 106 through 120 (of 216 total)
Hi
You can use the following Query:::
This Query will create a table of same structure:
select EmployeeID,ln1,ln2 into Record from acesslog where 1=0
Regards,
Amit Gupta..
April 4, 2006 at 4:15 am
Hi,
Ok Then you can follow these steps and confirm to me it worked or not.
1) Start SQL Server in single user mode.
2) Go to your control panel and services....
April 4, 2006 at 2:32 am
Hi,
Use this Query :
select * from authors order by 1
select * from (select top 5 * from authors order by au_id desc) a
order by 1
Regards,
Amit Gupta.
April 3, 2006 at 6:47 am
Hi,
RAMA
CAN YOU PROVIDE TO ME SUCH .mdf file , only then i can provide you to a best solution because i have to do some R & D on it.
Regards,
Amit...
April 3, 2006 at 5:20 am
Hi,
pls. can you explain it in practical way.
1) i have mdf file which is offline.
first i have to restore it ? but i failed to restore it.
How i can do...
March 30, 2006 at 2:26 am
Hi,
To achieve this you have to use the trigger for insert on that table,
and in this trigger you can insert the inserted row in the second table with using of...
March 29, 2006 at 8:18 am
Hi,
I have already done these steps but these are not effective one for me.
My mdf file has one or more corrupt pages, so i can't execute even a single query...
March 29, 2006 at 6:56 am
Hi,
Your table 'del_screen' contain identity column.
To insert all the values you must specify all the column names of a table. and
set IDENTITY_INSERT on
Thanks.
Regards,
Amit Gupta
March 28, 2006 at 7:47 am
Hi,
You can use the View to solve Your Problem::
Create View Vw_Calculations
as
select (select Result from metricResults where metricid=1) - (select Result from metricResults where metricid=2) 'Sale-Budget',
(select Result from metricResults where...
March 28, 2006 at 7:39 am
HI,
Use this Query::
select distinct empid from emp where depid in(1,2)
Regards,
Amit Gupta
March 28, 2006 at 6:30 am
Hi,
Use this Query i think it would help you to remove the time part in your dates ::
SELECT convert(datetime,convert(char(12),GETDATE(),111))
Regards,
Amit Gupta
March 28, 2006 at 4:46 am
Hi,
Use this Query in your related Db :
select object_name(constid),object_name(fkeyid),object_name(rkeyid)
from sysreferences
Regards,
AMIT GUPTA..
March 28, 2006 at 4:41 am
Hi,
I have an idea. You can use the temporary tables in place of cursors.
Regards,
Amit Gupta ..
March 21, 2006 at 4:27 am
Hi,
Use isnull to handle nulls in Sum.
Select sum(isnull(col,0)) from TABLEA
Regards,
AMIT GUPTA..
March 21, 2006 at 2:10 am
Hi ,
Can you send Your Query what you are writing ?
Regards,
Amit Gupta
March 21, 2006 at 2:05 am
Viewing 15 posts - 106 through 120 (of 216 total)